answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT film_title_used_in_nomination FROM table_17155250_1 WHERE original_title = "The Black Tulip"
What name was used for nomination for the film with an original title of "The Black Tulip"?
CREATE TABLE table_17155250_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND procedures.long_title = "Excision or destruction of other lesion or tissue of heart, endovascular approach"
count the number of patients whose admission location is transfer from hosp/extram and procedure long title is excision or destruction of other lesion or tissue of heart, endovascular approach?
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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text,...
SELECT home_team AS score FROM table_name_43 WHERE away_team = "carlton"
What was the home team score when the away team was Carlton?
CREATE TABLE table_name_43 (home_team VARCHAR, away_team VARCHAR)
SELECT language_s_ FROM table_17155250_1 WHERE film_title_used_in_nomination = "FireDancer"
What languages were spoken in the film "FireDancer"?
CREATE TABLE table_17155250_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT SUM(grid) FROM table_name_58 WHERE constructor = "honda" AND laps = 31
When the laps are 31 and the constructor was honda, what's the sum of all grid values?
CREATE TABLE table_name_58 ( grid INTEGER, constructor VARCHAR, laps VARCHAR )
SELECT location FROM table_name_63 WHERE capacity = "65,000" AND opening = "2016"
What place can sit 65,000 and opens 2016?
CREATE TABLE table_name_63 (location VARCHAR, capacity VARCHAR, opening VARCHAR)
SELECT director FROM table_17155250_1 WHERE original_title = "16 Days in Afghanistan"
Who was the director of the film with an original title of "16 Days in Afghanistan"?
CREATE TABLE table_17155250_1 (director VARCHAR, original_title VARCHAR)
SELECT score FROM table_name_6 WHERE tie_no = "21"
What was the score for a no. 21 tie?
CREATE TABLE table_name_6 ( score VARCHAR, tie_no VARCHAR )
SELECT stadium FROM table_name_99 WHERE team = "san diego chargers"
What is the stadium of the san diego chargers?
CREATE TABLE table_name_99 (stadium VARCHAR, team VARCHAR)
SELECT model FROM table_17157367_1 WHERE method = "HA"
what is the model where the method is ha?
CREATE TABLE table_17157367_1 (model VARCHAR, method VARCHAR)
SELECT "Stage (Winner)" FROM table_41122 WHERE "Sprint Classification" = 'mark cavendish' AND "Team Classification" = 'garmin-chipotle-h30' AND "Young Classification" = 'mark cavendish'
Who was the winner for a Sprint Classification and Young Classification to Mark Cavendish and Garmin-Chipotle-H30 for team?
CREATE TABLE table_41122 ( "Stage (Winner)" text, "General Classification" text, "Young Classification" text, "Mountains Classification" text, "Sprint Classification" text, "Team Classification" text )
SELECT team FROM table_name_64 WHERE stadium = "vikings stadium"
Who is the team at vikings stadium?
CREATE TABLE table_name_64 (team VARCHAR, stadium VARCHAR)
SELECT COUNT(model) FROM table_17157367_1 WHERE "status" = "status" AND name = "GenEva"
what is the total number of model wehre the status is named geneva?
CREATE TABLE table_17157367_1 (model VARCHAR, name VARCHAR)
SELECT glos_ & _wilts FROM table_12043148_2 WHERE bristol_ & _somerset = "Lansdown"
what is the glos & wilts where the bristol & somerset is lansdown?
CREATE TABLE table_12043148_2 ( glos_ VARCHAR, _wilts VARCHAR, bristol_ VARCHAR, _somerset VARCHAR )
SELECT building FROM table_name_81 WHERE floors > 15 AND year = "2013"
For the Year 2013 what building(s) had more than 15 Floors?
CREATE TABLE table_name_81 (building VARCHAR, floors VARCHAR, year VARCHAR)
SELECT max_fs FROM table_17157367_1 WHERE "status" = "status" AND "method" = "method"
what is the max fs where the status is status and the method is method?
CREATE TABLE table_17157367_1 (max_fs VARCHAR)
SELECT Team_Name, Team_ID FROM basketball_match
Visualize a pie chart about the proportion of Team_Name and Team_ID.
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( Scho...
SELECT building FROM table_name_13 WHERE year = "2013" AND floors < 20
For the Year 2013 what building(s) had less than 20 Floors?
CREATE TABLE table_name_13 (building VARCHAR, year VARCHAR, floors VARCHAR)
SELECT output FROM table_17157367_1 WHERE short_description = "massive"
what ist he output where the short description is massive?
CREATE TABLE table_17157367_1 (output VARCHAR, short_description VARCHAR)
SELECT status FROM table_19061741_1 WHERE name = "Nel Rapiz"
When nel rapiz is the name what is the status?
CREATE TABLE table_19061741_1 ( status VARCHAR, name VARCHAR )
SELECT venue FROM table_name_2 WHERE away_team = "richmond"
What location was the game played at when Richmond was the away team?
CREATE TABLE table_name_2 (venue VARCHAR, away_team VARCHAR)
SELECT film_title_used_in_nomination FROM table_17156199_1 WHERE original_title = "শ্যামল ছায়া (Shyamol Chhaya)"
What was the nominated film title of শ্যামল ছায়া (shyamol chhaya)?
CREATE TABLE table_17156199_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT "Name" FROM table_54806 WHERE "Call sign" = 'kdsu'
Which owner has the call sign of KDSU?
CREATE TABLE table_54806 ( "Frequency" text, "Call sign" text, "Name" text, "Format" text, "Owner" text )
SELECT date FROM table_name_33 WHERE venue = "vfl park"
What date was the game played at vfl park?
CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR)
SELECT year__ceremony_ FROM table_17156199_1 WHERE original_title = "বৃত্তের বাইরে (Britter Baire)"
What year and ceremony was the original title বৃত্তের বাইরে (britter baire)?
CREATE TABLE table_17156199_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT "Record" FROM table_69936 WHERE "Method" = 'tko (strikes)' AND "Opponent" = 'daan kooiman'
Which record has tko (strikes) as the method, and daan kooiman as the opponent?
CREATE TABLE table_69936 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text, "Time" text, "Location" text )
SELECT SUM(crowd) FROM table_name_27 WHERE away_team = "north melbourne"
How many people were in the crowd when the away team was north melbourne?
CREATE TABLE table_name_27 (crowd INTEGER, away_team VARCHAR)
SELECT COUNT(year__ceremony_) FROM table_17156199_1 WHERE original_title = "স্বপ্নডানায় (Swopnodanay)"
How many years was the original title was স্বপ্নডানায় (swopnodanay)?
CREATE TABLE table_17156199_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-20295')) AND diagnosis.diagnosisname = 'seizures - new onset' AND DATETI...
during the previous year was patient 011-20295 diagnosed with seizures - new onset?
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 SUM(first_time_as_hc_climb) FROM table_name_82 WHERE no_of_hc_climbs > 1 AND no_of_times_visited > 29 AND most_recent > 2012
When was the first HC climb which, more recently than 2012, had more than 1 HC climbs, more than 29 times visited?
CREATE TABLE table_name_82 (first_time_as_hc_climb INTEGER, most_recent VARCHAR, no_of_hc_climbs VARCHAR, no_of_times_visited VARCHAR)
SELECT nickname FROM table_1715730_2 WHERE founded = 1902
what is the nickname founded in 1902?
CREATE TABLE table_1715730_2 (nickname VARCHAR, founded VARCHAR)
SELECT written_by FROM table_28348757_6 WHERE production_code = "XLE05012"
Who wrote the episode with the code xle05012?
CREATE TABLE table_28348757_6 ( written_by VARCHAR, production_code VARCHAR )
SELECT no_of_hc_climbs FROM table_name_35 WHERE no_of_times_visited = 1 AND most_recent > 1984 AND first_time_as_hc_climb < 1994 AND height__m_ = "1900"
How many HC climbs had 1 visit more recently than 1984, a first HC climb before 1994, and a height of 1900?
CREATE TABLE table_name_35 (no_of_hc_climbs VARCHAR, height__m_ VARCHAR, first_time_as_hc_climb VARCHAR, no_of_times_visited VARCHAR, most_recent VARCHAR)
SELECT location FROM table_1715730_2 WHERE enrollment = 4259
where is the enrollment 4259?
CREATE TABLE table_1715730_2 (location VARCHAR, enrollment VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "CHRISTIAN SCIENTIST" AND lab.itemid = "50811"
provide the number of patients whose religion is christian scientist and item id is 50811
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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 ) C...
SELECT height__m_ FROM table_name_69 WHERE no_of_hc_climbs > 2 AND most_recent = 2012 AND no_of_times_visited < 48 AND first_time_as_hc_climb = 1989
What is the height with more than 2 HC climbs more recent than 2012, less than 48 times visited, and a first HC climb in 1989?
CREATE TABLE table_name_69 (height__m_ VARCHAR, first_time_as_hc_climb VARCHAR, no_of_times_visited VARCHAR, no_of_hc_climbs VARCHAR, most_recent VARCHAR)
SELECT founded FROM table_1715730_2 WHERE institution = "Union University"
what is the year union university was founded?
CREATE TABLE table_1715730_2 (founded VARCHAR, institution VARCHAR)
SELECT Duration, COUNT(Duration) FROM actor GROUP BY Duration ORDER BY Duration
Group and count the durations for each actor with a bar graph, sort from low to high by the bar please.
CREATE TABLE musical ( Musical_ID int, Name text, Year int, Award text, Category text, Nominee text, Result text ) CREATE TABLE actor ( Actor_ID int, Name text, Musical_ID int, Character text, Duration text, age int )
SELECT COUNT(most_recent) FROM table_name_56 WHERE height__m_ = "2770" AND first_time_as_hc_climb < 1992
What was the most recent year a height of 2770 m and a HC climb before 1992 was climbed?
CREATE TABLE table_name_56 (most_recent VARCHAR, height__m_ VARCHAR, first_time_as_hc_climb VARCHAR)
SELECT _percentage_2011 FROM table_1717824_1 WHERE province = "Manitoba"
What was the percentage in Manitoba in 2011?
CREATE TABLE table_1717824_1 (_percentage_2011 VARCHAR, province VARCHAR)
SELECT wins FROM table_17246160_1 WHERE series = "Formula BMW World Final"
How many wins did the player have in the Formula BMW World Final?
CREATE TABLE table_17246160_1 ( wins VARCHAR, series VARCHAR )
SELECT first_time_as_hc_climb FROM table_name_23 WHERE no_of_times_visited > 3 AND no_of_hc_climbs = 4 AND most_recent < 2013 AND height__m_ = "1669"
When was the first HC climb before 2013 with more than 3 times visited, more than 4 HC climbs, and a height of 1669?
CREATE TABLE table_name_23 (first_time_as_hc_climb VARCHAR, height__m_ VARCHAR, most_recent VARCHAR, no_of_times_visited VARCHAR, no_of_hc_climbs VARCHAR)
SELECT province FROM table_1717824_1 WHERE south_asians_2001 = 210295
Which province had population of 210295 South Asians in 2001?
CREATE TABLE table_1717824_1 (province VARCHAR, south_asians_2001 VARCHAR)
SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '11:00' AND course.course_id = course_offering.course_id AND course.department = 'ECON' AND course.number = 183 AND semester.semester = 'WN' AND ...
What is the section after 11:00 A.M. that is in ECON 183 ?
CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int...
SELECT builder FROM table_name_43 WHERE pennant_number = "d03"
Who is the builder of Pennant d03?
CREATE TABLE table_name_43 (builder VARCHAR, pennant_number VARCHAR)
SELECT south_asians_2001 FROM table_1717824_1 WHERE province = "Nova Scotia"
What was the South Asian population in Nova Scotia in 2001?
CREATE TABLE table_1717824_1 (south_asians_2001 VARCHAR, province VARCHAR)
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-2205')) AND NOT vitalperiodic.sao2 IS NULL AND ...
when did patient 035-2205 last have a minimum value of sao2 since 03/20/2102?
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE lab ( labid numb...
SELECT COUNT(pick__number) FROM table_name_30 WHERE reg_gp > 906 AND pl_gp > 99
How many picks had a Reg GP that was over 906, when the Pl GP was bigger than 99?
CREATE TABLE table_name_30 (pick__number VARCHAR, reg_gp VARCHAR, pl_gp VARCHAR)
SELECT _percentage_2011 FROM table_1717824_1 WHERE _percentage_2001 = "2.4%"
What was the percentage in 2011 of the province that had 2.4% population in 2001?
CREATE TABLE table_1717824_1 (_percentage_2011 VARCHAR, _percentage_2001 VARCHAR)
SELECT COUNT("Tar Heels points") FROM table_23871 WHERE "Result" = 'Loss'
How many results finished in a loss?
CREATE TABLE table_23871 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Tar Heels points" real, "Opponents" real, "Record" text )
SELECT MIN(pick__number) FROM table_name_44 WHERE reg_gp < 0
Which is the smallest pick number that had a Reg GP of less than 0?
CREATE TABLE table_name_44 (pick__number INTEGER, reg_gp INTEGER)
SELECT COUNT(south_asians_2001) FROM table_1717824_1 WHERE _percentage_2011 = "4.4%"
How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011?
CREATE TABLE table_1717824_1 (south_asians_2001 VARCHAR, _percentage_2011 VARCHAR)
SELECT "name" FROM table_204_173 WHERE id = (SELECT id FROM table_204_173 WHERE "name" = 'niki palli') + 1
which name is listed below niki palli ?
CREATE TABLE table_204_173 ( id number, "rank" number, "group" text, "name" text, "nationality" text, "2.05" text, "2.15" text, "2.19" text, "2.23" text, "2.26" text, "result" text, "notes" text )
SELECT home_team AS score FROM table_name_15 WHERE away_team = "south melbourne"
Name the home team score when the away team is south melbourne
CREATE TABLE table_name_15 (home_team VARCHAR, away_team VARCHAR)
SELECT indians_admitted FROM table_1717824_3 WHERE year = 2001
How many Indians were admitted in 2001?
CREATE TABLE table_1717824_3 (indians_admitted VARCHAR, year VARCHAR)
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions...
what were the five most commonly given diagnoses for patients who had been previously diagnosed with left bb block nec in the same month?
CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id numb...
SELECT date FROM table_name_51 WHERE home_team = "collingwood"
Name the date for home team of collingwood
CREATE TABLE table_name_51 (date VARCHAR, home_team VARCHAR)
SELECT MAX(pakistanis_admitted) FROM table_1717824_3 WHERE nepalis_admitted = 627
What is the greatest number of Pakistanis admitted to Canada during those times when the number of Nepalis admitted was 627?
CREATE TABLE table_1717824_3 (pakistanis_admitted INTEGER, nepalis_admitted VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2056" AND procedures.icd9_code = "8321"
give me the number of patients whose year of birth is less than 2056 and procedure icd9 code is 8321?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT date FROM table_name_87 WHERE venue = "princes park"
Name the date for princes park
CREATE TABLE table_name_87 (date VARCHAR, venue VARCHAR)
SELECT MIN(indians_admitted) FROM table_1717824_3 WHERE sri_lankans_admitted = 3104
What is the most number of Indians admitted to Canada when the number of Sri Lankans admitted was 3104?
CREATE TABLE table_1717824_3 (indians_admitted INTEGER, sri_lankans_admitted VARCHAR)
SELECT "Date" FROM table_31983 WHERE "Week" = '13'
Tell me the date with week of 13
CREATE TABLE table_31983 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text )
SELECT date FROM table_name_59 WHERE venue = "brunswick street oval"
Name the date for the venue of brunswick street oval
CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR)
SELECT COUNT(driver___passenger) FROM table_17176509_4 WHERE position = 30
Name the driver/passenger for 30
CREATE TABLE table_17176509_4 (driver___passenger VARCHAR, position VARCHAR)
SELECT "Malayalam \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02" FROM table_19120 WHERE "#" = '10'
What is the Malayalam word that is listed as #10 in the table?
CREATE TABLE table_19120 ( "#" real, "Sanskrit \u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d" text, "Tamil \u0ba4\u0bae\u0bbf\u0bb4\u0bcd" text, "Telugu \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41" text, "Kannada \u0c95\u0ca8\u0ccd\u0ca8\u0ca1" text, "Malayalam \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u...
SELECT crowd FROM table_name_12 WHERE date = "26 april 1948" AND away_team = "hawthorn"
What was the attendence of the game on 26 April 1948 and an away team of Hawthorn?
CREATE TABLE table_name_12 (crowd VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT MAX(bike_no) FROM table_17176509_4 WHERE position = 30
Name the max bike number of position for 30
CREATE TABLE table_17176509_4 (bike_no INTEGER, position VARCHAR)
SELECT "Score" FROM table_45576 WHERE "To par" > '7' AND "Place" = 't4' AND "Player" = 'bob rosburg'
What is Score, when To Par is greater than 7, when Place is 'T4', and when Player is 'Bob Rosburg'?
CREATE TABLE table_45576 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real )
SELECT home_team FROM table_name_54 WHERE venue = "windy hill"
When playing at Windy Hill, what was the home team?
CREATE TABLE table_name_54 (home_team VARCHAR, venue VARCHAR)
SELECT high_points FROM table_17190012_12 WHERE game = 4
Who had the most points in game 4?
CREATE TABLE table_17190012_12 (high_points VARCHAR, game VARCHAR)
SELECT "Region" FROM table_80342 WHERE "Label" = 'alfa records' AND "Catalog" = 'alca-282'
What is the region of the Alfa Records release with catalog ALCA-282?
CREATE TABLE table_80342 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text )
SELECT AVG(crowd) FROM table_name_99 WHERE home_team = "footscray"
What is the average crowd when footscray is at home?
CREATE TABLE table_name_99 (crowd INTEGER, home_team VARCHAR)
SELECT COUNT(going_to) FROM table_17200372_2 WHERE calling_at = "Thurlby, Braceborough Spa" AND departure = "16.50"
Name the number of going to for thurlby, braceborough spa at departure being 16.50
CREATE TABLE table_17200372_2 (going_to VARCHAR, calling_at VARCHAR, departure VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "49" AND demographic.days_stay > "3"
count the number of patients less than 49 years who stayed in the hospital for more than 3 days.
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 diagnoses ( ...
SELECT crowd FROM table_name_4 WHERE venue = "windy hill"
What is the listed crowd at windy hill?
CREATE TABLE table_name_4 (crowd VARCHAR, venue VARCHAR)
SELECT departure FROM table_17200372_2 WHERE going_to = "Spalding"
Name the departure for spalding
CREATE TABLE table_17200372_2 (departure VARCHAR, going_to VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Accidental fall on or from other stairs or steps"
count the number of emergency hospital admitted patients who were diagnosed with accidental fall on or from other stairs or steps.
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 away_team FROM table_name_27 WHERE venue = "punt road oval"
What is the away team's score at punt road oval?
CREATE TABLE table_name_27 (away_team VARCHAR, venue VARCHAR)
SELECT high_points FROM table_17190012_7 WHERE record = "27–5"
who scored highest points on the game with record 27–5
CREATE TABLE table_17190012_7 (high_points VARCHAR, record VARCHAR)
SELECT bname, SUM(amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_ID = T2.branch_ID GROUP BY T1.bname ORDER BY SUM(amount)
What are the names of the different bank branches, and what are their total loan amounts Show bar chart, and I want to sort by the Y-axis from low to high.
CREATE TABLE customer ( cust_ID varchar(3), cust_name varchar(20), acc_type char(1), acc_bal int, no_of_loans int, credit_score int, branch_ID int, state varchar(20) ) CREATE TABLE bank ( branch_ID int, bname varchar(20), no_of_customers int, city varchar(10), state ...
SELECT home FROM table_name_24 WHERE score = "116–105"
Who was the home team at the Nuggets game that had a score of 116–105?
CREATE TABLE table_name_24 (home VARCHAR, score VARCHAR)
SELECT high_rebounds FROM table_17190012_7 WHERE score = "W 105–88 (OT)"
who did highest rebounds in the game with score w 105–88 (ot)
CREATE TABLE table_17190012_7 (high_rebounds VARCHAR, score VARCHAR)
SELECT MAX("Enrollment") FROM table_23268 WHERE "Institution" = 'Babson College'
What's Babson College's enrollment?
CREATE TABLE table_23268 ( "Institution" text, "Location" text, "Nickname" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" real )
SELECT MIN(laps) FROM table_name_46 WHERE time_retired = "+2 laps" AND grid = 20
Tell me the lowest Laps with a time/retired of +2 Laps and Grid of 20
CREATE TABLE table_name_46 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT COUNT(record) FROM table_17190012_7 WHERE score = "W 121–119 (OT)"
how many records were made on the game that ended with score w 121–119 (ot)
CREATE TABLE table_17190012_7 (record VARCHAR, score VARCHAR)
SELECT "Provider" FROM table_19366 WHERE "Application" = 'Exchange Server'
Which providers don't use exchange server?
CREATE TABLE table_19366 ( "Application" text, "Version" text, "Cmdlets" text, "Provider" text, "Management GUI" text )
SELECT time_retired FROM table_name_83 WHERE driver = "eddie irvine"
I want the time/retired for eddie irvine
CREATE TABLE table_name_83 (time_retired VARCHAR, driver VARCHAR)
SELECT position_in_table FROM table_17201869_3 WHERE replaced_by = "Lucas Alcaraz"
What was the team's position when the new manager was Lucas Alcaraz?
CREATE TABLE table_17201869_3 (position_in_table VARCHAR, replaced_by VARCHAR)
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) DESC
For all employees who have the letters D or S in their first name, find hire_date and the amount of hire_date bin hire_date by weekday, and visualize them by a bar chart, and could you show in descending by the how many hire date?
CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), ...
SELECT date FROM table_name_48 WHERE winning_driver = "rodger ward"
What date was Rodger Ward the winning driver?
CREATE TABLE table_name_48 (date VARCHAR, winning_driver VARCHAR)
SELECT replaced_by FROM table_17201869_3 WHERE outgoing_manager = "José Ángel Ziganda"
Who replaced outgoing manager José Ángel Ziganda?
CREATE TABLE table_17201869_3 (replaced_by VARCHAR, outgoing_manager VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND lab.itemid = "50801"
how many patients admission location is trsf within this facility and item id is 50801?
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob te...
SELECT constructor FROM table_name_46 WHERE winning_driver = "jack brabham" AND race = "monaco grand prix"
What was the constructor when Jack Brabham was the driver at the Monaco Grand Prix?
CREATE TABLE table_name_46 (constructor VARCHAR, winning_driver VARCHAR, race VARCHAR)
SELECT grid FROM table_17244483_1 WHERE points = "19"
What grid did the driver who earned 19 points start at?
CREATE TABLE table_17244483_1 (grid VARCHAR, points VARCHAR)
SELECT MAX("Males Rank") FROM table_36283 WHERE "Females (%)" < '40' AND "Females Rank" < '22'
Which Males Rank is the highest one that has Females (%) smaller than 40, and Females Rank smaller than 22?
CREATE TABLE table_36283 ( "Males Rank" real, "Females Rank" real, "State" text, "HIV awareness (males%)" real, "Females (%)" real )
SELECT winning_driver FROM table_name_78 WHERE pole_position = "joakim bonnier"
What driver was the winner when Joakim Bonnier was in the Pole Position?
CREATE TABLE table_name_78 (winning_driver VARCHAR, pole_position VARCHAR)
SELECT COUNT(grid) FROM table_17244483_1 WHERE driver = "Scott Dixon"
Scott Dixon had how many Grid positions?
CREATE TABLE table_17244483_1 (grid VARCHAR, driver VARCHAR)
SELECT "Years" FROM table_33719 WHERE "Conference Record" = '18-15'
In what years was the conference record 18-15?
CREATE TABLE table_33719 ( "Coach" text, "Years" text, "Record" text, "Conference Record" text, "Overall Win Percentage" text )
SELECT date FROM table_name_61 WHERE tyre = "d" AND winning_driver = "bruce mclaren"
What date was the Tyre d and Bruce Mclaren won?
CREATE TABLE table_name_61 (date VARCHAR, tyre VARCHAR, winning_driver VARCHAR)
SELECT time_retired FROM table_17244483_1 WHERE car_no = 15
Car number 15 earned what time?
CREATE TABLE table_17244483_1 (time_retired VARCHAR, car_no VARCHAR)