table
stringlengths
33
7.14k
question
stringlengths
4
1.06k
output
stringlengths
2
4.44k
⌀
CREATE TABLE table_1857216_1 ( acceleration_0_100km_h__0_62mph_ VARCHAR, production VARCHAR )
What is the acceleration 0-100km/h that was produced in 2002-2006?
SELECT acceleration_0_100km_h__0_62mph_ FROM table_1857216_1 WHERE production = "2002-2006"
CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment tex...
All users who voted on a post.
SELECT UserId AS "user_link", CreationDate, Name AS VoteType FROM Votes JOIN VoteTypes ON Votes.VoteTypeId = VoteTypes.Id WHERE PostId = @PostId ORDER BY CreationDate
CREATE TABLE table_name_92 ( game INTEGER, opponent VARCHAR )
What is the first game played against the Chicago Black Hawks?
SELECT MIN(game) FROM table_name_92 WHERE opponent = "chicago black hawks"
CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, Time text ) CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Coun...
Draw a bar chart about the distribution of Nationality and the sum of ID , and group by attribute Nationality, order from low to high by the X please.
SELECT Nationality, SUM(ID) FROM swimmer GROUP BY Nationality ORDER BY Nationality
CREATE TABLE table_204_73 ( id number, "date" text, "opponent" text, "score" text, "result" text, "record" text )
what is the least the starzzs have scored at a home game ?
SELECT MIN("score") FROM table_204_73 WHERE "opponent" = 'home'
CREATE TABLE journal ( homepage varchar, jid int, name varchar ) CREATE TABLE domain_author ( aid int, did int ) CREATE TABLE domain_publication ( did int, pid int ) CREATE TABLE publication ( abstract varchar, cid int, citation_num int, jid int, pid int, reference...
return me the number of papers in PVLDB in ' University of Michigan ' .
SELECT COUNT(DISTINCT (publication.title)) FROM author, journal, organization, publication, writes WHERE journal.name = 'PVLDB' AND organization.name = 'University of Michigan' AND organization.oid = author.oid AND publication.jid = journal.jid AND writes.aid = author.aid AND writes.pid = publication.pid
CREATE TABLE table_66981 ( "Name" text, "Years" text, "Gender" text, "Area" text, "Authority" text, "Decile" real, "Roll" real )
Name the least decile for state authority and area of eketahuna with roll more than 44
SELECT MIN("Decile") FROM table_66981 WHERE "Authority" = 'state' AND "Area" = 'eketahuna' AND "Roll" > '44'
CREATE TABLE table_name_52 ( telugu_తెలుగు VARCHAR, tamil_தமிழ் VARCHAR )
Which Telugu has a Tamil of p sam ?
SELECT telugu_తెలుగు FROM table_name_52 WHERE tamil_தமிழ் = "pūsam பூசம்"
CREATE TABLE table_name_84 ( position VARCHAR, player VARCHAR )
What Position does the Player Vince Carter hold?
SELECT position FROM table_name_84 WHERE player = "vince carter"
CREATE TABLE table_name_78 ( year VARCHAR, award VARCHAR, category VARCHAR )
In what year was there an award for TV Adicto Golden Awards and the category Female Revelation?
SELECT year FROM table_name_78 WHERE award = "tv adicto golden awards" AND category = "female revelation"
CREATE TABLE table_20799587_1 ( mccain_percentage VARCHAR, county VARCHAR )
What percentage of the votes in Copiah did McCain get?
SELECT mccain_percentage FROM table_20799587_1 WHERE county = "Copiah"
CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, P...
Zero scored question ratio by tag.
SELECT COUNT(*) AS N, TagName, 1 - COUNT(CASE WHEN Score = 0 THEN 1 END) * 1.0 / COUNT(*) AS voting_ratio FROM Posts AS p JOIN PostTags ON p.Id = PostId JOIN Tags AS t ON t.Id = TagId WHERE Score >= 0 GROUP BY TagName HAVING COUNT(*) > 75000 ORDER BY COUNT(CASE WHEN Score = 0 THEN 1 END) * 1.0 / COUNT(*)
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...
provide me the number of patients on ng route of drug administration who have diagnoses icd9 code 99662.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "99662" AND prescriptions.route = "NG"
CREATE TABLE table_name_31 ( heat_semifinal_final VARCHAR, time VARCHAR )
What heat, semifinal or final has a time of 25.00?
SELECT heat_semifinal_final FROM table_name_31 WHERE time = "25.00"
CREATE TABLE table_name_67 ( base VARCHAR, play VARCHAR )
what is the base when the play is thesmophoriazusae?
SELECT base FROM table_name_67 WHERE play = "thesmophoriazusae"
CREATE TABLE table_203_154 ( id number, "type" text, "manufacturer" text, "numbers" text, "year built" number, "quantity built" number, "power (horsepower)" number, "max speed (km/h)" number, "note" text )
which train has the least speed ?
SELECT "type" FROM table_203_154 ORDER BY "max speed (km/h)" LIMIT 1
CREATE TABLE table_15647838_3 ( _number INTEGER, location VARCHAR, opponent VARCHAR )
What is the lowest # in Atlanta, GA with the Georgia Bulldogs as an opponent?
SELECT MIN(_number) FROM table_15647838_3 WHERE location = "Atlanta, GA" AND opponent = "Georgia Bulldogs"
CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, ...
what was the three most frequently ordered specimen tests ordered for patients who were previously diagnosed with pancreatic disorder nec in the same hospital encounter since 2104?
SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnos...
CREATE TABLE table_49915 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real )
Which player had a to par score of +2?
SELECT "Player" FROM table_49915 WHERE "To par" = '+2'
CREATE TABLE table_38196 ( "Team" text, "Driver" text, "Laps" real, "Time" text, "Grid" real )
How many Laps have a Driver of satrio hermanto?
SELECT SUM("Laps") FROM table_38196 WHERE "Driver" = 'satrio hermanto'
CREATE TABLE table_28182 ( "Institution" text, "Seniors" text, "Juniors" text, "Women" text, "Status" text, "Founded" real, "Affiliation (Population)" text, "Color" text, "Location" text )
What status of school is informatics international college?
SELECT "Status" FROM table_28182 WHERE "Institution" = 'Informatics International College'
CREATE TABLE table_269920_17 ( l3_cache__mb_ INTEGER, model VARCHAR, qpi_speed__gt_s_ VARCHAR, speed__ghz_ VARCHAR )
What is the maximum L3 cache of the processor whose speed is 2.00 GHZ, has a QPI speed of 4.8 gt/s, and is model e5504?
SELECT MAX(l3_cache__mb_) FROM table_269920_17 WHERE qpi_speed__gt_s_ = "4.8" AND speed__ghz_ = "2.00" AND model = "E5504"
CREATE TABLE table_24195232_1 ( location VARCHAR, team_name VARCHAR )
What is the location for the team name of eagles?
SELECT location FROM table_24195232_1 WHERE team_name = "Eagles"
CREATE TABLE table_22397 ( "Episode" text, "Garfield Episode 1" text, "U.S. Acres Episode" text, "Garfield Episode 2" text, "Original Airdate" text )
Which Garfield episode 2 has Garfield episode 1 as the first annual Garfield watchers test?
SELECT "Garfield Episode 2" FROM table_22397 WHERE "Garfield Episode 1" = 'The First Annual Garfield Watchers Test'
CREATE TABLE Department_Stores ( dept_store_id INTEGER, dept_store_chain_id INTEGER, store_name VARCHAR(80), store_address VARCHAR(255), store_phone VARCHAR(80), store_email VARCHAR(80) ) CREATE TABLE Customers ( customer_id INTEGER, payment_method_code VARCHAR(10), customer_code VA...
For each payment method, return how many customers use it, sort in descending by the x axis.
SELECT payment_method_code, COUNT(*) FROM Customers GROUP BY payment_method_code ORDER BY payment_method_code DESC
CREATE TABLE table_name_32 ( losses INTEGER, goals_against VARCHAR, position VARCHAR )
How many losses has more than 59 goals against and more than 17 position?
SELECT MIN(losses) FROM table_name_32 WHERE goals_against > 59 AND position > 17
CREATE TABLE table_name_62 ( points VARCHAR, club VARCHAR )
what is the points when the club blaengarw rfc?
SELECT points FROM table_name_62 WHERE club = "blaengarw rfc"
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(...
For those employees who did not have any job in the past, show me about the distribution of hire_date and the average of salary bin hire_date by weekday in a bar chart, could you show in desc by the total number?
SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(SALARY) DESC
CREATE TABLE table_32890 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
What is the largest crowd at arden street oval?
SELECT MAX("Crowd") FROM table_32890 WHERE "Venue" = 'arden street oval'
CREATE TABLE table_79205 ( "Country" text, "Event" text, "Time" text, "Date" text, "Place" text )
What is the Country of the 10,000m Event?
SELECT "Country" FROM table_79205 WHERE "Event" = '10,000m'
CREATE TABLE table_66391 ( "Year" real, "Title" text, "Type" text, "Label" text, "Label-Nr" text )
What is the earliest year with a label-Nr of st-43?
SELECT MIN("Year") FROM table_66391 WHERE "Label-Nr" = 'st-43'
CREATE TABLE table_2610582_3 ( branding VARCHAR, callsign VARCHAR )
What is the branding of the callsign DWBA-TV?
SELECT branding FROM table_2610582_3 WHERE callsign = "DWBA-TV"
CREATE TABLE table_38674 ( "Make" text, "Year placed in service" text, "Quantity" real, "Number of seats" real, "Wheelchair accessible? ()" text, "Current status" text )
What is the current status for GM Advanced Design with more than 41 seats?
SELECT "Current status" FROM table_38674 WHERE "Make" = 'gm advanced design' AND "Number of seats" > '41'
CREATE TABLE table_49139 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
What country has player Scott Verplank?
SELECT "Country" FROM table_49139 WHERE "Player" = 'scott verplank'
CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_...
show me all flights from PITTSBURGH to PHILADELPHIA which arrive before 800 o'clock am on wednesday
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (((((flight.arrival_time < flight.departure_time) AND date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.da...
CREATE TABLE table_204_658 ( id number, "week" number, "date" text, "kickoff" text, "opponent" text, "results\nfinal score" text, "results\nteam record" text, "game site" text, "attendance" number )
after saturday , april 14 , when was the other win ?
SELECT "date" FROM table_204_658 WHERE "date" > (SELECT "date" FROM table_204_658 WHERE "date" = 'saturday, april 14') AND "results\nfinal score" = 'w'
CREATE TABLE table_79172 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
What country did Raymond Floyd play for?
SELECT "Country" FROM table_79172 WHERE "Player" = 'raymond floyd'
CREATE TABLE table_204_42 ( id number, "season" number, "level" text, "division" text, "section" text, "position" text, "movements" text )
how long have they been playing ?
SELECT MAX("season") - MIN("season") FROM table_204_42
CREATE TABLE table_16101 ( "No. in series" real, "No. in season" real, "Title" text, "Setting" text, "Directed by" text, "Written by" text, "U.S. viewers (million)" text, "Original air date" text )
Who wrote the episode that was set in winter 1541/february 13, 1542?
SELECT "Written by" FROM table_16101 WHERE "Setting" = 'Winter 1541/February 13, 1542'
CREATE TABLE table_9413 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
What is Kirk Triplett's Place?
SELECT "Place" FROM table_9413 WHERE "Player" = 'kirk triplett'
CREATE TABLE table_name_93 ( result VARCHAR, date VARCHAR )
What was the result of the match played on 13 October 1993?
SELECT result FROM table_name_93 WHERE date = "13 october 1993"
CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, ...
i'd like a flight from LAS VEGAS to DETROIT on monday
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DETROIT' AND date_day.day_number = 21 AND date_day.month_number = 2 AND d...
CREATE TABLE table_28901 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text )
when was the first elected when the candidates is thomas lawyer (dr) 54.9% william beekman (f) 45.1%?
SELECT "First elected" FROM table_28901 WHERE "Candidates" = 'Thomas Lawyer (DR) 54.9% William Beekman (F) 45.1%'
CREATE TABLE table_25469 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
What's the record of the game in which Carlos Delfino (17) did the most high points?
SELECT "Record" FROM table_25469 WHERE "High points" = 'Carlos Delfino (17)'
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...
how many patients are taking methadone medication?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Methadone"
CREATE TABLE table_243664_1 ( real_life_years_of_operation VARCHAR, currently¹_part_of VARCHAR )
Name the real life years of operation for amtrak
SELECT real_life_years_of_operation FROM table_243664_1 WHERE currently¹_part_of = "Amtrak"
CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, ...
Count of posts edited by some users.
SELECT Month, '209103' AS "puf", '4625829', '5637321', '5996134' AS "kendi", '807126' AS "doug", '2207583' AS "tburner" FROM (SELECT DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS "month", PostHistory.UserId, COUNT(*) AS Count FROM Posts INNER JOIN PostHistory ON PostHistory.PostId = Posts.Id WHERE PostHistory....
CREATE TABLE projects ( code text, name text, hours number ) CREATE TABLE scientists ( ssn number, name text ) CREATE TABLE assignedto ( scientist number, project text )
How many scientists do not have any projects assigned to them?
SELECT COUNT(*) FROM scientists WHERE NOT ssn IN (SELECT scientist FROM assignedto)
CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time int, dual_carrier text, flight_days text, flight_id int, flight_number int, from_airport varchar, meal_code text, stops int,...
show me flights from MILWAUKEE to ORLANDO on wednesday after 1800
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time...
CREATE TABLE table_57146 ( "Number & Name" text, "Description" text, "Livery" text, "Owner(s)" text, "Date" real )
Which owner has a description of Mark 1 CK and is dated 1953?
SELECT "Owner(s)" FROM table_57146 WHERE "Date" = '1953' AND "Description" = 'mark 1 ck'
CREATE TABLE table_11893 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
If the Away team score was 13.20 (98), what was the Home team they played?
SELECT "Home team" FROM table_11893 WHERE "Away team score" = '13.20 (98)'
CREATE TABLE table_43652 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text )
What was the result when 58,516 were in attendance?
SELECT "Result" FROM table_43652 WHERE "Attendance" = '58,516'
CREATE TABLE table_63911 ( "Year" text, "Total Support and Revenue" text, "Total Expenses" text, "Increase in Net Assets" text, "Net Assets at End of Year" text )
With an increase in net assets of $211,418, what are the net assets at end of year?
SELECT "Net Assets at End of Year" FROM table_63911 WHERE "Increase in Net Assets" = '$211,418'
CREATE TABLE table_name_68 ( event VARCHAR, medal VARCHAR, olympics VARCHAR )
What is the event in the 2000 summer olympics with a bronze medal?
SELECT event FROM table_name_68 WHERE medal = "bronze" AND olympics = "2000 summer olympics"
CREATE TABLE table_204_881 ( id number, "round" number, "date" text, "score" text, "opponent" text, "opponent's score" text, "result" text, "venue" text, "attendance" number, "best on ground" text, "team" text )
what was the date of the last win ?
SELECT "date" FROM table_204_881 WHERE "score" > "opponent's score" ORDER BY "date" DESC LIMIT 1
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ...
what is the number of patients whose primary disease is left femur fracture and lab test abnormal status is delta?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "LEFT FEMUR FRACTURE" AND lab.flag = "delta"
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 intakeoutput ( i...
when did the last time patient 016-18150 had the minimum respiration on the last icu visit?
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 = '016-18150') AND NOT patient.unitdischargetime IS NU...
CREATE TABLE procedures ( 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, ...
what is gender of subject id 6983?
SELECT demographic.gender FROM demographic WHERE demographic.subject_id = "6983"
CREATE TABLE table_70040 ( "Season" text, "Competition" text, "Round" text, "Club" text, "Home" text, "Away" text, "Aggregate" text )
In what season did the Sporting CP Club have a 1. round?
SELECT "Season" FROM table_70040 WHERE "Round" = '1. round' AND "Club" = 'sporting cp'
CREATE TABLE table_29728787_1 ( la_roche VARCHAR, year VARCHAR )
When 1971 is the year what is the la roche?
SELECT la_roche FROM table_29728787_1 WHERE year = "1971"
CREATE TABLE table_name_32 ( attendance INTEGER, opponent VARCHAR, date VARCHAR )
Which Attendance has an Opponent of pittsburgh pirates, and a Date of may 5?
SELECT AVG(attendance) FROM table_name_32 WHERE opponent = "pittsburgh pirates" AND date = "may 5"
CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, ...
has patient 32168 received a procedure of packed cell transfusion until 3 years ago?
SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'packed cell transfusion') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 32168) AND DATETIME(pro...
CREATE TABLE table_train_261 ( "id" int, "allergy_to_biological_products" bool, "renal_disease" bool, "bursing_mothers" bool, "metabolic_bone_disease" bool, "liver_disease" bool, "allergy_to_drug" bool, "alcohol_abuse" bool, "drug_abuse" bool, "NOUSE" float )
patients with a history of drug or alcohol dependence in the last 5 years
SELECT * FROM table_train_261 WHERE drug_abuse = 1 OR alcohol_abuse = 1
CREATE TABLE table_16803 ( "House Name" text, "Composition" text, "Named after" text, "Founded" real, "Colours" text )
What is the benue house made of?
SELECT "Composition" FROM table_16803 WHERE "House Name" = 'Benue'
CREATE TABLE table_33128 ( "Conference" text, "# of Bids" real, "Record" text, "Win %" real, "Round of 32" real, "Sweet Sixteen" text, "Elite Eight" text, "Final Four" text, "Championship Game" text )
What was the championship game for the Southwest conference?
SELECT "Championship Game" FROM table_33128 WHERE "Conference" = 'southwest'
CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE dataset ( datasetid int, datasetname varchar ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE paperfield ( fieldid int, paper...
What are the papers of saurabh gupta in instance segmentation ?
SELECT DISTINCT author.authorid, paper.paperid FROM author, keyphrase, paper, paperkeyphrase, writes WHERE author.authorname = 'saurabh gupta' AND keyphrase.keyphrasename = 'instance segmentation' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND writes.authorid = aut...
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, ...
what is average days of hospital stay of patients whose admission location is trsf within this facility?
SELECT AVG(demographic.days_stay) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY"
CREATE TABLE table_18958648_1 ( overweight__incl_obese__adults VARCHAR, obesity_rank VARCHAR )
What are all percentages of overweight or obese adults for obesity rank of 21?
SELECT overweight__incl_obese__adults FROM table_18958648_1 WHERE obesity_rank = 21
CREATE TABLE table_14624447_39 ( hometown VARCHAR, name VARCHAR )
Name the hometown for ventrell jenkins
SELECT hometown FROM table_14624447_39 WHERE name = "Ventrell Jenkins"
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, ...
what is the daily maximum of the weight of patient 012-35670 until 2 years ago?
SELECT MAX(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-35670') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY STRFTIME('...
CREATE TABLE city ( City_ID int, City text, Hanzi text, Hanyu_Pinyin text, Regional_Population int, GDP real ) CREATE TABLE match ( Match_ID int, Date text, Venue text, Score text, Result text, Competition text ) CREATE TABLE hosting_city ( Year int, Match_ID in...
Find the number of matches in different competitions. Plot them as pie chart.
SELECT Competition, COUNT(*) FROM match GROUP BY Competition
CREATE TABLE addresses ( address_id number, line_1 text, line_2 text, city text, zip_postcode text, state_province_county text, country text ) CREATE TABLE candidate_assessments ( candidate_id number, qualification text, assessment_date time, asessment_outcome_code text ) C...
What are the ids of the students who either registered or attended a course?
SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance
CREATE TABLE table_41210 ( "Year" real, "Film" text, "Director" text, "Producer" text, "Writer" text )
With yes under writer and in 2014, what is the director?
SELECT "Director" FROM table_41210 WHERE "Year" = '2014' AND "Writer" = 'yes'
CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varc...
show flights from PITTSBURGH to OAKLAND
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAK...
CREATE TABLE table_53445 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
What was the home team when Carlton was the away team?
SELECT "Home team" FROM table_53445 WHERE "Away team" = 'carlton'
CREATE TABLE table_name_83 ( to_par VARCHAR, money___$__ VARCHAR, score VARCHAR )
what is the to par for $242,813 with score 68-72-74-66=280
SELECT to_par FROM table_name_83 WHERE money___$__ = "242,813" AND score = 68 - 72 - 74 - 66 = 280
CREATE TABLE table_71014 ( "From" text, "Until" text, "Name" text, "Party" text, "Function" text )
What is the Until date that has a party of VLD and a beginning from date of December 17, 2007?
SELECT "Until" FROM table_71014 WHERE "Party" = 'vld' AND "From" = 'december 17, 2007'
CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, Time text ) CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text ) CREATE...
A bar chart shows the distribution of name and ID , and show names in descending order.
SELECT name, ID FROM swimmer ORDER BY name DESC
CREATE TABLE table_name_36 ( date VARCHAR, opponent VARCHAR )
On which date was the game played against the Milwaukee Bucks?
SELECT date FROM table_name_36 WHERE opponent = "milwaukee bucks"
CREATE TABLE table_23690 ( "Club" text, "Played" text, "Won" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Points difference" text, "Bonus Points" text, "Points" text )
which club is listed when bonus points is bonus points
SELECT "Club" FROM table_23690 WHERE "Bonus Points" = 'Bonus Points'
CREATE TABLE table_65710 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text )
What is the Week number on December 18, 1960?
SELECT COUNT("Week") FROM table_65710 WHERE "Date" = 'december 18, 1960'
CREATE TABLE table_27756014_1 ( team VARCHAR, date VARCHAR )
What is the team played on october 5?
SELECT team FROM table_27756014_1 WHERE date = "October 5"
CREATE TABLE table_32095 ( "2nd component" text, "b.p. 2nd comp. (\u02daC)" real, "3rd component" text, "b.p. 3rd comp. (\u02daC)" text, "b.p. azeo. (\u02daC)" text, "% wt 1st" text, "% wt 2nd" text, "% wt 3rd" text )
Tell me the % of wt 2nd for bp 3rd comp of 98.4
SELECT "% wt 2nd" FROM table_32095 WHERE "b.p. 3rd comp. (\u02daC)" = '98.4'
CREATE TABLE table_43685 ( "Class" text, "Team" text, "Driver" text, "Chassis \u2013 Engine" text, "Laps" real )
What was the highest amount of laps for class c1 and driver Derek Bell?
SELECT MAX("Laps") FROM table_43685 WHERE "Class" = 'c1' AND "Driver" = 'derek bell'
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtim...
what is the monthly maximum of patient 028-45581's weight until 2102?
SELECT MAX(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-45581') AND NOT patient.admissionweight IS NULL AND STRFTIME('%y', patient.unitadmittime) <= '2102' GROUP BY STRFTIME('%y-%m', patient.unitadm...
CREATE TABLE table_38891 ( "Date" text, "City" text, "Opponent" text, "Results\u00b9" text, "Type of game" text )
What city held the game with a result of 1:0?
SELECT "City" FROM table_38891 WHERE "Results\u00b9" = '1:0'
CREATE TABLE table_13848 ( "Model number" text, "sSpec number" text, "Cores" text, "Frequency" text, "Turbo" text, "L2 cache" text, "L3 cache" text, "GPU model" text, "GPU frequency" text, "Socket" text, "I/O bus" text, "Release date" text, "Part number(s)" text, ...
what is the part number that has a turbo of low power?
SELECT "Part number(s)" FROM table_13848 WHERE "Turbo" = 'low power'
CREATE TABLE table_14288212_1 ( team VARCHAR, points_for VARCHAR )
How many teams scored exactly 38 points
SELECT COUNT(team) FROM table_14288212_1 WHERE points_for = 38
CREATE TABLE table_14981 ( "Stage" text, "Time" text, "Name" text, "Length" text, "Winner" text, "Rally leader" text )
What was the Time in the Mina Clavero 2 Stage?
SELECT "Time" FROM table_14981 WHERE "Name" = 'mina clavero 2'
CREATE TABLE table_3353 ( "meas. num." real, "passed" text, "YES votes" real, "NO votes" real, "% YES" text, "Const. Amd.?" text, "type" text, "description" text )
What is every description if NO votes is 233759?
SELECT "description" FROM table_3353 WHERE "NO votes" = '233759'
CREATE TABLE table_68084 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
What United States player holds the place of t8?`
SELECT "Player" FROM table_68084 WHERE "Place" = 't8' AND "Country" = 'united states'
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...
how many patients are admitted under clinic referral/premature and diagnosed with icd9 code 2800?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND diagnoses.icd9_code = "2800"
CREATE TABLE table_29555 ( "Season" text, "Points per Game" text, "Total Yards per Game" text, "Rushing Yards per Game" text, "Passing Yards per Game" text, "Sacks" text, "Interceptions" text )
What is every value for rushing yards per game if sacks if 25?
SELECT "Rushing Yards per Game" FROM table_29555 WHERE "Sacks" = '25'
CREATE TABLE table_204_103 ( id number, "medal" text, "name" text, "sport" text, "event" text )
which two silver medalists had 2 weightlifting silver medals each ?
SELECT "name" FROM table_204_103 WHERE "sport" = 'weightlifting' GROUP BY "name" HAVING COUNT("medal") = 2
CREATE TABLE table_49104 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time/Retired" text, "Grid" real )
Which Laps have a Manufacturer of suzuki, and a Grid smaller than 16?
SELECT MAX("Laps") FROM table_49104 WHERE "Manufacturer" = 'suzuki' AND "Grid" < '16'
CREATE TABLE table_name_29 ( winner VARCHAR, event VARCHAR, country VARCHAR )
Who was the Winner of the French Polynesia Billabong Pro Event?
SELECT winner FROM table_name_29 WHERE event = "billabong pro" AND country = "french polynesia"
CREATE TABLE table_15078 ( "Episode" text, "First aired" text, "Entrepreneur(s)" text, "Company or product name" text, "Money requested (\u00a3)" real, "Investing Dragon(s)" text )
what investing dragons aired on episode 10?
SELECT "Investing Dragon(s)" FROM table_15078 WHERE "Episode" = 'episode 10'
CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varch...
What courses does Prof. Catherine Krull teach in Winter 2006 ?
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Catherine Krull%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.o...
CREATE TABLE orders ( order_id VARCHAR, customer_id VARCHAR, date_order_placed VARCHAR )
what are the order id and customer id of the oldest order?
SELECT order_id, customer_id FROM orders ORDER BY date_order_placed LIMIT 1
CREATE TABLE customer_policies ( policy_id number, customer_id number, policy_type_code text, start_date time, end_date time ) CREATE TABLE customers ( customer_id number, customer_details text ) CREATE TABLE payments ( payment_id number, settlement_id number, payment_method_co...
List the date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement.
SELECT T1.claim_id, T1.date_claim_made, T1.date_claim_settled FROM claims AS T1 JOIN settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id HAVING COUNT(*) = 1