answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT artist FROM table_23963073_1 WHERE date_of_publication = 1966
Who was the artist who worked on the stories published in 1966?
CREATE TABLE table_23963073_1 (artist VARCHAR, date_of_publication VARCHAR)
SELECT analog_channel FROM table_name_3 WHERE digital_channel = "32"
Digital channel of 32 belongs to what analog channel?
CREATE TABLE table_name_3 ( analog_channel VARCHAR, digital_channel VARCHAR )
SELECT championship FROM table_2362486_1 WHERE score_in_the_final = "6–4, 2–6, 6–4, 7–6(3)"
Which championship had a final score of 6–4, 2–6, 6–4, 7–6(3)?
CREATE TABLE table_2362486_1 (championship VARCHAR, score_in_the_final VARCHAR)
SELECT start_date FROM table_24057191_2 WHERE series = 6
When did series 6 start?
CREATE TABLE table_24057191_2 (start_date VARCHAR, series VARCHAR)
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-8740') AND NOT patient.unitdischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1) AND intakeoutput.cellpath LIKE '%intake%'
what is the total number of inputs that patient 010-8740 has received on the first icu visit?
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) 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 ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) 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, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text )
SELECT score_in_final FROM table_2362606_1 WHERE year = 1988
What was the score in the final in 1988?
CREATE TABLE table_2362606_1 (score_in_final VARCHAR, year VARCHAR)
SELECT MAX(series) FROM table_24057191_2 WHERE average_viewers__millions_ = "3.72"
What series had an average of 3.72 million people watching it?
CREATE TABLE table_24057191_2 (series INTEGER, average_viewers__millions_ VARCHAR)
SELECT winner FROM table_14395920_2 WHERE stage = 18
Who won stage 18?
CREATE TABLE table_14395920_2 ( winner VARCHAR, stage VARCHAR )
SELECT london_, _great_britain FROM table_23619492_3 WHERE world_record = "Championship record"
Name the london great britain for championship record
CREATE TABLE table_23619492_3 (london_ VARCHAR, _great_britain VARCHAR, world_record VARCHAR)
SELECT COUNT(end_date) FROM table_24057191_2 WHERE average_viewers__millions_ = "4.2"
How many different end dates are there for the series seen by 4.2 million people?
CREATE TABLE table_24057191_2 (end_date VARCHAR, average_viewers__millions_ VARCHAR)
SELECT procedures.icd9_code, prescriptions.drug_type FROM procedures INNER JOIN prescriptions ON procedures.hadm_id = prescriptions.hadm_id WHERE procedures.subject_id = "18480"
give me the procedure icd9 code and drug type of subject id 18480.
CREATE TABLE procedures ( 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 ) 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 text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( 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 )
SELECT COUNT(paula_radcliffe___gbr__) FROM table_23619492_3 WHERE world_record = "African record"
Name the total number of african record
CREATE TABLE table_23619492_3 (paula_radcliffe___gbr__ VARCHAR, world_record VARCHAR)
SELECT population__percentage_of_eu FROM table_24066938_1 WHERE pop_density_people_km_2 = "110.8"
What percentage of the EU's population lives in the country with a population density of 110.8 people per square kilometer?
CREATE TABLE table_24066938_1 (population__percentage_of_eu VARCHAR, pop_density_people_km_2 VARCHAR)
SELECT "Round" FROM table_77997 WHERE "Opponent" = 'blackburn'
What is the Round with a Opponent with blackburn?
CREATE TABLE table_77997 ( "Round" text, "Date" text, "Opponent" text, "Venue" text, "Result" text )
SELECT mix_artist FROM table_23649244_1 WHERE artist_1 = "Tears for Fears" AND artist_2 = "Eric Prydz"
Who are thebmix artists when tears for fears is artist 1 and eric prydz is artist 2?
CREATE TABLE table_23649244_1 (mix_artist VARCHAR, artist_1 VARCHAR, artist_2 VARCHAR)
SELECT area_km_2 FROM table_24066938_1 WHERE member_state = "Austria"
What is the area of Austria's territory in square kilometers?
CREATE TABLE table_24066938_1 (area_km_2 VARCHAR, member_state VARCHAR)
SELECT * FROM table_train_126 WHERE head_injury = 1 OR (neurological_disease = 1 OR stroke = 1 OR (seizure_disorder = 1 AND childhood_febrile_seizure = 0) OR headache = 1)
history of head trauma with prolonged loss of consciousness ( > 10 minutes ) or any neurological condition including stroke or seizure ( excluding childhood febrile seizure ) or history of migraine headache.
CREATE TABLE table_train_126 ( "id" int, "childhood_febrile_seizure" bool, "neurodegenerative_disease" bool, "cns_disease" bool, "head_injury" bool, "stroke" bool, "renal_disease" bool, "cerebrovascular_disease" bool, "hepatic_disease" bool, "headache" bool, "cardiovascular_disease" bool, "estimated_glomerular_filtration_rate_egfr" int, "hematologic_disease" bool, "endocrine_disease" bool, "kidney_disease" bool, "metabolic" bool, "neurological_disease" bool, "seizure_disorder" bool, "parkinson_disease" bool, "lewy_body_dementia" bool, "respiratory_rate" int, "NOUSE" float )
SELECT level FROM table_23649244_1 WHERE artist_1 = "Marvin Gaye" AND artist_2 = "David Bowie"
Which level has marvin gaye as artist 1 and david bowie as artist 2?
CREATE TABLE table_23649244_1 (level VARCHAR, artist_1 VARCHAR, artist_2 VARCHAR)
SELECT pop_density_people_km_2 FROM table_24066938_1 WHERE member_state = "Sweden"
How many inhabitants does Sweden have per square kilometer?
CREATE TABLE table_24066938_1 (pop_density_people_km_2 VARCHAR, member_state VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.long_title = "Umbilical vein catheterization"
Find the number of patients whose admission type is elective that had a procedure named umbilical vein catheterization.
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 text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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 )
SELECT level FROM table_23649244_1 WHERE artist_1 = "Grandmaster Flash"
Which level has grandmaster flash as artist 1?
CREATE TABLE table_23649244_1 (level VARCHAR, artist_1 VARCHAR)
SELECT COUNT(pop_density_people_km_2) FROM table_24066938_1 WHERE member_state = "Czech Republic"
How many measurements of the Czech Republic's population density are recorded in this table?
CREATE TABLE table_24066938_1 (pop_density_people_km_2 VARCHAR, member_state VARCHAR)
SELECT COUNT("team") FROM table_204_905 WHERE "wins" >= 85
how many teams won at least 85 games ?
CREATE TABLE table_204_905 ( id number, "team" text, "wins" number, "losses" number, "win %" number, "gb" number )
SELECT level FROM table_23649244_1 WHERE artist_1 = "Wale"
Which level has wale as artist 1?
CREATE TABLE table_23649244_1 (level VARCHAR, artist_1 VARCHAR)
SELECT COUNT(no_in_series) FROM table_2409041_4 WHERE no_in_season = 11
Name the number of number in the season for 11
CREATE TABLE table_2409041_4 (no_in_series VARCHAR, no_in_season VARCHAR)
SELECT "School" FROM table_77982 WHERE "Hometown" = 'riverside, ca'
Which school is in Riverside, CA?
CREATE TABLE table_77982 ( "Player" text, "Height" text, "School" text, "Hometown" text, "College" text, "NBA Draft" text )
SELECT mix_artist FROM table_23649244_1 WHERE artist_1 = "Shlomo"
Which mix artists have shlomo as artist 1?
CREATE TABLE table_23649244_1 (mix_artist VARCHAR, artist_1 VARCHAR)
SELECT COUNT(original_air_date) FROM table_2409041_4 WHERE no_in_season = 14
Name the number of airdates for 14
CREATE TABLE table_2409041_4 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT area FROM table_name_9 WHERE years = "1–8" AND name = "broomfield school"
Which area has Years of 1 8, and a Name of broomfield school?
CREATE TABLE table_name_9 ( area VARCHAR, years VARCHAR, name VARCHAR )
SELECT COUNT(season) FROM table_23647668_2 WHERE champion = "Melgar"
How many season had Melgar as a champion?
CREATE TABLE table_23647668_2 (season VARCHAR, champion VARCHAR)
SELECT title FROM table_2409041_4 WHERE production_code = 446913
Name the title for 446913
CREATE TABLE table_2409041_4 (title VARCHAR, production_code VARCHAR)
SELECT Aircraft, COUNT(*) FROM aircraft AS T1 JOIN match AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY Aircraft DESC
List the names of aircrafts and the number of times it won matches Plot them as bar chart, and order by the X-axis in descending.
CREATE TABLE aircraft ( Aircraft_ID int(11), Aircraft varchar(50), Description varchar(50), Max_Gross_Weight varchar(50), Total_disk_area varchar(50), Max_disk_Loading varchar(50) ) CREATE TABLE pilot ( Pilot_Id int(11), Name varchar(50), Age int(11) ) CREATE TABLE airport_aircraft ( ID int, Airport_ID int, Aircraft_ID int ) CREATE TABLE airport ( Airport_ID int, Airport_Name text, Total_Passengers real, %_Change_2007 text, International_Passengers real, Domestic_Passengers real, Transit_Passengers real, Aircraft_Movements real, Freight_Metric_Tonnes real ) CREATE TABLE match ( Round real, Location text, Country text, Date text, Fastest_Qualifying text, Winning_Pilot text, Winning_Aircraft text )
SELECT third_place FROM table_23647668_2 WHERE season = 1980
Who was in third place in the 1980 season?
CREATE TABLE table_23647668_2 (third_place VARCHAR, season VARCHAR)
SELECT kentucky_oaks FROM table_24089503_1 WHERE belmont_stakes = "64,949"
What was the Kentucky Oaks attendance the year the Belmont Stakes had 64,949 attendance?
CREATE TABLE table_24089503_1 (kentucky_oaks VARCHAR, belmont_stakes VARCHAR)
SELECT game_site FROM table_name_79 WHERE week = 15
What was the game site week 15?
CREATE TABLE table_name_79 ( game_site VARCHAR, week VARCHAR )
SELECT open_cup FROM table_2365150_1 WHERE league = "USL PDL" AND playoffs = "Did not qualify"
Name the open cup for usl pdl for did not qualify
CREATE TABLE table_2365150_1 (open_cup VARCHAR, league VARCHAR, playoffs VARCHAR)
SELECT travers_stakes FROM table_24089503_1 WHERE year = 1977
What was the attendance at the Travers Stakes in 1977?
CREATE TABLE table_24089503_1 (travers_stakes VARCHAR, year VARCHAR)
SELECT team FROM table_name_40 WHERE score = "89-123"
Which Team has a Score of 89-123?
CREATE TABLE table_name_40 ( team VARCHAR, score VARCHAR )
SELECT COUNT(open_cup) FROM table_2365150_1 WHERE year = 1996
Name the total number of open cup for 1996
CREATE TABLE table_2365150_1 (open_cup VARCHAR, year VARCHAR)
SELECT breeders_cup_friday FROM table_24089503_1 WHERE breeders_cup_saturday = "52,987"
What was the Breeder's Cup Friday attendance for the year the Breeder's Cup Saturday had 52,987?
CREATE TABLE table_24089503_1 (breeders_cup_friday VARCHAR, breeders_cup_saturday VARCHAR)
SELECT COUNT(DISTINCT patient.patienthealthsystemstayid) FROM patient WHERE patient.uniquepid = '015-66570' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')
count how many hospital visits patient 015-66570 has in this year.
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) 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 microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) 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, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time )
SELECT open_cup FROM table_2365150_1 WHERE playoffs = "division Finals"
Name the open cup for division finals
CREATE TABLE table_2365150_1 (open_cup VARCHAR, playoffs VARCHAR)
SELECT edition FROM table_24099476_8 WHERE opponent = "David Nalbandian"
In what edition is Ungur's opponent David Nalbandian?
CREATE TABLE table_24099476_8 (edition VARCHAR, opponent VARCHAR)
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.start_time < '12:00:00' AND course_offering.start_time >= '08:00:00' AND course.course_id = course_offering.course_id AND course.department = 'RELIGION' AND course.number = 347 AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016
Are there classes in the morning that are RELIGION 347 ?
CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) CREATE TABLE area ( course_id int, area varchar ) 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 varchar )
SELECT position FROM table_23670057_1 WHERE height__m_ = "2.16"
Name the position for 2.16
CREATE TABLE table_23670057_1 (position VARCHAR, height__m_ VARCHAR)
SELECT date FROM table_24099476_8 WHERE win_lose = "Lose" AND round = "Play-off"
When was the win/lose lose and the round a play-off?
CREATE TABLE table_24099476_8 (date VARCHAR, win_lose VARCHAR, round VARCHAR)
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(MANAGER_ID)
For those employees who was hired before 2002-06-21, show me about the distribution of hire_date and the average of manager_id bin hire_date by time in a bar chart, could you list from low to high by the the average of manager id please?
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) 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(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,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 departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) 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 jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) )
SELECT no FROM table_23670057_1 WHERE height__m_ = "1.96"
Name the number for 1.96 height
CREATE TABLE table_23670057_1 (no VARCHAR, height__m_ VARCHAR)
SELECT round FROM table_24099476_8 WHERE opponent = "Sergiy Stakhovsky"
In what round did he play against Sergiy Stakhovsky?
CREATE TABLE table_24099476_8 (round VARCHAR, opponent VARCHAR)
SELECT "Rider" FROM table_48797 WHERE "Laps" = '22' AND "Time/Retired" = '+19.435'
Who is the rider with 22 laps and a +19.435 time/retired?
CREATE TABLE table_48797 ( "Rider" text, "Manufacturer" text, "Laps" text, "Time/Retired" text, "Grid" text )
SELECT height__m_ FROM table_23670057_1 WHERE no = 7
Name the height for number 7
CREATE TABLE table_23670057_1 (height__m_ VARCHAR, no VARCHAR)
SELECT municipality FROM table_24115349_6 WHERE coakley_votes = 754
What municipality had 754 votes for coakley?
CREATE TABLE table_24115349_6 (municipality VARCHAR, coakley_votes VARCHAR)
SELECT "Opponent" FROM table_12534 WHERE "Score" = '92–93'
Which Opponent has a Score of 92 93?
CREATE TABLE table_12534 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text, "Streak" text )
SELECT player FROM table_23670057_1 WHERE no = 5
name the player for number 5
CREATE TABLE table_23670057_1 (player VARCHAR, no VARCHAR)
SELECT MAX(brown_votes) FROM table_24115349_6 WHERE coakley__percentage = "84.1%"
How many votes for brown in the place that had 84.1% for coakley?
CREATE TABLE table_24115349_6 (brown_votes INTEGER, coakley__percentage VARCHAR)
SELECT "Date" FROM table_54830 WHERE "Away team" = 'st kilda'
When st kilda played as the away team, what date was that?
CREATE TABLE table_54830 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT height__f_ FROM table_23670057_4 WHERE position = "Center"
For all players playing at the center, list the height in feet.
CREATE TABLE table_23670057_4 (height__f_ VARCHAR, position VARCHAR)
SELECT turnout__percentage FROM table_24115349_6 WHERE brown__percentage = "44.6%"
What was the turnout percentage in the place that had 44.6% vote for brown?
CREATE TABLE table_24115349_6 (turnout__percentage VARCHAR, brown__percentage VARCHAR)
SELECT "Episode Air Date" FROM table_29666 WHERE "Audition Venue" = 'Nego Quirido Sambadrome'
List all episode air dates whose audition venues were Nego Quirido Sambadrome?
CREATE TABLE table_29666 ( "Episode Air Date" text, "Audition City" text, "Audition Date" text, "Audition Venue" text, "Guest Fourth Judge" text )
SELECT no FROM table_23670057_4 WHERE position = "Center"
Display the serial numbers for the players who play at the center.
CREATE TABLE table_23670057_4 (no VARCHAR, position VARCHAR)
SELECT MAX(finish) FROM table_24119784_1 WHERE top_10 = 8
Name the finish top 10 being 8
CREATE TABLE table_24119784_1 (finish INTEGER, top_10 VARCHAR)
SELECT year FROM table_name_44 WHERE venue = "nikos goumas stadium" AND score = "2–2 4–4 a.e.t. 6–5 pso"
when is the venue nikos goumas stadium and the score is 2 2 4 4 a.e.t. 6 5 pso?
CREATE TABLE table_name_44 ( year VARCHAR, venue VARCHAR, score VARCHAR )
SELECT MAX(year_born) FROM table_23670057_4 WHERE player = "Ido Kozikaro"
What is the date of birth for basket baller called ido kozikaro
CREATE TABLE table_23670057_4 (year_born INTEGER, player VARCHAR)
SELECT finish FROM table_24122653_2 WHERE vote = "3-2"
What is the finish associated with a 3-2 vote?
CREATE TABLE table_24122653_2 (finish VARCHAR, vote VARCHAR)
SELECT 2005 FROM table_name_49 WHERE 2003 = "a" AND 2007 = "2r" AND 2012 = "3r"
what is 2005 when 2003 is A, 2007 is 2r and 2012 is 3r?
CREATE TABLE table_name_49 ( Id VARCHAR )
SELECT height__m_ FROM table_23670057_4 WHERE player = "Lior Eliyahu"
How tall is the basket ball player lior eliyahu in meters?
CREATE TABLE table_23670057_4 (height__m_ VARCHAR, player VARCHAR)
SELECT reward FROM table_24122653_2 WHERE eliminated = "Peterson"
What is the reward for the elimination of Peterson?
CREATE TABLE table_24122653_2 (reward VARCHAR, eliminated VARCHAR)
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 63676) AND microbiologyevents.spec_type_desc = 'swab' AND STRFTIME('%y', microbiologyevents.charttime) >= '2105'
has there been any swab microbiology test since 2105 for patient 63676?
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) 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, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text )
SELECT average FROM table_23662356_3 WHERE number_of_dances = 4
What was the average score for the couple that had 4 dances?
CREATE TABLE table_23662356_3 (average VARCHAR, number_of_dances VARCHAR)
SELECT COUNT(finish) FROM table_24122653_2 WHERE eliminated = "Adriana"
What is the number of finishes associated with an elimination of Adriana?
CREATE TABLE table_24122653_2 (finish VARCHAR, eliminated VARCHAR)
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT procedures_icd.icd9_code FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 74392) AND STRFTIME('%y', procedures_icd.charttime) <= '2102' ORDER BY procedures_icd.charttime LIMIT 1)
what is a procedure patient 74392 received for the first time until 2102?
CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) 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_icd_diagnoses ( 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 ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text )
SELECT COUNT(average) FROM table_23662356_3 WHERE number_of_dances = 12
How many averages were listed for the couple who had 12 dances?
CREATE TABLE table_23662356_3 (average VARCHAR, number_of_dances VARCHAR)
SELECT COUNT(episode) FROM table_24122653_2 WHERE vote = "3-1"
What was the total number of episodes that had a 3-1 vote?
CREATE TABLE table_24122653_2 (episode VARCHAR, vote VARCHAR)
SELECT place FROM table_name_85 WHERE to_par = "e"
What is the place number for the player with a To Par score of 'E'?
CREATE TABLE table_name_85 ( place VARCHAR, to_par VARCHAR )
SELECT MAX(total_points_earned) FROM table_23662356_3 WHERE average = "29.0"
How many total points were earned from the couple that averaged 29.0 points?
CREATE TABLE table_23662356_3 (total_points_earned INTEGER, average VARCHAR)
SELECT conference AS Tournament FROM table_24160890_3 WHERE regular_season_winner = "Troy"
When troy is the regular season winner what is the conference tournament?
CREATE TABLE table_24160890_3 (conference VARCHAR, regular_season_winner VARCHAR)
SELECT "Long" FROM table_53198 WHERE "Car." = '26'
What is the long for the player with 26 carries?
CREATE TABLE table_53198 ( "Player" text, "Car." real, "Yards" text, "Avg." text, "TD's" real, "Long" text )
SELECT album_s_ FROM table_23667534_1 WHERE song_s__title = "It's Going So Badly"
What album was the song It's going so badly on?
CREATE TABLE table_23667534_1 (album_s_ VARCHAR, song_s__title VARCHAR)
SELECT conference AS Tournament FROM table_24160890_3 WHERE tournament_venue__city_ = "Madison Square Garden ( New York City, New York )"
When madison square garden ( new york city, new york ) is the tournament venue (city) what is the conference tournament?
CREATE TABLE table_24160890_3 (conference VARCHAR, tournament_venue__city_ VARCHAR)
SELECT SUM(owgr_pts) FROM table_name_37 WHERE dates = "may 10-13"
Which OWGR pts has Dates of may 10-13?
CREATE TABLE table_name_37 ( owgr_pts INTEGER, dates VARCHAR )
SELECT album_s_ FROM table_23667534_1 WHERE song_s__title = "My Chariot"
What album was the song My Chariot on?
CREATE TABLE table_23667534_1 (album_s_ VARCHAR, song_s__title VARCHAR)
SELECT COUNT(regular_season_winner) FROM table_24160890_3 WHERE tournament_winner = "Cincinnati"
When Cincinnati is the tournament winner how many regular season winners are there?
CREATE TABLE table_24160890_3 (regular_season_winner VARCHAR, tournament_winner VARCHAR)
SELECT opponent FROM table_name_79 WHERE time = "1:50"
Which opponent has a time of 1:50?
CREATE TABLE table_name_79 ( opponent VARCHAR, time VARCHAR )
SELECT singer_s_ FROM table_23667534_1 WHERE song_s__title = "He's Bigfoot"
Who sand He's Bigfoot?
CREATE TABLE table_23667534_1 (singer_s_ VARCHAR, song_s__title VARCHAR)
SELECT COUNT(conference) FROM table_24160890_3 WHERE tournament_winner = "Western Michigan"
When western michigan is the tournament winner how many conferences are there?
CREATE TABLE table_24160890_3 (conference VARCHAR, tournament_winner VARCHAR)
SELECT SUM("Average") FROM table_58555 WHERE "Swimsuit" < '9.62' AND "Country" = 'colorado'
What is the total average for swimsuits smaller than 9.62 in Colorado?
CREATE TABLE table_58555 ( "Country" text, "Interview" real, "Swimsuit" real, "Evening Gown" real, "Average" real )
SELECT album_s_ FROM table_23667534_1 WHERE episode_title = "Toy to the World" AND song_s__title = "Shimmy Jimmy"
What album was the song Shimmy Jimmy from the episode titled Toy to the world on?
CREATE TABLE table_23667534_1 (album_s_ VARCHAR, episode_title VARCHAR, song_s__title VARCHAR)
SELECT date_successor_seated FROM table_2417345_4 WHERE successor = "George E. Harris (R)"
When was successor George E. Harris (R) seated?
CREATE TABLE table_2417345_4 (date_successor_seated VARCHAR, successor VARCHAR)
SELECT Users.DisplayName, Users.Location, SUM(Posts.Score) AS TotalScore, 'https://stackoverflow.com/users/' + CAST(Users.Id AS TEXT) AS Profile FROM Posts INNER JOIN Users ON Posts.OwnerUserId = Users.Id INNER JOIN PostTags ON Posts.Id = PostTags.PostId INNER JOIN Tags ON PostTags.TagId = Tags.Id WHERE TagName = '##tag##' AND (LOWER(Users.Location) LIKE '%london%' OR LOWER(Users.Location) LIKE '%england%' OR LOWER(Users.Location) LIKE '%uk%' OR LOWER(Users.Location) LIKE '%united kingdom%') AND NOT LOWER(Users.Location) LIKE '%ukraine%' GROUP BY Users.Id, Users.DisplayName, Users.Location HAVING SUM(Posts.Score) > 0 ORDER BY TotalScore DESC, Location
Top Users in Tag (in UK).
CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text )
SELECT player FROM table_23670057_5 WHERE height__m_ = "2.07"
which players have a height of 2.07m?
CREATE TABLE table_23670057_5 (player VARCHAR, height__m_ VARCHAR)
SELECT reason_for_change FROM table_2417345_4 WHERE successor = "William Milnes, Jr. (C)"
What was the reason for change when the successor was William Milnes, Jr. (C)?
CREATE TABLE table_2417345_4 (reason_for_change VARCHAR, successor VARCHAR)
SELECT mccain_percentage FROM table_20688030_1 WHERE obama_percentage = "36.47%"
What are McCain's Percent when Obama has 36.47%?
CREATE TABLE table_20688030_1 ( mccain_percentage VARCHAR, obama_percentage VARCHAR )
SELECT current_club FROM table_23670057_5 WHERE height__m_ = "2.14"
Which clubs have players with height 2.14m?
CREATE TABLE table_23670057_5 (current_club VARCHAR, height__m_ VARCHAR)
SELECT date_successor_seated FROM table_2417345_4 WHERE district = "Ohio 10th"
When were the successor/s seated for Ohio 10th?
CREATE TABLE table_2417345_4 (date_successor_seated VARCHAR, district VARCHAR)
SELECT "Deaths" FROM table_66704 WHERE "Natural Growth" < '3.4' AND "Total Fertility Rate" = '1.63'
What was the amount of deaths that had a natural growth smaller than 3.4, and a total fertility rate of 1.63?
CREATE TABLE table_66704 ( "Year" text, "Births (000s)" real, "Deaths" real, "Natural Growth" real, "Total Fertility Rate" text )
SELECT player FROM table_23670057_5 WHERE year_born = 1983 AND position = "Forward"
Which players were born in 1983 and play as forward position?
CREATE TABLE table_23670057_5 (player VARCHAR, year_born VARCHAR, position VARCHAR)
SELECT reason_for_change FROM table_2417345_4 WHERE vacator = "George W. Greene (D)"
Name the reason for change when George W. Greene (D) was the vacator.
CREATE TABLE table_2417345_4 (reason_for_change VARCHAR, vacator VARCHAR)
SELECT "Winning score" FROM table_62004 WHERE "Runner(s)-up" = 'in-kyung kim'
What winning score has in-kyung kim as the runner(s)-up?
CREATE TABLE table_62004 ( "Date" text, "Tournament" text, "Winning score" text, "To par" text, "Margin of victory" text, "Runner(s)-up" text, "Winner's share ( $ )" real )
SELECT current_club FROM table_23670057_7 WHERE player = "Artūrs Štālbergs"
What is every current club for the player Artūrs Štālbergs?
CREATE TABLE table_23670057_7 (current_club VARCHAR, player VARCHAR)
SELECT date_successor_seated FROM table_2417345_4 WHERE successor = "David Atwood (R)"
When was successor David Atwood (R) seated?
CREATE TABLE table_2417345_4 (date_successor_seated VARCHAR, successor VARCHAR)