answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT "monitoring department(s)" FROM table_204_988 GROUP BY "monitoring department(s)" ORDER BY COUNT(*) DESC LIMIT 1
which monitoring department is listed the most ?
CREATE TABLE table_204_988 ( id number, "responsible minister(s)" text, "crown entities" text, "monitoring department(s)" text, "category / type" text, "empowering legislation" text )
SELECT production_code FROM table_27776266_1 WHERE no_in_series = 55
What was the production code of the episode no. 55 in the series?
CREATE TABLE table_27776266_1 (production_code VARCHAR, no_in_series VARCHAR)
SELECT ullrich FROM table_name_92 WHERE riggs = "e" AND buechel_ & _manhart_spelling__pronunciation_ = "e"
Riggs of e, and a Buechel & Manhart spelling (pronunciation) of e had what ullrich?
CREATE TABLE table_name_92 (ullrich VARCHAR, riggs VARCHAR, buechel_ VARCHAR, _manhart_spelling__pronunciation_ VARCHAR)
SELECT "U.S. viewers (million)" FROM table_16469 WHERE "Title" = 'Line of Departure'
How many millions of views in the country watched 'Line of Departure'?
CREATE TABLE table_16469 ( "No. in season" real, "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (million)" text )
SELECT production_code FROM table_27776266_1 WHERE us_viewers__million_ = "14.79"
What was the production code of the episode with an audience of 14.79 million in the US?
CREATE TABLE table_27776266_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT university_of_minnesota FROM table_name_63 WHERE rood_ & _taylor = "o" AND buechel_ & _manhart_spelling__pronunciation_ = "o"
Rood & Taylor of o, and a Buechel & Manhart spelling (pronunciation) of o had what university of Minnesota?
CREATE TABLE table_name_63 (university_of_minnesota VARCHAR, rood_ VARCHAR, _taylor VARCHAR, buechel_ VARCHAR, _manhart_spelling__pronunciation_ VARCHAR)
SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 800
A 800 lab , does one exist ?
CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) 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 semester ( semester_id int, semester varchar, year int ) 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 requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location 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 jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip 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 offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) 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 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 directed_by FROM table_27776266_1 WHERE us_viewers__million_ = "14.11"
Who directed the episode with an audience of 14.11 million?
CREATE TABLE table_27776266_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT white_hat FROM table_name_98 WHERE dakota_mission = "t" AND deloria_ & _boas = "tʽ" AND ullrich = "tȟ"
Dakota Mission of t, and a Deloria & Boas of tʽ, and a Ullrich of tȟ had what white hat?
CREATE TABLE table_name_98 (white_hat VARCHAR, ullrich VARCHAR, dakota_mission VARCHAR, deloria_ VARCHAR, _boas VARCHAR)
SELECT november_3 FROM table_25355501_2 WHERE august_21_22 = "August 22, 1998"
What is shown for november 3 when august 21-22 is august 22, 1998?
CREATE TABLE table_25355501_2 ( november_3 VARCHAR, august_21_22 VARCHAR )
SELECT title FROM table_27776266_1 WHERE production_code = "3X6404"
What was the title of the episode with a production code of 3x6404?
CREATE TABLE table_27776266_1 (title VARCHAR, production_code VARCHAR)
SELECT university_of_minnesota FROM table_name_89 WHERE deloria_ & _boas = "n"
Deloria & Boas of n included what university of Minnesota?
CREATE TABLE table_name_89 (university_of_minnesota VARCHAR, deloria_ VARCHAR, _boas VARCHAR)
SELECT COUNT("Event Date") FROM table_30209 WHERE "Event Details" = 'Women''s Sabre'
How many event dates occurred when event details were women's sabre?
CREATE TABLE table_30209 ( "Event Date" text, "Event Day" text, "Approx. Duration" text, "Starting Time" text, "Event Details" text )
SELECT college_junior_club_team FROM table_2781227_10 WHERE pick = 255
Which school players have a number of 255
CREATE TABLE table_2781227_10 (college_junior_club_team VARCHAR, pick VARCHAR)
SELECT buechel_ & _manhart_spelling__pronunciation_ FROM table_name_27 WHERE deloria_ & _boas = "ų" AND dakota_mission = "un"
Deloria & Boas of ų, and a Dakota Mission of un had what Buechel & Manhart spelling (pronunciation)?
CREATE TABLE table_name_27 (buechel_ VARCHAR, _manhart_spelling__pronunciation_ VARCHAR, dakota_mission VARCHAR, deloria_ VARCHAR, _boas VARCHAR)
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.short_title = "Chronic kidney dis NOS" AND prescriptions.route = "SC"
Give me the number of patients diagnosed with chronic kidney disease nos and have drug route as sc.
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 ) 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 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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT college_junior_club_team FROM table_2781227_10 WHERE player = "Wes Swinson"
what educational institute does wes swinson attend
CREATE TABLE table_2781227_10 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT deloria_ & _boas FROM table_name_66 WHERE university_of_minnesota = "ṭ"
University of Minnesota of ṭ had what Deloria & Boas?
CREATE TABLE table_name_66 (deloria_ VARCHAR, _boas VARCHAR, university_of_minnesota VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "URGENT" AND lab.fluid = "Joint Fluid"
what is the number of urgent hospital admission patients for whom joint fluid lab test was ordered?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE 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, 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 prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT position FROM table_2781227_10 WHERE player = "Rick Schuhwerk"
which part on the team does rick schuhwerk play
CREATE TABLE table_2781227_10 (position VARCHAR, player VARCHAR)
SELECT SUM(november) FROM table_name_89 WHERE game < 16 AND points > 22
Which November has a Game smaller than 16, and Points larger than 22?
CREATE TABLE table_name_89 (november INTEGER, game VARCHAR, points VARCHAR)
SELECT AVG(gross_in_dollar) FROM film
Return the average gross sales in dollars across all films.
CREATE TABLE film_market_estimation ( estimation_id number, low_estimate number, high_estimate number, film_id number, type text, market_id number, year number ) CREATE TABLE market ( market_id number, country text, number_cities number ) CREATE TABLE film ( film_id number, title text, studio text, director text, gross_in_dollar number )
SELECT player FROM table_2781227_4 WHERE college_junior_club_team = "Brandon Wheat Kings (WHL)"
For college/junior/club team is brandon wheat kings (whl) mention all the player name
CREATE TABLE table_2781227_4 (player VARCHAR, college_junior_club_team VARCHAR)
SELECT record FROM table_name_36 WHERE game > 15 AND points < 31 AND november = 7
Which Record has a Game larger than 15, and Points smaller than 31, and a November of 7?
CREATE TABLE table_name_36 (record VARCHAR, november VARCHAR, game VARCHAR, points VARCHAR)
SELECT "Winners" FROM table_15300 WHERE "Not winning editions" = '1992, 2003'
Who is Winners that has editions of 1992, 2003 as Not Winning
CREATE TABLE table_15300 ( "Club" text, "Winners" text, "Finalists" text, "Winning editions" text, "Not winning editions" text )
SELECT MIN(pick) FROM table_2781227_4 WHERE player = "Jamal Mayers"
For player is jamal mayers mention the minimum pick
CREATE TABLE table_2781227_4 (pick INTEGER, player VARCHAR)
SELECT MAX(bronze) FROM table_name_13 WHERE nation = "united states" AND silver > 1
What is the highest number of bronze for the United States with more than 1 silver?
CREATE TABLE table_name_13 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT "Score" FROM table_6481 WHERE "Visitor" = 'new york'
Which score has a visitor of New York?
CREATE TABLE table_6481 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text )
SELECT COUNT(position) FROM table_2781227_4 WHERE player = "John Jakopin"
For player is john jakopin mention the total number of position
CREATE TABLE table_2781227_4 (position VARCHAR, player VARCHAR)
SELECT SUM(silver) FROM table_name_82 WHERE bronze > 2
What is the sum of all silver medals with more than 2 bronze?
CREATE TABLE table_name_82 (silver INTEGER, bronze INTEGER)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "B-complex defic NEC" AND lab.flag = "abnormal"
give me the number of patients whose diagnoses short title is b-complex defic nec and lab test abnormal status is abnormal?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, 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 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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT college_junior_club_team FROM table_2781227_4 WHERE nhl_team = "San Jose Sharks"
For nhl team is san jose sharks mention all the college/junior/club team
CREATE TABLE table_2781227_4 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT MIN(silver) FROM table_name_68 WHERE rank = 4 AND total > 1
What is the lowest number of silver medals with a rank of 4 and total medals greater than 1?
CREATE TABLE table_name_68 (silver INTEGER, rank VARCHAR, total VARCHAR)
SELECT unit FROM table_name_75 WHERE authors = "varricchio"
What is varricchio's unit?
CREATE TABLE table_name_75 ( unit VARCHAR, authors VARCHAR )
SELECT college_junior_club_team FROM table_2781227_4 WHERE player = "Adam Wiesel"
For player is adam wiesel mention all the college/junior/club team
CREATE TABLE table_2781227_4 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT AVG(bronze) FROM table_name_85 WHERE silver = 1 AND gold = 5 AND total < 6
What is the average number of bronze medals with 1 silver, 5 gold, and over 6 total medals?
CREATE TABLE table_name_85 (bronze INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT intakeoutput.patientunitstayid FROM intakeoutput WHERE intakeoutput.celllabel = 'iv flush' AND intakeoutput.cellpath LIKE '%input%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year'))
count the number of patients who in this year had an intake of iv flush.
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 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 intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time )
SELECT COUNT(pick) FROM table_2781227_2 WHERE player = "Vlastimil Kroupa"
How many values are displayed under pick for Vlastimil Kroupa?
CREATE TABLE table_2781227_2 (pick VARCHAR, player VARCHAR)
SELECT MAX(rank) FROM table_name_35 WHERE bronze < 2 AND gold > 1 AND silver < 1
What is the highest rank with less than 2 bronze, more than 1 gold, and less than 1 silver?
CREATE TABLE table_name_35 (rank INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', patient.hospitaladmittime) FROM patient WHERE patient.uniquepid = '017-87754' AND NOT patient.hospitaladmittime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1
calculate the duration of stay of patient 017-87754 of the first hospital stay.
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 cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) 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 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 diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime 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 )
SELECT COUNT(position) FROM table_2781227_2 WHERE player = "Janne Niinimaa"
How many positions does Janne Niinimaa play?
CREATE TABLE table_2781227_2 (position VARCHAR, player VARCHAR)
SELECT remixed_by FROM table_name_50 WHERE album = "dance remixes"
Who remixed an album of dance remixes?
CREATE TABLE table_name_50 (remixed_by VARCHAR, album VARCHAR)
SELECT date FROM table_name_87 WHERE tournament = "alfred dunhill championship 1"
What is Date, when Tournament is Alfred Dunhill Championship 1?
CREATE TABLE table_name_87 ( date VARCHAR, tournament VARCHAR )
SELECT COUNT(college_junior_club_team) FROM table_2781227_2 WHERE player = "Lee Sorochan"
How many teams does Lee Sorochan play for?
CREATE TABLE table_2781227_2 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT remixed_by FROM table_name_22 WHERE year = 1985 AND version = "music video"
Who remixed a music video in 1985?
CREATE TABLE table_name_22 (remixed_by VARCHAR, year VARCHAR, version VARCHAR)
SELECT year FROM table_14903491_1 WHERE womens_doubles = "Victoria Hristova Neli Nedialkova"
Name the year for victoria hristova neli nedialkova
CREATE TABLE table_14903491_1 ( year VARCHAR, womens_doubles VARCHAR )
SELECT player FROM table_2781227_2 WHERE nhl_team = "Chicago Blackhawks"
What player belongs to the Chicago Blackhawks?
CREATE TABLE table_2781227_2 (player VARCHAR, nhl_team VARCHAR)
SELECT SUM(year) FROM table_name_46 WHERE version = "mother's live remix"
What year was Mother's Live remix created?
CREATE TABLE table_name_46 (year INTEGER, version VARCHAR)
SELECT name FROM people WHERE NOT people_id IN (SELECT people_id FROM perpetrator)
List the names of people that are not perpetrators.
CREATE TABLE people ( people_id number, name text, height number, weight number, home town text ) CREATE TABLE perpetrator ( perpetrator_id number, people_id number, date text, year number, location text, country text, killed number, injured number )
SELECT COUNT(nhl_team) FROM table_2781227_2 WHERE player = "Maxim Bets"
How many teams does Maxim Bets play for?
CREATE TABLE table_2781227_2 (nhl_team VARCHAR, player VARCHAR)
SELECT position FROM table_name_7 WHERE pick = "10th overall"
Which position ranked 10th overall?
CREATE TABLE table_name_7 (position VARCHAR, pick VARCHAR)
SELECT year FROM table_2597876_2 WHERE avg_start = "27.2"
What is every year with average start of 27.2?
CREATE TABLE table_2597876_2 ( year VARCHAR, avg_start VARCHAR )
SELECT MIN(pick) FROM table_2781227_11 WHERE nhl_team = "Florida Panthers"
What was the minimum pick by the Florida Panthers?
CREATE TABLE table_2781227_11 (pick INTEGER, nhl_team VARCHAR)
SELECT player FROM table_name_17 WHERE year > 2008 AND position = "wide receiver"
Which player played wide receiver after 2008?
CREATE TABLE table_name_17 (player VARCHAR, year VARCHAR, position VARCHAR)
SELECT "U.S. viewers (millions)" FROM table_23502 WHERE "Production code" = '214'
How many millions of people in the US saw the episode with production code 214?
CREATE TABLE table_23502 ( "No. in series" text, "No. in season" text, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (millions)" text )
SELECT nhl_team FROM table_2781227_7 WHERE player = "Ryan Meade"
What NHL team picked Ryan Meade for the draft?
CREATE TABLE table_2781227_7 (nhl_team VARCHAR, player VARCHAR)
SELECT player FROM table_name_41 WHERE date = "13 july 2007"
Which Player has a Date of 13 july 2007?
CREATE TABLE table_name_41 (player VARCHAR, date VARCHAR)
SELECT "Record" FROM table_51273 WHERE "Visitor" = 'chicago'
What was the record when chicago was the visiting team?
CREATE TABLE table_51273 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text )
SELECT college_junior_club_team FROM table_2781227_7 WHERE player = "Ryan Golden"
What college team did Ryan Golden come from?
CREATE TABLE table_2781227_7 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT player FROM table_name_44 WHERE date = "31 jan. 2008" AND transfer_fee = "£3.87m"
Which Player had a Date of 31 jan. 2008, and a Transfer fee of £3.87m?
CREATE TABLE table_name_44 (player VARCHAR, date VARCHAR, transfer_fee VARCHAR)
SELECT COUNT(*), T1.company_id FROM third_party_companies AS T1 JOIN assets AS T2 ON T1.company_id = T2.supplier_company_id GROUP BY T1.company_id
How many assets does each third party company supply? List the count and the company id.
CREATE TABLE engineer_visits ( engineer_visit_id number, contact_staff_id number, engineer_id number, fault_log_entry_id number, fault_status text, visit_start_datetime time, visit_end_datetime time, other_visit_details text ) CREATE TABLE engineer_skills ( engineer_id number, skill_id number ) CREATE TABLE skills_required_to_fix ( part_fault_id number, skill_id number ) CREATE TABLE fault_log ( fault_log_entry_id number, asset_id number, recorded_by_staff_id number, fault_log_entry_datetime time, fault_description text, other_fault_details text ) CREATE TABLE part_faults ( part_fault_id number, part_id number, fault_short_name text, fault_description text, other_fault_details text ) CREATE TABLE parts ( part_id number, part_name text, chargeable_yn text, chargeable_amount text, other_part_details text ) CREATE TABLE skills ( skill_id number, skill_code text, skill_description text ) CREATE TABLE third_party_companies ( company_id number, company_type text, company_name text, company_address text, other_company_details text ) CREATE TABLE maintenance_contracts ( maintenance_contract_id number, maintenance_contract_company_id number, contract_start_date time, contract_end_date time, other_contract_details text ) CREATE TABLE fault_log_parts ( fault_log_entry_id number, part_fault_id number, fault_status text ) CREATE TABLE asset_parts ( asset_id number, part_id number ) CREATE TABLE maintenance_engineers ( engineer_id number, company_id number, first_name text, last_name text, other_details text ) CREATE TABLE assets ( asset_id number, maintenance_contract_id number, supplier_company_id number, asset_details text, asset_make text, asset_model text, asset_acquired_date time, asset_disposed_date time, other_asset_details text ) CREATE TABLE staff ( staff_id number, staff_name text, gender text, other_staff_details text )
SELECT COUNT(nationality) FROM table_2781227_7 WHERE pick = 179
How many different nationalities is pick number 179?
CREATE TABLE table_2781227_7 (nationality VARCHAR, pick VARCHAR)
SELECT date FROM table_name_45 WHERE transfer_fee = "£8.8m"
Which Date had a Transfer fee of £8.8m?
CREATE TABLE table_name_45 (date VARCHAR, transfer_fee VARCHAR)
SELECT AVG("Gold") FROM table_79400 WHERE "Nation" = 'netherlands' AND "Bronze" > '0'
What is the average Gold entry for the Netherlands that also has a Bronze entry that is greater than 0?
CREATE TABLE table_79400 ( "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT college_junior_club_team FROM table_2781227_7 WHERE nhl_team = "Pittsburgh Penguins"
What college team did the pick for Pittsburgh Penguins come from?
CREATE TABLE table_2781227_7 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT from_club FROM table_name_40 WHERE transfer_fee = "£3.87m"
Which From club had a Transfer fee of £3.87m?
CREATE TABLE table_name_40 (from_club VARCHAR, transfer_fee VARCHAR)
SELECT "Name" FROM table_77515 WHERE "Year" = 'freshman' AND "Home Town" = 'los angeles, ca' AND "Height" = '6–4'
What is the Name with a Year with freshman, and a Home Town with los angeles, ca, and a Height of 6 4?
CREATE TABLE table_77515 ( "Name" text, "Position" text, "Height" text, "Weight" real, "Year" text, "Home Town" text, "High School" text )
SELECT nhl_team FROM table_2781227_7 WHERE player = "Tom White"
What NHL team picked Tom White?
CREATE TABLE table_2781227_7 (nhl_team VARCHAR, player VARCHAR)
SELECT player FROM table_name_36 WHERE from_club = "atlético madrid"
Which Player had a From club of atlético madrid?
CREATE TABLE table_name_36 (player VARCHAR, from_club VARCHAR)
SELECT order FROM table_19744915_3 WHERE public_vote = "18.155%"
what is the order when public vote was 18.155%
CREATE TABLE table_19744915_3 ( order VARCHAR, public_vote VARCHAR )
SELECT MAX(weeks_in_top_10) FROM table_27813010_2 WHERE artist = "Peter Kay"
How many weeks in the top 10 was spent by a song performed by Peter Kay?
CREATE TABLE table_27813010_2 (weeks_in_top_10 INTEGER, artist VARCHAR)
SELECT decision FROM table_name_82 WHERE game > 6
What is the decision of the game larger than 6.
CREATE TABLE table_name_82 (decision VARCHAR, game INTEGER)
SELECT "Year Completed" FROM table_77992 WHERE "Line" = 'gardermobanen'
What year was the Line of Gardermobanen completed?
CREATE TABLE table_77992 ( "Name" text, "Location" text, "Length in km (mi)" text, "Year Completed" text, "Line" text )
SELECT MAX(weeks_in_top_10) FROM table_27813010_2
How long has the longest song spent in the top 10?
CREATE TABLE table_27813010_2 (weeks_in_top_10 INTEGER)
SELECT series FROM table_name_41 WHERE date = "may 8"
On May 8 what series is it?
CREATE TABLE table_name_41 (series VARCHAR, date VARCHAR)
SELECT "Year" FROM table_25246 WHERE "Average Speed (mph)" = '92.68'
In what year was the average speed 92.68?
CREATE TABLE table_25246 ( "Year" text, "Date" text, "Driver" text, "Team" text, "Manufacturer" text, "Laps" real, "Miles (km)" text, "Race Time" text, "Average Speed (mph)" text, "Report" text )
SELECT college_junior_club_team FROM table_2781227_9 WHERE player = "Dmitri Gorenko"
What college/junior/club team did dmitri gorenko play for?
CREATE TABLE table_2781227_9 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT korean FROM table_name_51 WHERE chinese = "師子菩提 / shīzǐpútí"
Which KOREAN has a CHINESE of 師子菩提 / shīzǐpútí?
CREATE TABLE table_name_51 (korean VARCHAR, chinese VARCHAR)
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, days, flight WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND days.day_name = 'THURSDAY' AND flight.flight_days = days.days_code) AND flight.departure_time BETWEEN 0 AND 1200
show me the flights that go from ATLANTA to WASHINGTON on THURSDAY mornings
CREATE TABLE airport ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, time_zone_code varchar, minimum_connect_time int ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) 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, time_elapsed int, to_airport varchar ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, class_type text, premium text, economy text, discounted text, night text, season text, basis_days text ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) 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 city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int, length int, weight int, capacity int, pay_load int, cruising_speed int, range_miles int, pressurized varchar ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_trip_cost int, round_trip_required varchar ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int )
SELECT position FROM table_2781227_9 WHERE college_junior_club_team = "Krylja Sovetov (Russia)"
What position does krylja sovetov (russia) play?
CREATE TABLE table_2781227_9 (position VARCHAR, college_junior_club_team VARCHAR)
SELECT japanese FROM table_name_92 WHERE korean = "상나화수 / sanahwasa"
Which JAPANESE has a KOREAN of 상나화수 / sanahwasa?
CREATE TABLE table_name_92 (japanese VARCHAR, korean VARCHAR)
SELECT "Year born" FROM table_70796 WHERE "Position" = 'guard' AND "Current Club" = 'memphis grizzlies'
What year was the Guard who currently plays for the Memphis Grizzlies born?
CREATE TABLE table_70796 ( "Player" text, "Height" real, "Position" text, "Year born" real, "Current Club" text )
SELECT position FROM table_2781227_9 WHERE player = "Barrie Moore"
What position(s) does barrie moore play?
CREATE TABLE table_2781227_9 (position VARCHAR, player VARCHAR)
SELECT sanskrt FROM table_name_76 WHERE chinese = "摩拏羅 / mónáluó"
Which SANSKRT has a CHINESE of 摩拏羅 / mónáluó?
CREATE TABLE table_name_76 (sanskrt VARCHAR, chinese VARCHAR)
SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-80884') AND NOT patient.unitdischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.celllabel = 'enteral two kal hn'
enteral two kal hn had ever been given to patient 006-80884 on the first intensive care unit visit?
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 intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) 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 lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) 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 treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number )
SELECT COUNT(pac_12_sports) FROM table_27816698_2 WHERE institution = "California Polytechnic State University"
How many pac-12 sports are shown for california polytechnic state university?
CREATE TABLE table_27816698_2 (pac_12_sports VARCHAR, institution VARCHAR)
SELECT sanskrt FROM table_name_38 WHERE japanese = "jayana"
Which SANSKRT has a JAPANESE of jayana?
CREATE TABLE table_name_38 (sanskrt VARCHAR, japanese VARCHAR)
SELECT "Result" FROM table_44303 WHERE "Opponent" = 'manchester united' AND "Venue" = 'h'
What was the result when the opponent was manchester united in venue h?
CREATE TABLE table_44303 ( "Date" text, "Round" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real )
SELECT founded FROM table_27816698_2 WHERE location = "Boise, Idaho"
When was the institution in boise, idaho founded?
CREATE TABLE table_27816698_2 (founded VARCHAR, location VARCHAR)
SELECT vietnamese FROM table_name_35 WHERE chinese = "婆須密 / póxūmì"
Which VIETNAMESE has a CHINESE of 婆須密 / póxūmì?
CREATE TABLE table_name_35 (vietnamese VARCHAR, chinese 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 = '002-56853')) AND NOT vitalperiodic.systemicsystolic IS NULL AND STRFTIME('%y-%m-%d', vitalperiodic.observationtime) >= '2105-07-25' ORDER BY vitalperiodic.observationtime DESC LIMIT 1
when was last the systemicsystolic of patient 002-56853 measured since 07/25/2105?
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) 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 ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) 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 medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) 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 )
SELECT current_conference FROM table_27816698_2 WHERE institution = "Boise State University"
Which conference did boise state university play at?
CREATE TABLE table_27816698_2 (current_conference VARCHAR, institution VARCHAR)
SELECT vietnamese FROM table_name_25 WHERE chinese = "不如密多 / bùrúmìduō"
Which VIETNAMESE has a CHINESE of 不如密多 / bùrúmìduō?
CREATE TABLE table_name_25 (vietnamese VARCHAR, chinese VARCHAR)
SELECT class FROM table_name_40 WHERE sport = "volleyball" AND year = 2000
What class is volleyball in 2000?
CREATE TABLE table_name_40 ( class VARCHAR, sport VARCHAR, year VARCHAR )
SELECT MAX(founded) FROM table_27816698_2 WHERE nickname = "Titans"
When was the Titans founded?
CREATE TABLE table_27816698_2 (founded INTEGER, nickname VARCHAR)
SELECT AVG(pick__number) FROM table_name_77 WHERE college = "iowa" AND overall < 200
What is the mean pick number for Iowa College when the overall is less than 200?
CREATE TABLE table_name_77 (pick__number INTEGER, college VARCHAR, overall VARCHAR)
SELECT year, COUNT(year) FROM results AS T1 JOIN races AS T2 ON T1.raceId = T2.raceId JOIN drivers AS T3 ON T1.driverId = T3.driverId WHERE T3.forename = "Lewis" GROUP BY year ORDER BY year
How many races that had any driver whose forename is Lewis? Show me a line chart, sort in ascending by the x-axis.
CREATE TABLE constructorResults ( constructorResultsId INTEGER, raceId INTEGER, constructorId INTEGER, points REAL, status TEXT ) CREATE TABLE status ( statusId INTEGER, status TEXT ) CREATE TABLE seasons ( year INTEGER, url TEXT ) CREATE TABLE constructors ( constructorId INTEGER, constructorRef TEXT, name TEXT, nationality TEXT, url TEXT ) CREATE TABLE circuits ( circuitId INTEGER, circuitRef TEXT, name TEXT, location TEXT, country TEXT, lat REAL, lng REAL, alt TEXT, url TEXT ) CREATE TABLE pitStops ( raceId INTEGER, driverId INTEGER, stop INTEGER, lap INTEGER, time TEXT, duration TEXT, milliseconds INTEGER ) CREATE TABLE drivers ( driverId INTEGER, driverRef TEXT, number TEXT, code TEXT, forename TEXT, surname TEXT, dob TEXT, nationality TEXT, url TEXT ) CREATE TABLE driverStandings ( driverStandingsId INTEGER, raceId INTEGER, driverId INTEGER, points REAL, position INTEGER, positionText TEXT, wins INTEGER ) CREATE TABLE constructorStandings ( constructorStandingsId INTEGER, raceId INTEGER, constructorId INTEGER, points REAL, position INTEGER, positionText TEXT, wins INTEGER ) CREATE TABLE results ( resultId INTEGER, raceId INTEGER, driverId INTEGER, constructorId INTEGER, number INTEGER, grid INTEGER, position TEXT, positionText TEXT, positionOrder INTEGER, points REAL, laps TEXT, time TEXT, milliseconds TEXT, fastestLap TEXT, rank TEXT, fastestLapTime TEXT, fastestLapSpeed TEXT, statusId INTEGER ) CREATE TABLE races ( raceId INTEGER, year INTEGER, round INTEGER, circuitId INTEGER, name TEXT, date TEXT, time TEXT, url TEXT ) CREATE TABLE lapTimes ( raceId INTEGER, driverId INTEGER, lap INTEGER, position INTEGER, time TEXT, milliseconds INTEGER ) CREATE TABLE qualifying ( qualifyId INTEGER, raceId INTEGER, driverId INTEGER, constructorId INTEGER, number INTEGER, position INTEGER, q1 TEXT, q2 TEXT, q3 TEXT )
SELECT institution FROM table_27816698_2 WHERE founded = 1932
Which institution was founded in 1932?
CREATE TABLE table_27816698_2 (institution VARCHAR, founded VARCHAR)
SELECT result FROM table_name_36 WHERE date = "26 october 1993"
What was the result on 26 October 1993?
CREATE TABLE table_name_36 (result VARCHAR, date VARCHAR)
SELECT "First year in Qld Cup" FROM table_26355 WHERE "Home Ground" = 'Corbett Park, Crosby Park, Lang Park, ANZ Stadium'
What is every value for first year in QLD Cup if home ground is Corbett Park, Crosby Park, Lang Park, ANZ Stadium?
CREATE TABLE table_26355 ( "Team" text, "Location" text, "Home Ground" text, "First year in Qld Cup" real, "Last year in Qld Cup" real, "Qld Cup Premierships" text )