answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT driver FROM table_name_79 WHERE rounds = "6" AND chassis = "52 51/52"
with 6 rounds, and a 52 51/52 chassis, who is the driver?
CREATE TABLE table_name_79 (driver VARCHAR, rounds VARCHAR, chassis VARCHAR)
SELECT MAX(game) FROM table_17288825_7 WHERE location_attendance = "Conseco Fieldhouse 14,486"
At what game number was the attendance at Conseco Fieldhouse 14,486?
CREATE TABLE table_17288825_7 (game INTEGER, location_attendance VARCHAR)
SELECT p.Id AS Id, TIME_TO_STR(p.CreationDate, '%-HOUR') AS Hour, LENGTH(p.Title) AS LengthOfTitle, LENGTH(p.Body) AS LengthOfBody, p.Score AS Score, p.ViewCount AS Views, p.AnswerCount AS Answers FROM Posts AS p WHERE LENGTH(p.Title) > 0 AND p.CreationDate > CAST('2014-10-01 00:00:00.000' AS DATETIME) AND p.CreationDa...
Hour, Length -> Score, Answers.
CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, Deletio...
SELECT AVG(attendance) FROM table_name_62 WHERE opponent = "braves" AND record = "56-53"
What was the attendance when the Braves were the opponent and the record was 56-53?
CREATE TABLE table_name_62 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
SELECT MAX(game) FROM table_17288845_7 WHERE date = "January 19"
What is the number of the game that was played on January 19?
CREATE TABLE table_17288845_7 (game INTEGER, date VARCHAR)
SELECT player FROM table_name_30 WHERE school_club_team = "mcgill"
What is the Player from McGill?
CREATE TABLE table_name_30 ( player VARCHAR, school_club_team VARCHAR )
SELECT opponent FROM table_name_89 WHERE record = "61-57"
Who was the opponent when the record was 61-57?
CREATE TABLE table_name_89 (opponent VARCHAR, record VARCHAR)
SELECT record FROM table_17288845_8 WHERE location_attendance = "Verizon Center 20,173"
Name the record for verizon center 20,173
CREATE TABLE table_17288845_8 (record VARCHAR, location_attendance VARCHAR)
SELECT * FROM (SELECT *, ROW_NUMBER() OVER (ORDER BY Id) AS row FROM Users) AS a WHERE a.row > 5 AND a.row <= 100
Testing, is this thing on? (100 users...).
CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostHistoryTypes ( Id numb...
SELECT COUNT(laps) FROM table_name_55 WHERE driver = "jochen rindt"
How many laps for jochen rindt?
CREATE TABLE table_name_55 (laps VARCHAR, driver VARCHAR)
SELECT date FROM table_17288845_8 WHERE score = "L 89–91 (OT)"
Name the date for score l 89–91 (ot)
CREATE TABLE table_17288845_8 (date VARCHAR, score VARCHAR)
SELECT MIN(game) FROM table_name_45 WHERE date = "november 1"
What is the lowest Game, when Date is 'November 1'?
CREATE TABLE table_name_45 ( game INTEGER, date VARCHAR )
SELECT COUNT(grid) FROM table_name_73 WHERE driver = "jean-pierre beltoise"
What is the grid total for jean-pierre beltoise?
CREATE TABLE table_name_73 (grid VARCHAR, driver VARCHAR)
SELECT record FROM table_17288861_5 WHERE team = "Cleveland"
What was the team record when the team was Cleveland?
CREATE TABLE table_17288861_5 (record VARCHAR, team VARCHAR)
SELECT week FROM table_name_47 WHERE opponent = "minnesota vikings"
What game week did the Buccaneers play against the Minnesota Vikings?
CREATE TABLE table_name_47 ( week VARCHAR, opponent VARCHAR )
SELECT time FROM table_name_22 WHERE opponent = "tony mendoza"
What was the time for the event in which Tony Mendoza was the opponent?
CREATE TABLE table_name_22 (time VARCHAR, opponent VARCHAR)
SELECT high_assists FROM table_17288861_9 WHERE score = "L 93–103 (OT)"
Name the high assists for l 93–103 (ot)
CREATE TABLE table_17288861_9 (high_assists VARCHAR, score VARCHAR)
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND STRFTIME('%y', admissions.dischtime) <= '2102'
how many patients had been released until 2102 from the hospital?
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE patients ( row_id number, subject_id number, g...
SELECT AVG(laps) FROM table_name_23 WHERE time_retired = "+23.707" AND grid > 21
What is the average lap time for retired time of +23.707 and a Grid greater than 21?
CREATE TABLE table_name_23 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT date FROM table_17288869_6 WHERE game = 21
What was the date of game 21?
CREATE TABLE table_17288869_6 (date VARCHAR, game VARCHAR)
SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000
Find the job ID for those jobs which average salary is above 8000.
CREATE TABLE job_history ( employee_id number, start_date time, end_date time, job_id text, department_id number ) CREATE TABLE regions ( region_id number, region_name text ) CREATE TABLE locations ( location_id number, street_address text, postal_code text, city text, ...
SELECT home_team FROM table_name_40 WHERE venue = "victoria park"
Which home team plays at victoria park?
CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR)
SELECT round_of_32 FROM table_17289604_38 WHERE athlete = "Nicole Vaidišová"
What were the results for round of 32 for Nicole Vaidišová?
CREATE TABLE table_17289604_38 (round_of_32 VARCHAR, athlete VARCHAR)
SELECT "Week 4 Sept 21" FROM table_38964 WHERE "Week 10 Nov 2" = 'michigan state (8-2)'
What is the week 4 opponent for the year with a week 10 opponent of Michigan State (8-2)?
CREATE TABLE table_38964 ( "Week 2 Sept 7" text, "Week 3 Sept 14" text, "Week 4 Sept 21" text, "Week 5 Sept 28" text, "Week 6 Oct 5" text, "Week 7 Oct 12" text, "Week 10 Nov 2" text, "Week 12 Nov 16" text, "Week 14 Nov 30" text, "Week 15 Dec 7" text, "Week 16 (Final) Jan 9" t...
SELECT MIN(avg) FROM table_name_16 WHERE yards = 6 AND rec > 1
Tell me the lowest avg for 6 yards and rec more than 1
CREATE TABLE table_name_16 (avg INTEGER, yards VARCHAR, rec VARCHAR)
SELECT COUNT(athlete) FROM table_17289604_38 WHERE round_of_64 = "Llagostera Vives ( ESP ) L 6–2, 3–6, 5–7"
How many number of athletes were in round of 64 was llagostera Vives ( esp ) l 6–2, 3–6, 5–7?
CREATE TABLE table_17289604_38 (athlete VARCHAR, round_of_64 VARCHAR)
SELECT COUNT("type") FROM table_203_356 WHERE "crop factor" < 1.0
how many sensors have a crop area of less than 1.0 ?
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 SUM(long) FROM table_name_25 WHERE avg > 9.8 AND rec < 5 AND yards < 20
Name the sum of long for avg more than 9.8 with rec less than 5 and yards less than 20
CREATE TABLE table_name_25 (long INTEGER, yards VARCHAR, avg VARCHAR, rec VARCHAR)
SELECT round_of_16 FROM table_17289604_38 WHERE round_of_32 = "Koryttseva ( UKR ) W 2–6, 6–1, 7–5"
What was round of 16 when in round 32 it was koryttseva ( ukr ) w 2–6, 6–1, 7–5?
CREATE TABLE table_17289604_38 (round_of_16 VARCHAR, round_of_32 VARCHAR)
SELECT "Social Democratic" FROM table_65849 WHERE "Democratic and Social Centre" = '4.4% 4 seats'
What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats?
CREATE TABLE table_65849 ( "Date Released" text, "Institute" text, "Social Democratic" text, "Socialist" text, "Green-Communist" text, "Democratic Renewal" text, "Democratic and Social Centre" text, "Lead" text )
SELECT SUM(long) FROM table_name_24 WHERE avg < 6 AND rec < 2
Name the sum of long for avg less than 6 and rec less than 2
CREATE TABLE table_name_24 (long INTEGER, avg VARCHAR, rec VARCHAR)
SELECT round_of_64 FROM table_17289604_38 WHERE event = "Singles" AND round_of_16 = "Did not advance" AND athlete = "Iveta Benešová"
What was round of 64 of the singles event when the result of round 16 was did not advance and the athlete was Iveta Benešová?
CREATE TABLE table_17289604_38 (round_of_64 VARCHAR, athlete VARCHAR, event VARCHAR, round_of_16 VARCHAR)
SELECT MIN("Gold") FROM table_36676 WHERE "Bronze" > '6'
Which Gold has a Bronze larger than 6?
CREATE TABLE table_36676 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT MIN(decile) FROM table_name_63 WHERE roll = 428
Name the lelast decile for roll of 428
CREATE TABLE table_name_63 (decile INTEGER, roll VARCHAR)
SELECT quarterfinals FROM table_17289604_38 WHERE round_of_32 = "S Williams / V Williams ( USA ) L 6–4, 5–7, 1–6"
What were the quarterfinals in the round of 32 was S williams / V williams ( usa ) l 6–4, 5–7, 1–6?
CREATE TABLE table_17289604_38 (quarterfinals VARCHAR, round_of_32 VARCHAR)
SELECT SCHOOL_CODE, COUNT(*) FROM DEPARTMENT AS T1 JOIN PROFESSOR AS T2 ON T1.DEPT_CODE = T2.DEPT_CODE GROUP BY T1.SCHOOL_CODE ORDER BY SCHOOL_CODE
How many different professors are there for the different schools Show bar chart, and show in asc by the SCHOOL_CODE.
CREATE TABLE COURSE ( CRS_CODE varchar(10), DEPT_CODE varchar(10), CRS_DESCRIPTION varchar(35), CRS_CREDIT float(8) ) CREATE TABLE CLASS ( CLASS_CODE varchar(5), CRS_CODE varchar(10), CLASS_SECTION varchar(2), CLASS_TIME varchar(20), CLASS_ROOM varchar(8), PROF_NUM int ) CREATE...
SELECT MAX(decile) FROM table_name_94 WHERE roll = 428
Name the most decile for roll of 428
CREATE TABLE table_name_94 (decile INTEGER, roll VARCHAR)
SELECT date FROM table_17288869_7 WHERE high_rebounds = "Dirk Nowitzki (14)"
On what day did Dirk Nowitzki (14) have a high rebound?
CREATE TABLE table_17288869_7 (date VARCHAR, high_rebounds VARCHAR)
SELECT YEAR(CreationDate) AS "year", MONTH(CreationDate) AS "month", SUM(CASE WHEN Posts.PostTypeId = 1 THEN 1 ELSE 0 END) AS QuestionCount, SUM(CASE WHEN Posts.PostTypeId = 2 THEN 1 ELSE 0 END) AS AnswerCount FROM Posts WHERE YEAR(CreationDate) >= 2014 GROUP BY YEAR(CreationDate), MONTH(CreationDate) ORDER BY YEAR(Cre...
Count of New Questions and Answers Since a Specified Year.
CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostHistoryTypes ( Id number, ...
SELECT MAX(year) FROM table_name_18 WHERE winners = "hawthorn" AND season_result = "preliminary finalist" AND crowd < 27 OFFSET 407
What's the highest year than hawthorn won with a season result of preliminary finalist and a crowd smaller than 27,407?
CREATE TABLE table_name_18 (year INTEGER, crowd VARCHAR, winners VARCHAR, season_result VARCHAR)
SELECT COUNT(high_rebounds) FROM table_17288869_7 WHERE high_points = "Josh Howard (19)"
High points earned by Josh Howard (19) resulted in how many high rebounds?
CREATE TABLE table_17288869_7 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT customer_last_name, COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC
How many accounts for each customer? Show a bar chart that groups by customer's last name, I want to rank from high to low by the total number.
CREATE TABLE Invoice_Line_Items ( order_item_id INTEGER, invoice_number INTEGER, product_id INTEGER, product_title VARCHAR(80), product_quantity VARCHAR(50), product_price DECIMAL(19,4), derived_product_cost DECIMAL(19,4), derived_vat_payable DECIMAL(19,4), derived_total_cost DECIMAL...
SELECT scores FROM table_name_63 WHERE grand_finalist = "hawthorn"
What scores did grand finalist hawthorn have?
CREATE TABLE table_name_63 (scores VARCHAR, grand_finalist VARCHAR)
SELECT high_assists FROM table_17288869_7 WHERE high_rebounds = "Erick Dampier (8)"
Who had the high assists while Erick Dampier (8) had the high rebounds?
CREATE TABLE table_17288869_7 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT COUNT("Week") FROM table_9433 WHERE "Record" = '0-11'
What is the total number for the week with a record of 0-11?
CREATE TABLE table_9433 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Lions' Points" text, "Opponents' Points" text, "Record" text, "Streak" text, "Attendance" text )
SELECT grand_finalist FROM table_name_89 WHERE year > 1979 AND margin < 30 AND winners = "essendon"
What grand finalist had a year after 1979, a margin smaller than 30, and winners of essendon?
CREATE TABLE table_name_89 (grand_finalist VARCHAR, winners VARCHAR, year VARCHAR, margin VARCHAR)
SELECT high_points FROM table_17288869_7 WHERE high_rebounds = "Dirk Nowitzki (13)"
Who had the high points while Dirk Nowitzki (13) had the high rebounds?
CREATE TABLE table_17288869_7 (high_points VARCHAR, high_rebounds VARCHAR)
SELECT "Team (B)" FROM table_41139 WHERE "S No" < '18' AND "Margin" = '8 wickets' AND "Match Date" = 'oct 30, 1989'
What is Team (B), when S No is less than 18, when Margin is 8 Wickets, and when Match Date is Oct 30, 1989?
CREATE TABLE table_41139 ( "S No" real, "Team (A)" text, "Team (B)" text, "Winner" text, "Margin" text, "Match Date" text )
SELECT SUM(numer_of_jamaicans_granted_british_citizenship) FROM table_name_44 WHERE year = 2004 AND registration_of_a_minor_child > 640
Tell me the sum of number of jamaicans given british citizenship for 2004 and registration of a minor child more than 640
CREATE TABLE table_name_44 (numer_of_jamaicans_granted_british_citizenship INTEGER, year VARCHAR, registration_of_a_minor_child VARCHAR)
SELECT record FROM table_17288869_7 WHERE high_points = "Dirk Nowitzki (19)"
What was the final record for the game in which Dirk Nowitzki (19) had the high points?
CREATE TABLE table_17288869_7 (record VARCHAR, high_points VARCHAR)
SELECT "Minutes" FROM table_40239 WHERE "Goals" > '4' AND "Assists" = '3'
What is the number of minutes when there are more than 4 goals and 3 assists?
CREATE TABLE table_40239 ( "Player" text, "Position" text, "GP (GS)" text, "Minutes" real, "Goals" real, "Assists" real )
SELECT team__league_ FROM table_name_23 WHERE reg_gp < 52 AND pick__number = 130
What team played under 52 Reg GP, and picked 130?
CREATE TABLE table_name_23 (team__league_ VARCHAR, reg_gp VARCHAR, pick__number VARCHAR)
SELECT championship FROM table_1729366_2 WHERE opponents_in_the_final = "Nathalie Dechy Andy Ram"
Which championship had the final opponents of nathalie dechy andy ram?
CREATE TABLE table_1729366_2 (championship VARCHAR, opponents_in_the_final VARCHAR)
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', lab.labresulttime)) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-66291' AND patient.hospi...
how many days it's been since patient 012-66291's first bun lab test in the current hospital visit?
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number,...
SELECT MAX(pl_gp) FROM table_name_27 WHERE rd__number > 9
What is the highest PL GP for a round greater than 9?
CREATE TABLE table_name_27 (pl_gp INTEGER, rd__number INTEGER)
SELECT upstream FROM table_17304621_14 WHERE price_tl = "39 TL"
What is the upstream speed of the network that costs 39 tl?
CREATE TABLE table_17304621_14 (upstream VARCHAR, price_tl VARCHAR)
SELECT i_o_bus FROM table_name_28 WHERE sspec_number = "sr0n5(l1)"
what is the i/o bus when the sspec numebr is sr0n5(l1)?
CREATE TABLE table_name_28 ( i_o_bus VARCHAR, sspec_number VARCHAR )
SELECT title FROM table_name_1 WHERE time = "4:22"
Which title has a length of 4:22?
CREATE TABLE table_name_1 (title VARCHAR, time VARCHAR)
SELECT COUNT(upstream) FROM table_17304621_14 WHERE downstream = "20 Mbit/s" AND bandwidth = "40 GB"
How many upstream speeds are there for downstream of 20 mbit/s and bandwidth of 40 gb?
CREATE TABLE table_17304621_14 (upstream VARCHAR, downstream VARCHAR, bandwidth VARCHAR)
SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 64185) AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-6 year')
what is the number of drugs patient 64185 has been prescribed since 6 years ago?
CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE d_labitems ( row_id number...
SELECT composer_s_ FROM table_name_33 WHERE time = "2:50"
Which composer has a track length of 2:50?
CREATE TABLE table_name_33 (composer_s_ VARCHAR, time VARCHAR)
SELECT upstream FROM table_17304621_14 WHERE price_tl = "89 TL"
What is the upstream speed that you get for 89 tl?
CREATE TABLE table_17304621_14 (upstream VARCHAR, price_tl VARCHAR)
SELECT AVG(Reputation) AS "average_reputation", COUNT(Id) AS "total_users" FROM Users WHERE LOWER(Location) LIKE '%united kingdom' AND Reputation >= 15
Average Reputation of SO user in United Kingdom with reputation equal or more than 15.
CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE PostLinks ( Id number, CreationDate time, Pos...
SELECT title FROM table_name_50 WHERE guest_performer = "black ice" AND time = "5:49"
Which title has a Black Ice for a guest performer and a length of 5:49?
CREATE TABLE table_name_50 (title VARCHAR, guest_performer VARCHAR, time VARCHAR)
SELECT bandwidth FROM table_17304621_14 WHERE downstream = "20 Mbit/s" AND price_tl = "69 TL"
What is the bandwidth for downstream of 20 mbit/s for 69 tl?
CREATE TABLE table_17304621_14 (bandwidth VARCHAR, downstream VARCHAR, price_tl VARCHAR)
SELECT MAX("Drawn") FROM table_37473 WHERE "Played" < '38'
What is the largest drawn that has a played less than 38?
CREATE TABLE table_37473 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text )
SELECT guest_performer FROM table_name_8 WHERE time = "5:49"
Which guest performer has a track length of 5:49?
CREATE TABLE table_name_8 (guest_performer VARCHAR, time VARCHAR)
SELECT year FROM table_17302440_1 WHERE west_manila = "6.5"
What was the year when West Manila has a tariff increase of 6.5?
CREATE TABLE table_17302440_1 (year VARCHAR, west_manila VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2124" AND lab."CATEGORY" = "Hematology"
how many patients whose admission year is less than 2124 and lab test category is hematology?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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 t...
SELECT score FROM table_name_38 WHERE visitor = "philadelphia"
What was the score when philadelphia visited?
CREATE TABLE table_name_38 (score VARCHAR, visitor VARCHAR)
SELECT MAX(attendance) FROM table_17294353_1 WHERE opponent = "Cincinnati Bengals"
Of the times the Broncos played the Cincinnati Bengals, what was the highest attendance?
CREATE TABLE table_17294353_1 (attendance INTEGER, opponent VARCHAR)
SELECT "Location" FROM table_35741 WHERE "Name" = 'woodburn dragstrip'
What is the Location for the woodburn dragstrip?
CREATE TABLE table_35741 ( "Name" text, "Location" text, "State" text, "Opened (closing date if defunct)" text, "Surface" text, "Length" text )
SELECT attendance FROM table_name_76 WHERE decision = "weekes"
How many attended the game with weekes recording the decision?
CREATE TABLE table_name_76 (attendance VARCHAR, decision VARCHAR)
SELECT date FROM table_17294353_1 WHERE opponent = "Miami Dolphins"
When did the Broncos play the Miami Dolphins?
CREATE TABLE table_17294353_1 (date VARCHAR, opponent VARCHAR)
SELECT COUNT("No. in season") FROM table_31009 WHERE "Title" = 'First Blood'
How many episodes in the season had the title, 'first blood'?
CREATE TABLE table_31009 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (millions)" text )
SELECT Digital AS channel FROM table_name_16 WHERE owner = "three angels broadcasting network"
What digital channel does Three Angels Broadcasting Network own?
CREATE TABLE table_name_16 (Digital VARCHAR, owner VARCHAR)
SELECT result FROM table_17294353_1 WHERE attendance = 18304
In the game with an attendance of 18304, what was the final score?
CREATE TABLE table_17294353_1 (result VARCHAR, attendance VARCHAR)
SELECT "Place" FROM table_79113 WHERE "To par" = '–10'
What place had a To par of 10?
CREATE TABLE table_79113 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT championship FROM table_name_27 WHERE score = "6–3, 2–6, 3–6, 6–3, 3–6"
What Championship has Scores of 6–3, 2–6, 3–6, 6–3, 3–6?
CREATE TABLE table_name_27 (championship VARCHAR, score VARCHAR)
SELECT COUNT(max_pressure) FROM table_173103_1 WHERE cartridge = ".380 ACP"
How many pressure figures are given for the .380 acp cartridge?
CREATE TABLE table_173103_1 (max_pressure VARCHAR, cartridge VARCHAR)
SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 75658 AND DATETIME(admissions.dischtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.dischtime LIMIT 1
when was patient 75658 discharged from the hospital in the previous year for the first time?
CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ...
SELECT date FROM table_name_43 WHERE away_team = "geelong"
What is the date of the game where Geelong was the away team?
CREATE TABLE table_name_43 (date VARCHAR, away_team VARCHAR)
SELECT max_pressure FROM table_173103_1 WHERE muzzle_energy = "201ft•lbf (273 J)"
What is the max pressure of the cartridge where the muzzle energy is 201ft•lbf (273 j)?
CREATE TABLE table_173103_1 (max_pressure VARCHAR, muzzle_energy VARCHAR)
SELECT home_team AS score FROM table_name_49 WHERE home_team = "fitzroy"
What is fitzroy's score as the home team?
CREATE TABLE table_name_49 ( home_team VARCHAR )
SELECT venue FROM table_name_61 WHERE away_team = "geelong"
What is the venue of the game where Geelong was the away team?
CREATE TABLE table_name_61 (venue VARCHAR, away_team VARCHAR)
SELECT max_pressure FROM table_173103_1 WHERE cartridge = ".38 Long Colt"
What is the max pressure of the .38 long colt cartridge?
CREATE TABLE table_173103_1 (max_pressure VARCHAR, cartridge VARCHAR)
SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY SUM(MANAGER_ID) DESC
For those employees who was hired before 2002-06-21, find job_id and the sum of manager_id , and group by attribute job_id, and visualize them by a bar chart, and list Y in desc order.
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 employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), ...
SELECT date FROM table_name_9 WHERE home_team = "st kilda"
What is the date of the game where St Kilda is the home team?
CREATE TABLE table_name_9 (date VARCHAR, home_team VARCHAR)
SELECT bullet_weight FROM table_173103_1 WHERE max_pressure = "12,000 CUP"
What is the bullet weight when the max pressure is 12,000 cup?
CREATE TABLE table_173103_1 (bullet_weight VARCHAR, max_pressure VARCHAR)
SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1
What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?
CREATE TABLE Certificate ( eid VARCHAR, aid VARCHAR ) CREATE TABLE Employee ( name VARCHAR, eid VARCHAR ) CREATE TABLE Aircraft ( aid VARCHAR, distance INTEGER )
SELECT home_team AS score FROM table_name_77 WHERE away_team = "south melbourne"
What was the home team's score of the game where South Melbourne is the away team?
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)
SELECT score FROM table_17311759_4 WHERE team = "Charlotte"
What are the scores made by Charlotte team
CREATE TABLE table_17311759_4 (score VARCHAR, team VARCHAR)
SELECT COUNT("Races") FROM table_26861 WHERE "Position" = '15th'
Name the total number of races for 15th position
CREATE TABLE table_26861 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "FLaps" real, "Podiums" real, "Points" text, "Position" text )
SELECT away_team AS score FROM table_name_1 WHERE away_team = "geelong"
What is the away team's score of the game where the away team is Geelong?
CREATE TABLE table_name_1 (away_team VARCHAR)
SELECT high_assists FROM table_17311759_4 WHERE high_rebounds = "Al Horford (17)"
Who made highest assists when high rebounds was Al Horford (17)
CREATE TABLE table_17311759_4 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE (LOWER(Location) LIKE '%ahmedabad%' OR UPPER(Location) LIKE '%AHMEDABAD%' OR Location LIKE '%Ahmedabad%') AND Reputation >= 500 ORDER BY Reputation DESC
developers over 500 reps in Ahmedabad.
CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABL...
SELECT venue FROM table_name_11 WHERE competition = "2004 afc asian cup qualification" AND date = "november 18, 2003"
Which venue hosted the 2004 AFC Asian Cup qualification on November 18, 2003?
CREATE TABLE table_name_11 (venue VARCHAR, competition VARCHAR, date VARCHAR)
SELECT score FROM table_17311759_4 WHERE high_rebounds = "Zaza Pachulia (8)"
Give the score when high rebounds was zaza pachulia (8)
CREATE TABLE table_17311759_4 (score VARCHAR, high_rebounds VARCHAR)
SELECT "All Games" FROM table_9422 WHERE "Nonconference Games %" < '0.75' AND "Ranked AP Nonconference" = '3–7'
Which All Games have a Nonconference Games % smaller than 0.75, and a Ranked AP Nonconference of 3 7?
CREATE TABLE table_9422 ( "Team" text, "All Games" text, "All Games %" real, "Nonconference Games" text, "Nonconference Games %" real, "Ranked AP Nonconference" text )
SELECT date FROM table_name_79 WHERE result = "draw" AND competition = "friendly" AND venue = "dubai"
On what date did a friendly competition, hosted in Dubai, result in a draw?
CREATE TABLE table_name_79 (date VARCHAR, venue VARCHAR, result VARCHAR, competition VARCHAR)