answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT SUM(sack) FROM table_name_40 WHERE player = "mike green" AND fumr < 0
what is the total sack for mike green when fumr is less than 0?
CREATE TABLE table_name_40 (sack INTEGER, player VARCHAR, fumr VARCHAR)
SELECT COUNT(original_air_date) FROM table_19236587_4 WHERE series_no = 13
How many different original air dates does the episode with series number 13 have?
CREATE TABLE table_19236587_4 (original_air_date VARCHAR, series_no VARCHAR)
SELECT COUNT(*) > 0 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 81461) AND STRFTIME('%y', diagnoses_icd.charttime) = '2105'
has patient 81461 been diagnosed with anything in 2105.
CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose...
SELECT SUM(sack) FROM table_name_86 WHERE totaltk = 1 AND asst > 0
what is the total sack when totaltk is 1 and asst. is more than 0?
CREATE TABLE table_name_86 (sack INTEGER, totaltk VARCHAR, asst VARCHAR)
SELECT MAX(_number) FROM table_19229713_4 WHERE us_viewers__million_ = "1.87"
Name the number for viewers being 1.87
CREATE TABLE table_19229713_4 (_number INTEGER, us_viewers__million_ VARCHAR)
SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%New Delhi%' ORDER BY Reputation DESC LIMIT 100
Top Users from New Delhi.
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, ...
SELECT COUNT(tackles) FROM table_name_21 WHERE fumr = 0 AND totaltk = 54 AND yards < 0
what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0?
CREATE TABLE table_name_21 (tackles VARCHAR, yards VARCHAR, fumr VARCHAR, totaltk VARCHAR)
SELECT production_code FROM table_19229713_4 WHERE us_viewers__million_ = "1.69"
Name the production code for viewers for 1.69
CREATE TABLE table_19229713_4 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT regional_county_municipality FROM table_name_30 WHERE area__km_2__ > 108.46 AND population = 719
What municipality has 719 people and is larger than 108.46 km2?
CREATE TABLE table_name_30 ( regional_county_municipality VARCHAR, area__km_2__ VARCHAR, population VARCHAR )
SELECT SUM(totaltk) FROM table_name_9 WHERE yards < 0
what is the sum of totaltk when yards is less than 0?
CREATE TABLE table_name_9 (totaltk INTEGER, yards INTEGER)
SELECT launch_date__ddmmyyyy_ FROM table_19246_2 WHERE _up_ = "5.76 Mbit/s" AND carrier = "Orange"
whare are al of the launche dates where th carrier is orange and the up is 5.76 mbit/s
CREATE TABLE table_19246_2 (launch_date__ddmmyyyy_ VARCHAR, _up_ VARCHAR, carrier VARCHAR)
SELECT "Home team score" FROM table_4723 WHERE "Away team score" = '7.9 (51)'
What was the home team score when the score for the away team was 7.9 (51)?
CREATE TABLE table_4723 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT class FROM table_name_45 WHERE year > 1973 AND points = 41
What class is after 1973 with 41 points?
CREATE TABLE table_name_45 (class VARCHAR, year VARCHAR, points VARCHAR)
SELECT song FROM table_19249824_1 WHERE result = "Out" AND country = "Sweden"
With the country of Sweden and the result is out, what is the song?
CREATE TABLE table_19249824_1 (song VARCHAR, result VARCHAR, country VARCHAR)
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', medication.drugstarttime)) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-662...
how many days has it been since patient 012-66291 dext 5%-nacl 0.9% 1000 ml lvp was last prescribed on this hospital encounter?
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE treatment ( treat...
SELECT COUNT(wins) FROM table_name_90 WHERE points < 54 AND team = "yamaha" AND class = "250cc" AND year < 1977
How many wins for bikes with under 54 points, team yamaha, a 250cc bike, and before 1977?
CREATE TABLE table_name_90 (wins VARCHAR, year VARCHAR, class VARCHAR, points VARCHAR, team VARCHAR)
SELECT language FROM table_19249824_1 WHERE english_translation = "Hello girl"
If the English translation is hello girl, what was the language?
CREATE TABLE table_19249824_1 (language VARCHAR, english_translation VARCHAR)
SELECT "Set 2" FROM table_55013 WHERE "Set 3" = '15–6'
What is the score for set 2 when set 3 was 15 6?
CREATE TABLE table_55013 ( "Date" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Total" text )
SELECT distance FROM table_name_10 WHERE stage > 5 AND winner = "giovanni lombardi"
What distance did giovanni lombardi win after stage 5?
CREATE TABLE table_name_10 (distance VARCHAR, stage VARCHAR, winner VARCHAR)
SELECT connection_speed FROM table_19246_1 WHERE launch_date__ddmmyyyy_ = "07.06.2005"
What was the connection speed when launched on 07.06.2005?
CREATE TABLE table_19246_1 (connection_speed VARCHAR, launch_date__ddmmyyyy_ VARCHAR)
SELECT "Circuit" FROM table_41116 WHERE "Round" > '5'
Which circuit had a round larger than 5?
CREATE TABLE table_41116 ( "Round" real, "Race name" text, "Circuit" text, "City/State" text, "Date" text, "Winner(s)" text, "Team" text )
SELECT gc_leader FROM table_name_51 WHERE course = "ávila - segovia"
Who is the GC leader at ávila - segovia?
CREATE TABLE table_name_51 (gc_leader VARCHAR, course VARCHAR)
SELECT frequency FROM table_19246_1 WHERE carrier = "IDC"
When the carrier is idc, what are the frequencies?
CREATE TABLE table_19246_1 (frequency VARCHAR, carrier VARCHAR)
SELECT abbreviation FROM table_name_79 WHERE inception = "1999" AND assets_us$billion = "7.1"
What's the abbreviation for the country with an inception of 1999 and US$Billion assets of 7.1?
CREATE TABLE table_name_79 ( abbreviation VARCHAR, inception VARCHAR, assets_us$billion VARCHAR )
SELECT COUNT(grid) FROM table_name_11 WHERE laps < 41 AND driver = "pedro de la rosa"
How many grids have less than 41 laps and a Driver of pedro de la rosa?
CREATE TABLE table_name_11 (grid VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT COUNT(carrier) FROM table_19246_1 WHERE frequency = "900MHz and 1800MHz" AND launch_date__ddmmyyyy_ = "14.09.2005"
When the launch date is 14.09.2005, and the frequency is 900mhz and 1800mhz, how many carriers are there?
CREATE TABLE table_19246_1 (carrier VARCHAR, frequency VARCHAR, launch_date__ddmmyyyy_ VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.ethnicity = "WHITE"
give me the number of patients whose admission type is emergency and ethnicity is white?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
SELECT time_retired FROM table_name_58 WHERE grid < 3 AND driver = "mika häkkinen"
Which Time/Retired has a Grid smaller than 3, and a Driver of mika häkkinen?
CREATE TABLE table_name_58 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT COUNT(standard) FROM table_19246_1 WHERE launch_date__ddmmyyyy_ = "17.04.2006"
How many standards are there, when the launch date was 17.04.2006?
CREATE TABLE table_19246_1 (standard VARCHAR, launch_date__ddmmyyyy_ VARCHAR)
SELECT type FROM table_name_46 WHERE name = "colton's crossing bridge"
What type of bridge is Colton's Crossing Bridge?
CREATE TABLE table_name_46 ( type VARCHAR, name VARCHAR )
SELECT AVG(laps) FROM table_name_14 WHERE driver = "toranosuke takagi"
What are toranosuke takagi's average laps?
CREATE TABLE table_name_14 (laps INTEGER, driver VARCHAR)
SELECT 2 AS _car_sets FROM table_19255192_2 WHERE total_vehicles = 622
Name the 2 car sets for 622
CREATE TABLE table_19255192_2 (total_vehicles VARCHAR)
SELECT "Rank" FROM table_11231 WHERE "TV Season" = '2009-2010'
What was the rank of the 2009-2010 TV season?
CREATE TABLE table_11231 ( "Season" real, "Season Premiere" text, "Season Finale" text, "TV Season" text, "Rank" text, "Viewers (in millions)" real )
SELECT MIN(grid) FROM table_name_95 WHERE time_retired = "+5.004"
Which grid has a Time/Retired of +5.004?
CREATE TABLE table_name_95 (grid INTEGER, time_retired VARCHAR)
SELECT MAX(3 AS _car_sets) FROM table_19255192_2
Name the most 3 car sets
CREATE TABLE table_19255192_2 (Id VARCHAR)
SELECT "Time" FROM table_53243 WHERE "Speed" = '102.962mph'
What is the time of the rider with a speed of 102.962mph?
CREATE TABLE table_53243 ( "Rank" real, "Rider" text, "Team" text, "Speed" text, "Time" text )
SELECT score FROM table_name_73 WHERE visitor = "atlanta" AND date = "november 9"
What was the score of the game on November 9 when Atlanta was the visiting team?
CREATE TABLE table_name_73 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT MIN(4 AS _car_sets) FROM table_19255192_2
Name the least 4 car sets
CREATE TABLE table_19255192_2 (Id VARCHAR)
SELECT DISTINCT course_offering.end_time, course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.start_time, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday FROM course, course_offering, semester WHERE course.course_id = course_offe...
What times is 398 taught during the Winter terms ?
CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE cour...
SELECT score FROM table_name_56 WHERE home = "tampa bay"
What was the score of the home game at Tampa Bay?
CREATE TABLE table_name_56 (score VARCHAR, home VARCHAR)
SELECT _percentage FROM table_19260_1 WHERE _percentage_core_moldova = "4.36_percentage"
Name the % for core moldova being 4.36%
CREATE TABLE table_19260_1 (_percentage VARCHAR, _percentage_core_moldova VARCHAR)
SELECT EMPLOYEE_ID, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the correlation between employee_id and department_id in a scatter chart.
CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(...
SELECT date FROM table_name_32 WHERE visitor = "atlanta" AND home = "ottawa"
What was the date of the game where Ottawa was the home team and Atlanta is the visiting team?
CREATE TABLE table_name_32 (date VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT _percentage FROM table_19260_1 WHERE total = 57613
Name the % for total being 57613
CREATE TABLE table_19260_1 (_percentage VARCHAR, total VARCHAR)
SELECT DISTINCT cite.citedpaperid, COUNT(cite.citedpaperid) FROM cite, keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = cite.citedpaperid AND paper.paperid = paperkeyphrase.paperid GROUP BY cite.citedpaperid ORDER BY CO...
most cited parsing papers
CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE writes ( paperid int, authorid int ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE field ( fieldid int ) CREATE TABLE keyphr...
SELECT result FROM table_name_39 WHERE team = "giants"
I want the result for team of giants
CREATE TABLE table_name_39 (result VARCHAR, team VARCHAR)
SELECT total FROM table_19260_1 WHERE _percentage_core_moldova = "4.36_percentage"
Name the total for % core moldova for 4.36%
CREATE TABLE table_19260_1 (total VARCHAR, _percentage_core_moldova VARCHAR)
SELECT COUNT("Incumbent") FROM table_18224 WHERE "District" = 'California 34'
How many incumbents represent district California 34?
CREATE TABLE table_18224 ( "District" text, "Incumbent" text, "Party" text, "Elected" text, "Status" text, "Opponent" text )
SELECT pitcher FROM table_name_8 WHERE date = "september 6, 2006"
Tell me the pitcher on september 6, 2006
CREATE TABLE table_name_8 (pitcher VARCHAR, date VARCHAR)
SELECT waveform FROM table_1926240_1 WHERE bit_rate_[_mbit_s_] = "6.203"
What was the waveform of the encoding with a bit rate of 6.203?
CREATE TABLE table_1926240_1 (waveform VARCHAR, bit_rate_ VARCHAR, _mbit_s_ VARCHAR)
SELECT MIN(steals) FROM table_25353861_5
What is the fewest steals any player had?
CREATE TABLE table_25353861_5 ( steals INTEGER )
SELECT date FROM table_name_66 WHERE team = "rockies"
I want the date for rockies
CREATE TABLE table_name_66 (date VARCHAR, team VARCHAR)
SELECT informational_cvbs_lines FROM table_1926240_1 WHERE max_characters__per_page_row_ = 32 AND standard = "B (global)"
What was the informational CVBS Lines of the encoding with max character of 32 and has B (global) standard?
CREATE TABLE table_1926240_1 (informational_cvbs_lines VARCHAR, max_characters__per_page_row_ VARCHAR, standard VARCHAR)
SELECT "Result" FROM table_65678 WHERE "Week" < '7' AND "Opponent" = 'bye'
What is the result for the game before week 7 against BYE?
CREATE TABLE table_65678 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text )
SELECT date FROM table_name_58 WHERE pitcher = "aníbal sánchez"
I want the date for aníbal sánchez
CREATE TABLE table_name_58 (date VARCHAR, pitcher VARCHAR)
SELECT COUNT(color_system) FROM table_1926240_1 WHERE bit_rate_[_mbit_s_] = "5.734"
How many color systems has a bit rate of 5.734?
CREATE TABLE table_1926240_1 (color_system VARCHAR, bit_rate_ VARCHAR, _mbit_s_ VARCHAR)
SELECT "Surface" FROM table_55037 WHERE "Date" = '5 november 2011'
Which surface has a Date of 5 november 2011?
CREATE TABLE table_55037 ( "Outcome" text, "Date" text, "Surface" text, "Opponent" text, "Score" text )
SELECT result FROM table_name_63 WHERE team = "giants"
I want the result for team of giants
CREATE TABLE table_name_63 (result VARCHAR, team VARCHAR)
SELECT MAX(max_characters__per_page_row_) FROM table_1926240_1 WHERE bit_rate_[_mbit_s_] = "6.203"
What was the max character (per page row) of the encoding with a bit rate of 6.203?
CREATE TABLE table_1926240_1 (max_characters__per_page_row_ INTEGER, bit_rate_ VARCHAR, _mbit_s_ VARCHAR)
SELECT COUNT(year) FROM table_name_1 WHERE uk_peak_position = "10"
How many years had a film that peaked at #10 in the UK?
CREATE TABLE table_name_1 ( year VARCHAR, uk_peak_position VARCHAR )
SELECT site FROM table_name_51 WHERE date = "september 29, 2013"
I want the site for september 29, 2013
CREATE TABLE table_name_51 (site VARCHAR, date VARCHAR)
SELECT production_code FROM table_19266557_1 WHERE us_viewers__millions_ = "9.32"
With U.S. viewers of 9.32 million, what is the production code?
CREATE TABLE table_19266557_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MIN(octal) FROM table_name_82 WHERE hexadecimal = 30 AND glyph < 0
What is the lowest octal with a 30 hexadecimal and less than 0 glyphs?
CREATE TABLE table_name_82 ( octal INTEGER, hexadecimal VARCHAR, glyph VARCHAR )
SELECT right_ascension___j2000__ FROM table_name_71 WHERE apparent_magnitude = 10.5
When the apparent magnitude is 10.5, what is the right ascension?
CREATE TABLE table_name_71 (right_ascension___j2000__ VARCHAR, apparent_magnitude VARCHAR)
SELECT COUNT(original_air_date) FROM table_19266557_1 WHERE _number = 7
For episode number 7, what was the numbers of original air dates?
CREATE TABLE table_19266557_1 (original_air_date VARCHAR, _number VARCHAR)
SELECT demographic.age, demographic.discharge_location FROM demographic WHERE demographic.subject_id = "2560"
provide me with the age and location of discharge for patient with patient id 2560.
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 livery FROM table_name_57 WHERE date = "1919"
Which livery is from 1919?
CREATE TABLE table_name_57 (livery VARCHAR, date VARCHAR)
SELECT us_viewers__millions_ FROM table_19266557_1 WHERE _number = 6
How many millions of viewers were there for number 6?
CREATE TABLE table_19266557_1 (us_viewers__millions_ VARCHAR, _number VARCHAR)
SELECT employees.employee_name, COUNT(*) FROM employees JOIN circulation_history ON circulation_history.employee_id = employees.employee_id GROUP BY circulation_history.document_id, circulation_history.draft_number, circulation_history.copy_number ORDER BY COUNT(*) DESC LIMIT 1
Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies.
CREATE TABLE document_drafts ( document_id number, draft_number number, draft_details text ) CREATE TABLE ref_document_status ( document_status_code text, document_status_description text ) CREATE TABLE employees ( employee_id number, role_code text, employee_name text, other_detai...
SELECT MAX(attendance) FROM table_name_89 WHERE record = "80-81"
Of the games with a record of 80-81, what was the highest attendance?
CREATE TABLE table_name_89 (attendance INTEGER, record VARCHAR)
SELECT COUNT(wins) FROM table_1929755_1 WHERE winnings = "$2,089,556"
How many teams won $2,089,556?
CREATE TABLE table_1929755_1 (wins VARCHAR, winnings VARCHAR)
SELECT school_club_team_country FROM table_11734041_17 WHERE height_in_ft = "7-4"
What school did the 7-4 player attend?
CREATE TABLE table_11734041_17 ( school_club_team_country VARCHAR, height_in_ft VARCHAR )
SELECT COUNT(peak) FROM table_name_34 WHERE hk_viewers = "2.23 million" AND rank > 2
How many entries have a HK viewers of 2.23 million, and a Rank below 2?
CREATE TABLE table_name_34 (peak VARCHAR, hk_viewers VARCHAR, rank VARCHAR)
SELECT COUNT(top_5) FROM table_1929755_1 WHERE avg_start = "17.7"
HOw many top 5 starts did the team with an average start of 17.7 have?
CREATE TABLE table_1929755_1 (top_5 VARCHAR, avg_start VARCHAR)
SELECT document_name, access_count FROM Documents ORDER BY document_name
Find the name and access counts of all documents, in alphabetic order of the document name. Show bar chart.
CREATE TABLE Functional_Areas ( functional_area_code VARCHAR(15), parent_functional_area_code VARCHAR(15), functional_area_description VARCHAR(80) ) CREATE TABLE Roles ( role_code VARCHAR(15), role_description VARCHAR(80) ) CREATE TABLE Document_Structures ( document_structure_code VARCHAR(15)...
SELECT premiere FROM table_name_95 WHERE finale < 41 AND peak < 40 AND average > 31 AND chinese_title = "學警雄心"
What premiere has a finale of less than 41, peak less than 40, average above 31, and a Chinese title of 學警雄心?
CREATE TABLE table_name_95 (premiere VARCHAR, chinese_title VARCHAR, average VARCHAR, finale VARCHAR, peak VARCHAR)
SELECT team_1 FROM table_19294812_2 WHERE team_2 = "Koper"
Who is team 1 when team 2 is koper?
CREATE TABLE table_19294812_2 (team_1 VARCHAR, team_2 VARCHAR)
SELECT y_ = _2009 FROM table_214479_8 WHERE expression = month = FLOOR((d + e + 114) / 31)
what is the y = 2009 when the expression is month = floor ((d + e + 114) / 31)?
CREATE TABLE table_214479_8 ( y_ VARCHAR, _2009 VARCHAR, expression VARCHAR, month VARCHAR, d VARCHAR, e VARCHAR )
SELECT MAX(average) FROM table_name_36 WHERE finale > 35 AND hk_viewers = "2.12 million" AND peak > 40
What is the high average that has a Finale larger than 35, a HK viewers of 2.12 million, and a Peak larger than 40?
CREATE TABLE table_name_36 (average INTEGER, peak VARCHAR, finale VARCHAR, hk_viewers VARCHAR)
SELECT MIN(tie_no) FROM table_19294812_2 WHERE team_2 = "Koper"
What is the tie when team 2 is koper?
CREATE TABLE table_19294812_2 (tie_no INTEGER, team_2 VARCHAR)
SELECT MIN("Points") FROM table_26821 WHERE "Poles" = '0' AND "Races" = '10'
What are the lowest points when poles were 0 and races were 10?
CREATE TABLE table_26821 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "FLaps" real, "Podiums" real, "Points" real, "Position" text )
SELECT home_team AS score FROM table_name_96 WHERE venue = "junction oval"
What is the score for the home team when the venue is Junction Oval?
CREATE TABLE table_name_96 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(1 AS st_leg) FROM table_19294812_2 WHERE team_1 = "OFK Belgrade"
How many 1st leg have team 1 ofk belgrade?
CREATE TABLE table_19294812_2 (team_1 VARCHAR)
SELECT "Last match" FROM table_35438 WHERE "Manner of departure" = 'resigned' AND "Date of vacancy" = 'round 1'
What is the last match with a resigned manner of departure and a round 1 date of vacancy?
CREATE TABLE table_35438 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Last match" text, "Replaced by" text )
SELECT MIN(crowd) FROM table_name_73 WHERE venue = "mcg"
What is the lowest crowd number at the venue MCG?
CREATE TABLE table_name_73 (crowd INTEGER, venue VARCHAR)
SELECT tie_no FROM table_19294812_2 WHERE team_1 = "Borac Banja Luka"
How many tie no have team 1 as borac banja luka?
CREATE TABLE table_19294812_2 (tie_no VARCHAR, team_1 VARCHAR)
SELECT constituency_number FROM table_name_40 WHERE number_of_electorates__2009_ > 152 OFFSET 958
What is the constituency number with electorates (2009) number larger than 152,958?
CREATE TABLE table_name_40 ( constituency_number VARCHAR, number_of_electorates__2009_ INTEGER )
SELECT AVG(round) FROM table_name_89 WHERE place = "jacksonville"
Name the average round for jacksonville
CREATE TABLE table_name_89 (round INTEGER, place VARCHAR)
SELECT language FROM table_1930857_1 WHERE grades = "4-12"
What's the language in the school teaching grades 4-12?
CREATE TABLE table_1930857_1 (language VARCHAR, grades VARCHAR)
SELECT Institution, COUNT(*) FROM Institution AS T1 JOIN protein AS T2 ON T1.Institution_id = T2.Institution_id GROUP BY T1.Institution_id
Show institution names along with the number of proteins for each institution in a bar chart.
CREATE TABLE Institution ( Institution_id text, Institution text, Location text, Founded real, Type text, Enrollment int, Team text, Primary_Conference text, building_id text ) CREATE TABLE protein ( common_name text, protein_name text, divergence_from_human_lineage real...
SELECT standing FROM table_name_59 WHERE total_points < 248 AND finished = "3rd" AND date = "january 29"
I want the standing for january 29 and finished of 3rd and total points less than 248
CREATE TABLE table_name_59 (standing VARCHAR, date VARCHAR, total_points VARCHAR, finished VARCHAR)
SELECT language FROM table_1930857_1 WHERE year_founded = "1949"
What's the language of the school founded in 1949?
CREATE TABLE table_1930857_1 (language VARCHAR, year_founded VARCHAR)
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(MANAGER_ID) DESC
For those employees who did not have any job in the past, draw a bar chart about the distribution of hire_date and the average of manager_id bin hire_date by weekday, sort in desc by the Y.
CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) 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 locations ( LOCAT...
SELECT result FROM table_name_5 WHERE date = "february 22"
What was the result and score of the game on February 22?
CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR)
SELECT gender FROM table_1930857_1 WHERE year_founded = "1894"
What's the gender of the students taught in the school founded in 1894?
CREATE TABLE table_1930857_1 (gender VARCHAR, year_founded VARCHAR)
SELECT catalog FROM table_name_71 WHERE country = "japan"
Which Catalog has a Country of Japan?
CREATE TABLE table_name_71 ( catalog VARCHAR, country VARCHAR )
SELECT MAX(rd__number) FROM table_name_20 WHERE pl_gp > 0 AND reg_gp < 62
What is the largest Rd# for a PI GP greater than 0 and a Reg GP less than 62?
CREATE TABLE table_name_20 (rd__number INTEGER, pl_gp VARCHAR, reg_gp VARCHAR)
SELECT language FROM table_1930857_1 WHERE year_founded = "1874"
What's the language of classes in the school founded in 1874?
CREATE TABLE table_1930857_1 (language VARCHAR, year_founded VARCHAR)
SELECT points_awarded__platinum_ FROM table_11254821_2 WHERE points_awarded__gold_ = 9
How many platinum points were awarded when 9 gold points were awarded?
CREATE TABLE table_11254821_2 ( points_awarded__platinum_ VARCHAR, points_awarded__gold_ VARCHAR )
SELECT team__league_ FROM table_name_12 WHERE reg_gp > 62
Which team has a Reg GP over 62?
CREATE TABLE table_name_12 (team__league_ VARCHAR, reg_gp INTEGER)