schema
stringlengths 20
14.6k
| query
stringlengths 17
2.58k
| question
stringlengths 8
1.06k
|
---|---|---|
<table0>[Funding] { <col0>[funding_id]:[INT] <col1>[source]:[VARCHAR] <col2>[255]:[DECIMAL] } <table1>[Programs] { <col0>[program_id]:[INT] <col1>[name]:[VARCHAR] } | SELECT SUM( amount ) FROM `<table0>` F JOIN Programs P ON F.program_id = P.program_id WHERE F.source = 'Corporate Sponsor' AND P.name LIKE '%Music%'; | What is the total funding from corporate sponsors for music programs? |
<table0>[table_name_40] { <col0>[goals_against]:[VARCHAR] <col1>[position]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = 4 | How many Goals Against have a Position of 4? |
<table0>[table_29219286_1] { <col0>[written_by]:[VARCHAR] <col1>[directed_by]:[VARCHAR] <col2>[no_in_season]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Ernest Dickerson" AND `<col2>` = 9 | How many people wrote episode 9 in the season that was directed by Ernest Dickerson?
|
<table0>[Customer_Addresses] { <col0>[customer_id]:[INTEGER] <col1>[address_id]:[INTEGER] <col2>[date_address_from]:[DATETIME] <col3>[address_type]:[VARCHAR] <col4>[date_address_to]:[DATETIME] } <table1>[Customer_Orders] { <col0>[order_id]:[INTEGER] <col1>[customer_id]:[INTEGER] <col2>[order_status]:[VARCHAR] <col3>[order_date]:[DATETIME] <col4>[order_details]:[VARCHAR] } <table2>[Customer_Contact_Channels] { <col0>[customer_id]:[INTEGER] <col1>[channel_code]:[VARCHAR] <col2>[active_from_date]:[DATETIME] <col3>[active_to_date]:[DATETIME] <col4>[contact_number]:[VARCHAR] } <table3>[Customers] { <col0>[customer_id]:[INTEGER] <col1>[payment_method]:[VARCHAR] <col2>[customer_name]:[VARCHAR] <col3>[date_became_customer]:[DATETIME] <col4>[other_customer_details]:[VARCHAR] } <table4>[Addresses] { <col0>[address_id]:[INTEGER] <col1>[address_content]:[VARCHAR] <col2>[city]:[VARCHAR] <col3>[zip_postcode]:[VARCHAR] <col4>[state_province_county]:[VARCHAR] <col5>[country]:[VARCHAR] <col6>[other_address_details]:[VARCHAR] } <table5>[Products] { <col0>[product_id]:[INTEGER] <col1>[product_details]:[VARCHAR] } <table6>[Order_Items] { <col0>[order_id]:[INTEGER] <col1>[product_id]:[INTEGER] <col2>[order_quantity]:[VARCHAR] } | SELECT date_became_customer, COUNT( `<col3>` ) FROM `<table3>` WHERE `<col0>` BETWEEN 10 AND 20 | What are the dates when customers with ids between 10 and 20 became customers, and count them by a bar chart |
<table0>[DApps] { <col0>[DAppId]:[INT] <col1>[DAppName]:[VARCHAR] <col2>[RegulatorId]:[INT] } <table1>[Regulators] { <col0>[RegulatorId]:[INT] <col1>[RegulatorName]:[VARCHAR] <col2>[Region]:[VARCHAR] <col3>[INSERT]:[DApps] <col4>[DAppId]:[DAppName] <col5>[RegulatorId]:[VALUES] <col6>[App1]:[INSERT] <col7>[DApps]:[DAppId] <col8>[DAppName]:[RegulatorId] <col9>[VALUES]:[App2] } | SELECT d.DAppName, r.RegulatorName FROM `<table0>` d INNER JOIN Regulators r ON d.RegulatorId = r.RegulatorId WHERE r.Region = 'EU'; | Show decentralized applications and their regulatory status in the EU. |
<table0>[View_Unit_Status] { <col0>[apt_id]:[INTEGER] <col1>[apt_booking_id]:[INTEGER] <col2>[status_date]:[DATETIME] <col3>[available_yn]:[BIT] } <table1>[Apartment_Buildings] { <col0>[building_id]:[INTEGER] <col1>[building_short_name]:[CHAR] <col2>[building_full_name]:[VARCHAR] <col3>[building_description]:[VARCHAR] <col4>[255]:[building_address] <col5>[VARCHAR]:[255] <col6>[building_manager]:[VARCHAR] <col7>[building_phone]:[VARCHAR] } <table2>[Guests] { <col0>[guest_id]:[INTEGER] <col1>[gender_code]:[CHAR] <col2>[guest_first_name]:[VARCHAR] <col3>[guest_last_name]:[VARCHAR] <col4>[date_of_birth]:[DATETIME] } <table3>[Apartment_Facilities] { <col0>[apt_id]:[INTEGER] <col1>[facility_code]:[CHAR] } <table4>[Apartments] { <col0>[apt_id]:[INTEGER] <col1>[building_id]:[INTEGER] <col2>[apt_type_code]:[CHAR] <col3>[apt_number]:[CHAR] <col4>[bathroom_count]:[INTEGER] <col5>[bedroom_count]:[INTEGER] <col6>[room_count]:[CHAR] } <table5>[Apartment_Bookings] { <col0>[apt_booking_id]:[INTEGER] <col1>[apt_id]:[INTEGER] <col2>[guest_id]:[INTEGER] <col3>[booking_status_code]:[CHAR] <col4>[booking_start_date]:[DATETIME] <col5>[booking_end_date]:[DATETIME] } | SELECT booking_start_date, COUNT( `<col4>` ) FROM `<table5>` AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id ORDER BY COUNT( `<col4>` ) | How many apartment bookings for each year? Draw a bar chart binning booking start date by year interval, sort by the Y-axis in ascending.
|
<table0>[Method] { <col0>[integer]:[text] <col1>[FullComment]:[text] <col2>[Summary]:[text] <col3>[ApiCalls]:[text] <col4>[CommentIsXml]:[integer] <col5>[SampledAt]:[integer] <col6>[SolutionId]:[integer] <col7>[Lang]:[text] <col8>[NameTokenized]:[text] } <table1>[MethodParameter] { <col0>[integer]:[MethodId] <col1>[text]:[Type] <col2>[text]:[text] } <table2>[Repo] { <col0>[integer]:[Url] <col1>[text]:[Stars] <col2>[integer]:[Forks] <col3>[integer]:[Watchers] <col4>[integer]:[ProcessedTime] } <table3>[Solution] { <col0>[integer]:[RepoId] <col1>[integer]:[Path] <col2>[text]:[ProcessedTime] <col3>[integer]:[WasCompiled] } | SELECT SUBSTR( SUBSTR( Name, INSTR( Name, '.' ) + 1 ), 1, INSTR( SUBSTR( Name, INSTR( Name, '.' ) + 1 ), '.' ) - 1 ) task FROM `<table0>` WHERE `<col8>` = 'html parser feed' | What's the task of the method whose tokenized name is "html parser feed"? |
<table0>[table_name_95] { <col0>[m939_series]:[VARCHAR] <col1>[wheelbase]:[VARCHAR] <col2>[m809_series]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "short" AND `<col2>` = "m817" | Name the M939 series for short wheelbase and M809 series of m817
|
<table0>[business] { <col0>[bid]:[int] <col1>[business_id]:[varchar] <col2>[name]:[varchar] <col3>[full_address]:[varchar] <col4>[city]:[varchar] <col5>[latitude]:[varchar] <col6>[longitude]:[varchar] <col7>[review_count]:[bigint] <col8>[is_open]:[tinyint] <col9>[rating]:[float] <col10>[state]:[varchar] } <table1>[category] { <col0>[int]:[business_id] <col1>[varchar]:[category_name] } <table2>[review] { <col0>[rid]:[int] <col1>[business_id]:[varchar] <col2>[user_id]:[varchar] <col3>[rating]:[float] <col4>[text]:[longtext] <col5>[year]:[int] <col6>[month]:[varchar] } <table3>[user] { <col0>[uid]:[int] <col1>[user_id]:[varchar] <col2>[name]:[varchar] } <table4>[neighborhood] { <col0>[int]:[business_id] <col1>[varchar]:[neighborhood_name] } <table5>[checkin] { <col0>[cid]:[int] <col1>[business_id]:[varchar] <col2>[count]:[int] <col3>[day]:[varchar] } <table6>[tip] { <col0>[tip_id]:[int] <col1>[business_id]:[varchar] <col2>[text]:[longtext] <col3>[user_id]:[varchar] <col4>[likes]:[int] <col5>[year]:[int] <col6>[month]:[varchar] } | SELECT COUNT( DISTINCT ( `<col4>` ) ) FROM `<table2>` WHERE `<col6>` = 'March' | Find the total number of reviews written in March
|
<table0>[customers] { <col0>[CustomerID]:[integer] <col1>[text]:[text] <col2>[StreetAddress]:[text] <col3>[City]:[text] <col4>[State]:[text] <col5>[ZipCode]:[integer] <col6>[Email]:[text] <col7>[PhoneNumber]:[text] <col8>[FirstPurchaseDate]:[date] <col9>[SubscribedToEmailList]:[text] <col10>[Gender]:[text] } <table1>[geolocation] { <col0>[LocationID]:[integer] <col1>[Latitude]:[real] <col2>[Longitude]:[real] } <table2>[location] { <col0>[LocationID]:[integer] <col1>[LocationName]:[text] <col2>[StreetAddress]:[text] <col3>[City]:[text] <col4>[State]:[text] <col5>[ZipCode]:[integer] } <table3>[rootbeerbrand] { <col0>[BrandID]:[integer] <col1>[BrandName]:[text] <col2>[FirstBrewedYear]:[integer] <col3>[BreweryName]:[text] <col4>[City]:[text] <col5>[State]:[text] <col6>[Country]:[text] <col7>[Description]:[text] <col8>[CaneSugar]:[text] <col9>[CornSyrup]:[text] <col10>[Honey]:[text] <col11>[ArtificialSweetener]:[text] <col12>[Caffeinated]:[text] <col13>[Alcoholic]:[text] <col14>[AvailableInCans]:[text] <col15>[AvailableInBottles]:[text] <col16>[AvailableInKegs]:[text] <col17>[Website]:[text] <col18>[FacebookPage]:[text] <col19>[Twitter]:[text] <col20>[WholesaleCost]:[real] <col21>[CurrentRetailPrice]:[real] } <table4>[rootbeer] { <col0>[RootBeerID]:[integer] <col1>[BrandID]:[integer] <col2>[ContainerType]:[text] <col3>[LocationID]:[integer] <col4>[PurchaseDate]:[date] } <table5>[rootbeerreview] { <col0>[CustomerID]:[integer] <col1>[BrandID]:[integer] <col2>[StarRating]:[integer] <col3>[ReviewDate]:[date] <col4>[Review]:[text] } <table6>[transaction] { <col0>[TransactionID]:[integer] <col1>[CreditCardNumber]:[integer] <col2>[CustomerID]:[integer] <col3>[TransactionDate]:[date] <col4>[CreditCardType]:[text] <col5>[LocationID]:[integer] <col6>[RootBeerID]:[integer] <col7>[PurchasePrice]:[real] } | SELECT T2.LocationName FROM `transaction` AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T1.TransactionID = 100885 | Provide the name of the location where transaction no.100885 happened. |
<table0>[job_history] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[START_DATE]:[date] <col2>[END_DATE]:[date] <col3>[JOB_ID]:[varchar] <col4>[DEPARTMENT_ID]:[decimal] } <table1>[countries] { <col0>[COUNTRY_ID]:[varchar] <col1>[COUNTRY_NAME]:[varchar] <col2>[REGION_ID]:[decimal] } <table2>[employees] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[FIRST_NAME]:[varchar] <col2>[LAST_NAME]:[varchar] <col3>[EMAIL]:[varchar] <col4>[PHONE_NUMBER]:[varchar] <col5>[HIRE_DATE]:[date] <col6>[JOB_ID]:[varchar] <col7>[SALARY]:[decimal] <col8>[COMMISSION_PCT]:[decimal] <col9>[MANAGER_ID]:[decimal] <col10>[DEPARTMENT_ID]:[decimal] } <table3>[jobs] { <col0>[JOB_ID]:[varchar] <col1>[JOB_TITLE]:[varchar] <col2>[MIN_SALARY]:[decimal] <col3>[MAX_SALARY]:[decimal] } <table4>[departments] { <col0>[DEPARTMENT_ID]:[decimal] <col1>[DEPARTMENT_NAME]:[varchar] <col2>[MANAGER_ID]:[decimal] <col3>[LOCATION_ID]:[decimal] } <table5>[regions] { <col0>[REGION_ID]:[decimal] <col1>[REGION_NAME]:[varchar] } <table6>[locations] { <col0>[LOCATION_ID]:[decimal] <col1>[STREET_ADDRESS]:[varchar] <col2>[POSTAL_CODE]:[varchar] <col3>[CITY]:[varchar] <col4>[STATE_PROVINCE]:[varchar] <col5>[COUNTRY_ID]:[varchar] } | SELECT HIRE_DATE, SUM( `<col9>` ) FROM `<table2>` WHERE NOT `<col0>` IN ( SELECT `<col0>` FROM `<table0>` ) | For those employees who did not have any job in the past, show me about the distribution of hire_date and the sum of manager_id bin hire_date by weekday in a bar chart. |
<table0>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table1>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table2>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table3>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table4>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT MIN( `<table0>`.age ) FROM `<table0>` WHERE `<table0>`.admission_type = "URGENT" AND `<table0>`.dob_year > "2090" | what is minimum age of patients whose admission type is urgent and year of birth is greater than 2090? |
<table0>[CREATE] { <col0>[VIEW]:[recent_standards] <col1>[SELECT]:[design_standards] } | DROP VIEW recent_standards; | Delete the view recent_standards |
<table0>[table_13762472_3] { <col0>[high_points]:[VARCHAR] <col1>[team]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "New Orleans/Oklahoma City" | How many players scored the most points when the opposing team was New Orleans/Oklahoma City? |
<table0>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table1>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } <table2>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>[temperature]:[number] <col3>[sao2]:[number] <col4>[heartrate]:[number] <col5>[respiration]:[number] <col6>[systemicsystolic]:[number] <col7>[systemicdiastolic]:[number] <col8>[systemicmean]:[number] <col9>[observationtime]:[time] } <table3>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } <table4>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table5>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table6>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table7>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstayid]:[number] <col3>[gender]:[text] <col4>[age]:[text] <col5>[ethnicity]:[text] <col6>[hospitalid]:[number] <col7>[wardid]:[number] <col8>[admissionheight]:[number] <col9>[admissionweight]:[number] <col10>[dischargeweight]:[number] <col11>[hospitaladmittime]:[time] <col12>[hospitaladmitsource]:[text] <col13>[unitadmittime]:[time] <col14>[unitdischargetime]:[time] <col15>[hospitaldischargetime]:[time] <col16>[hospitaldischargestatus]:[text] } <table8>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table9>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } | SELECT SUM( `<table5>`.cellvaluenumeric ) FROM `<table5>` WHERE `<table5>`.`<table7>`unitstayid IN ( SELECT `<table7>`.`<table7>`unitstayid FROM `<table7>` WHERE `<table7>`.`<table7>`healthsystemstayid IN ( SELECT `<table7>`.`<table7>`healthsystemstayid FROM `<table7>` WHERE `<table7>`.uniquepid = '028-8188' ) ) AND `<table5>`.cellpath LIKE '%intake%' | what's the total amount of input of patient 028-8188?
|
<table0>[table_25346763_1] { <col0>[facility]:[VARCHAR] <col1>[year_opened]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "1954" | What facility opening in 1954? |
<table0>[course_tags_count] { <col0>[course_id]:[int] <col1>[clear_grading]:[int] <col2>[pop_quiz]:[int] <col3>[group_projects]:[int] <col4>[inspirational]:[int] <col5>[long_lectures]:[int] <col6>[extra_credit]:[int] <col7>[few_tests]:[int] <col8>[good_feedback]:[int] <col9>[tough_tests]:[int] <col10>[heavy_papers]:[int] <col11>[cares_for_students]:[int] <col12>[heavy_assignments]:[int] <col13>[respected]:[int] <col14>[participation]:[int] <col15>[heavy_reading]:[int] <col16>[tough_grader]:[int] <col17>[hilarious]:[int] <col18>[would_take_again]:[int] <col19>[good_lecture]:[int] <col20>[no_skip]:[int] } <table1>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table2>[program] { <col0>[program_id]:[int] <col1>[name]:[varchar] <col2>[college]:[varchar] <col3>[introduction]:[varchar] } <table3>[course_offering] { <col0>[offering_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[section_number]:[int] <col4>[start_time]:[time] <col5>[end_time]:[time] <col6>[monday]:[varchar] <col7>[tuesday]:[varchar] <col8>[wednesday]:[varchar] <col9>[thursday]:[varchar] <col10>[friday]:[varchar] <col11>[saturday]:[varchar] <col12>[sunday]:[varchar] <col13>[has_final_project]:[varchar] <col14>[has_final_exam]:[varchar] <col15>[textbook]:[varchar] <col16>[class_address]:[varchar] <col17>[allow_audit]:[varchar] } <table4>[area] { <col0>[course_id]:[int] } <table5>[requirement] { <col0>[requirement_id]:[int] } <table6>[jobs] { <col0>[job_id]:[int] <col1>[job_title]:[varchar] <col2>[description]:[varchar] <col3>[requirement]:[varchar] <col4>[city]:[varchar] <col5>[state]:[varchar] <col6>[country]:[varchar] <col7>[zip]:[int] } <table7>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table8>[program_course] { <col0>[program_id]:[int] <col1>[course_id]:[int] <col2>[workload]:[int] <col3>[category]:[varchar] } <table9>[course_prerequisite] { <col0>[pre_course_id]:[int] <col1>[course_id]:[int] } <table10>[semester] { <col0>[semester_id]:[int] } <table11>[student] { <col0>[student_id]:[int] <col1>[lastname]:[varchar] <col2>[firstname]:[varchar] <col3>[program_id]:[int] <col4>[declare_major]:[varchar] <col5>[total_credit]:[int] <col6>[total_gpa]:[float] <col7>[entered_as]:[varchar] <col8>[admit_term]:[int] <col9>[predicted_graduation_semester]:[int] <col10>[degree]:[varchar] <col11>[minor]:[varchar] <col12>[internship]:[varchar] } <table12>[student_record] { <col0>[student_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[grade]:[varchar] <col4>[varchar]:[transfer_source] <col5>[varchar]:[earn_credit] <col6>[varchar]:[repeat_term] <col7>[varchar]:[test_id] } <table13>[gsi] { <col0>[course_offering_id]:[int] <col1>[student_id]:[int] } <table14>[course] { <col0>[course_id]:[int] <col1>[name]:[varchar] <col2>[department]:[varchar] <col3>[number]:[varchar] <col4>[credits]:[varchar] <col5>[advisory_requirement]:[varchar] <col6>[enforced_requirement]:[varchar] <col7>[description]:[varchar] <col8>[num_semesters]:[int] <col9>[num_enrolled]:[int] <col10>[has_discussion]:[varchar] <col11>[has_lab]:[varchar] <col12>[has_projects]:[varchar] <col13>[has_exams]:[varchar] <col14>[num_reviews]:[int] <col15>[clarity_score]:[int] <col16>[easiness_score]:[int] <col17>[helpfulness_score]:[int] } <table15>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table16>[offering_instructor] { <col0>[offering_instructor_id]:[int] <col1>[offering_id]:[int] <col2>[instructor_id]:[int] } <table17>[comment_instructor] { <col0>[instructor_id]:[int] <col1>[student_id]:[int] <col2>[score]:[int] <col3>[comment_text]:[varchar] } | SELECT COUNT( * ) > 0 FROM `<table14>` WHERE `<col2>` = 'EECS' AND `<col11>` = 'Y' AND `<col3>` = 620 | Does a 620 lab exist ? |
<table0>[table_2528382_1] { <col0>[lyricist]:[VARCHAR] <col1>[music_director]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Madan Mohan Kohli" | Who was the lyricist for the song with music directed by madan mohan kohli? |
<table0>[table_name_73] { <col0>[ordered]:[VARCHAR] <col1>[name]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "algerine ( 2nd of `<col1>` )" | What ordered has algerine (2nd of name) as the name? |
<table0>[program_course] { <col0>[program_id]:[int] <col1>[course_id]:[int] <col2>[workload]:[int] <col3>[category]:[varchar] } <table1>[offering_instructor] { <col0>[offering_instructor_id]:[int] <col1>[offering_id]:[int] <col2>[instructor_id]:[int] } <table2>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table3>[requirement] { <col0>[requirement_id]:[int] } <table4>[jobs] { <col0>[job_id]:[int] <col1>[job_title]:[varchar] <col2>[description]:[varchar] <col3>[requirement]:[varchar] <col4>[city]:[varchar] <col5>[state]:[varchar] <col6>[country]:[varchar] <col7>[zip]:[int] } <table5>[course_tags_count] { <col0>[course_id]:[int] <col1>[clear_grading]:[int] <col2>[pop_quiz]:[int] <col3>[group_projects]:[int] <col4>[inspirational]:[int] <col5>[long_lectures]:[int] <col6>[extra_credit]:[int] <col7>[few_tests]:[int] <col8>[good_feedback]:[int] <col9>[tough_tests]:[int] <col10>[heavy_papers]:[int] <col11>[cares_for_students]:[int] <col12>[heavy_assignments]:[int] <col13>[respected]:[int] <col14>[participation]:[int] <col15>[heavy_reading]:[int] <col16>[tough_grader]:[int] <col17>[hilarious]:[int] <col18>[would_take_again]:[int] <col19>[good_lecture]:[int] <col20>[no_skip]:[int] } <table6>[gsi] { <col0>[course_offering_id]:[int] <col1>[student_id]:[int] } <table7>[semester] { <col0>[semester_id]:[int] } <table8>[course] { <col0>[course_id]:[int] <col1>[name]:[varchar] <col2>[department]:[varchar] <col3>[number]:[varchar] <col4>[credits]:[varchar] <col5>[advisory_requirement]:[varchar] <col6>[enforced_requirement]:[varchar] <col7>[description]:[varchar] <col8>[num_semesters]:[int] <col9>[num_enrolled]:[int] <col10>[has_discussion]:[varchar] <col11>[has_lab]:[varchar] <col12>[has_projects]:[varchar] <col13>[has_exams]:[varchar] <col14>[num_reviews]:[int] <col15>[clarity_score]:[int] <col16>[easiness_score]:[int] <col17>[helpfulness_score]:[int] } <table9>[program] { <col0>[program_id]:[int] <col1>[name]:[varchar] <col2>[college]:[varchar] <col3>[introduction]:[varchar] } <table10>[course_prerequisite] { <col0>[pre_course_id]:[int] <col1>[course_id]:[int] } <table11>[area] { <col0>[course_id]:[int] } <table12>[student_record] { <col0>[student_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[grade]:[varchar] <col4>[varchar]:[transfer_source] <col5>[varchar]:[earn_credit] <col6>[varchar]:[repeat_term] <col7>[varchar]:[test_id] } <table13>[course_offering] { <col0>[offering_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[section_number]:[int] <col4>[start_time]:[time] <col5>[end_time]:[time] <col6>[monday]:[varchar] <col7>[tuesday]:[varchar] <col8>[wednesday]:[varchar] <col9>[thursday]:[varchar] <col10>[friday]:[varchar] <col11>[saturday]:[varchar] <col12>[sunday]:[varchar] <col13>[has_final_project]:[varchar] <col14>[has_final_exam]:[varchar] <col15>[textbook]:[varchar] <col16>[class_address]:[varchar] <col17>[allow_audit]:[varchar] } <table14>[comment_instructor] { <col0>[instructor_id]:[int] <col1>[student_id]:[int] <col2>[score]:[int] <col3>[comment_text]:[varchar] } <table15>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table16>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table17>[student] { <col0>[student_id]:[int] <col1>[lastname]:[varchar] <col2>[firstname]:[varchar] <col3>[program_id]:[int] <col4>[declare_major]:[varchar] <col5>[total_credit]:[int] <col6>[total_gpa]:[float] <col7>[entered_as]:[varchar] <col8>[admit_term]:[int] <col9>[predicted_graduation_semester]:[int] <col10>[degree]:[varchar] <col11>[minor]:[varchar] <col12>[internship]:[varchar] } | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 100 AND 100 + 100 AND semester.semester IN ( 'SP', 'SS', 'SU' ) AND semester.semester_id = course_offering.semester AND semester.year = 2016 | Which 100 -level classes are there for Spring or Summer terms ? |
<table0>[NewsArticles] { <col0>[INT]:[title] <col1>[VARCHAR]:[255] <col2>[publication_date]:[DATE] } | SELECT DATE( `<col2>` ) AS publication_date, COUNT( * ) AS articles_per_day FROM `<table0>` WHERE `<col2>` >= CURDATE( ) - INTERVAL 1 MONTH GROUP BY publication_date; | How many news articles were published per day in the last month? |
<table0>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table1>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table3>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table4>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } | SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN lab ON `<table4>`.hadm_id = lab.hadm_id WHERE `<table4>`.religion = "JEHOVAH'S WITNESS" AND lab.fluid = "Urine" | Find the jehovah's witness religious background patients who had urine lab tests. |
<table0>[Courses] { <col0>[course_id]:[INTEGER] <col1>[author_id]:[INTEGER] <col2>[subject_id]:[INTEGER] <col3>[course_name]:[VARCHAR] <col4>[120]:[course_description] <col5>[VARCHAR]:[255] } <table1>[Subjects] { <col0>[subject_id]:[INTEGER] <col1>[subject_name]:[VARCHAR] } <table2>[Students] { <col0>[student_id]:[INTEGER] <col1>[date_of_registration]:[DATETIME] <col2>[date_of_latest_logon]:[DATETIME] <col3>[login_name]:[VARCHAR] <col4>[password]:[VARCHAR] <col5>[personal_name]:[VARCHAR] <col6>[middle_name]:[VARCHAR] <col7>[family_name]:[VARCHAR] } <table3>[Course_Authors_and_Tutors] { <col0>[author_id]:[INTEGER] <col1>[author_tutor_ATB]:[VARCHAR] <col2>[login_name]:[VARCHAR] <col3>[password]:[VARCHAR] <col4>[personal_name]:[VARCHAR] <col5>[middle_name]:[VARCHAR] <col6>[family_name]:[VARCHAR] <col7>[gender_mf]:[VARCHAR] <col8>[address_line_1]:[VARCHAR] } <table4>[Student_Course_Enrolment] { <col0>[registration_id]:[INTEGER] <col1>[student_id]:[INTEGER] <col2>[course_id]:[INTEGER] <col3>[date_of_enrolment]:[DATETIME] <col4>[date_of_completion]:[DATETIME] } <table5>[Student_Tests_Taken] { <col0>[registration_id]:[INTEGER] <col1>[date_test_taken]:[DATETIME] <col2>[test_result]:[VARCHAR] } | SELECT date_of_completion, COUNT( `<col4>` ) FROM `<table4>` AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Fail" ORDER BY COUNT( `<col4>` ) DESC | A bar chart for what are the number of the completion dates of all the tests that have result 'Fail'?, I want to sort in descending by the Y-axis. |
<table0>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table1>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table2>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } <table3>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table4>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table5>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstayid]:[number] <col3>[gender]:[text] <col4>[age]:[text] <col5>[ethnicity]:[text] <col6>[hospitalid]:[number] <col7>[wardid]:[number] <col8>[admissionheight]:[number] <col9>[admissionweight]:[number] <col10>[dischargeweight]:[number] <col11>[hospitaladmittime]:[time] <col12>[hospitaladmitsource]:[text] <col13>[unitadmittime]:[time] <col14>[unitdischargetime]:[time] <col15>[hospitaldischargetime]:[time] <col16>[hospitaldischargestatus]:[text] } <table6>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <table7>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>[temperature]:[number] <col3>[sao2]:[number] <col4>[heartrate]:[number] <col5>[respiration]:[number] <col6>[systemicsystolic]:[number] <col7>[systemicdiastolic]:[number] <col8>[systemicmean]:[number] <col9>[observationtime]:[time] } <table8>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table9>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } | SELECT `<table8>`.`<table8>`time FROM `<table8>` WHERE `<table8>`.`<table5>`unitstayid IN ( SELECT `<table5>`.`<table5>`unitstayid FROM `<table5>` WHERE `<table5>`.`<table5>`healthsystemstayid IN ( SELECT `<table5>`.`<table5>`healthsystemstayid FROM `<table5>` WHERE `<table5>`.uniquepid = '009-12985' ) ) AND `<table8>`.cellpath LIKE '%output%' AND `<table8>`.celllabel = 'urine catheter' AND DATETIME( `<table8>`.`<table8>`time ) <= DATETIME( CURRENT_TIME( ), '-2045 day' ) ORDER BY `<table8>`.`<table8>`time DESC LIMIT 1 | when had patient 009-12985 last had urine catheter output until 2045 days ago?
|
<table0>[locations] { <col0>[LOCATION_ID]:[decimal] <col1>[STREET_ADDRESS]:[varchar] <col2>[POSTAL_CODE]:[varchar] <col3>[CITY]:[varchar] <col4>[STATE_PROVINCE]:[varchar] <col5>[COUNTRY_ID]:[varchar] } <table1>[jobs] { <col0>[JOB_ID]:[varchar] <col1>[JOB_TITLE]:[varchar] <col2>[MIN_SALARY]:[decimal] <col3>[MAX_SALARY]:[decimal] } <table2>[job_history] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[START_DATE]:[date] <col2>[END_DATE]:[date] <col3>[JOB_ID]:[varchar] <col4>[DEPARTMENT_ID]:[decimal] } <table3>[countries] { <col0>[COUNTRY_ID]:[varchar] <col1>[COUNTRY_NAME]:[varchar] <col2>[REGION_ID]:[decimal] } <table4>[regions] { <col0>[REGION_ID]:[decimal] <col1>[REGION_NAME]:[varchar] } <table5>[departments] { <col0>[DEPARTMENT_ID]:[decimal] <col1>[DEPARTMENT_NAME]:[varchar] <col2>[MANAGER_ID]:[decimal] <col3>[LOCATION_ID]:[decimal] } <table6>[employees] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[FIRST_NAME]:[varchar] <col2>[LAST_NAME]:[varchar] <col3>[EMAIL]:[varchar] <col4>[PHONE_NUMBER]:[varchar] <col5>[HIRE_DATE]:[date] <col6>[JOB_ID]:[varchar] <col7>[SALARY]:[decimal] <col8>[COMMISSION_PCT]:[decimal] <col9>[MANAGER_ID]:[decimal] <col10>[DEPARTMENT_ID]:[decimal] } | SELECT HIRE_DATE, SUM( `<col9>` ) FROM `<table6>` WHERE NOT `<col0>` IN ( SELECT `<col0>` FROM `<table2>` ) | For those employees who did not have any job in the past, draw a bar chart about the distribution of hire_date and the sum of manager_id bin hire_date by weekday. |
<table0>[CountryRegion] { <col0>[CountryRegionCode]:[text] <col1>[text]:[ModifiedDate] } <table1>[Culture] { <col0>[CultureID]:[text] <col1>[text]:[ModifiedDate] } <table2>[Currency] { <col0>[CurrencyCode]:[text] <col1>[text]:[ModifiedDate] } <table3>[CountryRegionCurrency] { <col0>[CountryRegionCode]:[text] <col1>[CurrencyCode]:[text] <col2>[ModifiedDate]:[datetime] } <table4>[Person] { <col0>[BusinessEntityID]:[integer] <col1>[PersonType]:[text] <col2>[NameStyle]:[integer] <col3>[Title]:[text] <col4>[FirstName]:[text] <col5>[MiddleName]:[text] <col6>[LastName]:[text] <col7>[Suffix]:[text] <col8>[EmailPromotion]:[integer] <col9>[AdditionalContactInfo]:[text] <col10>[Demographics]:[text] <col11>[rowguid]:[text] <col12>[ModifiedDate]:[datetime] } <table5>[BusinessEntityContact] { <col0>[BusinessEntityID]:[integer] <col1>[PersonID]:[integer] <col2>[ContactTypeID]:[integer] <col3>[rowguid]:[text] <col4>[ModifiedDate]:[datetime] } <table6>[EmailAddress] { <col0>[BusinessEntityID]:[integer] <col1>[EmailAddressID]:[integer] } <table7>[Employee] { <col0>[BusinessEntityID]:[integer] <col1>[NationalIDNumber]:[text] <col2>[LoginID]:[text] <col3>[OrganizationNode]:[text] <col4>[OrganizationLevel]:[integer] <col5>[JobTitle]:[text] <col6>[BirthDate]:[date] <col7>[MaritalStatus]:[text] <col8>[Gender]:[text] <col9>[HireDate]:[date] <col10>[SalariedFlag]:[integer] <col11>[VacationHours]:[integer] <col12>[SickLeaveHours]:[integer] <col13>[CurrentFlag]:[integer] <col14>[rowguid]:[text] <col15>[ModifiedDate]:[datetime] } <table8>[Password] { <col0>[BusinessEntityID]:[integer] <col1>[PasswordHash]:[text] <col2>[PasswordSalt]:[text] <col3>[rowguid]:[text] <col4>[ModifiedDate]:[datetime] } <table9>[PersonCreditCard] { <col0>[BusinessEntityID]:[integer] <col1>[CreditCardID]:[integer] <col2>[ModifiedDate]:[datetime] } <table10>[ProductCategory] { <col0>[ProductCategoryID]:[integer] <col1>[text]:[rowguid] <col2>[text]:[ModifiedDate] } <table11>[ProductDescription] { <col0>[ProductDescriptionID]:[integer] <col1>[Description]:[text] <col2>[rowguid]:[text] <col3>[ModifiedDate]:[datetime] } <table12>[ProductModel] { <col0>[ProductModelID]:[integer] <col1>[text]:[CatalogDescription] <col2>[text]:[Instructions] <col3>[text]:[rowguid] <col4>[text]:[ModifiedDate] } <table13>[ProductModelProductDescriptionCulture] { <col0>[ProductModelID]:[integer] <col1>[ProductDescriptionID]:[integer] <col2>[CultureID]:[text] <col3>[ModifiedDate]:[datetime] } <table14>[ProductPhoto] { <col0>[ProductPhotoID]:[integer] <col1>[ThumbNailPhoto]:[blob] <col2>[ThumbnailPhotoFileName]:[text] <col3>[LargePhoto]:[blob] <col4>[LargePhotoFileName]:[text] <col5>[ModifiedDate]:[datetime] } <table15>[ProductSubcategory] { <col0>[ProductSubcategoryID]:[integer] <col1>[ProductCategoryID]:[integer] <col2>[text]:[rowguid] <col3>[text]:[ModifiedDate] } <table16>[SalesReason] { <col0>[SalesReasonID]:[integer] <col1>[text]:[ReasonType] <col2>[text]:[ModifiedDate] } <table17>[SalesTerritory] { <col0>[TerritoryID]:[integer] <col1>[text]:[CountryRegionCode] <col2>[text]:[Group] <col3>[text]:[SalesYTD] <col4>[real]:[SalesLastYear] <col5>[real]:[CostYTD] <col6>[real]:[CostLastYear] <col7>[real]:[rowguid] <col8>[text]:[ModifiedDate] } <table18>[SalesPerson] { <col0>[BusinessEntityID]:[integer] <col1>[TerritoryID]:[integer] <col2>[SalesQuota]:[real] <col3>[Bonus]:[real] <col4>[CommissionPct]:[real] <col5>[SalesYTD]:[real] <col6>[SalesLastYear]:[real] <col7>[rowguid]:[text] <col8>[ModifiedDate]:[datetime] } <table19>[SalesPersonQuotaHistory] { <col0>[BusinessEntityID]:[integer] <col1>[QuotaDate]:[datetime] <col2>[SalesQuota]:[real] <col3>[rowguid]:[text] <col4>[ModifiedDate]:[datetime] } <table20>[SalesTerritoryHistory] { <col0>[BusinessEntityID]:[integer] <col1>[TerritoryID]:[integer] <col2>[StartDate]:[datetime] <col3>[EndDate]:[datetime] <col4>[rowguid]:[text] <col5>[ModifiedDate]:[datetime] } <table21>[ScrapReason] { <col0>[ScrapReasonID]:[integer] <col1>[text]:[ModifiedDate] } <table22>[Shift] { <col0>[ShiftID]:[integer] <col1>[text]:[StartTime] <col2>[text]:[EndTime] <col3>[text]:[ModifiedDate] } <table23>[ShipMethod] { <col0>[ShipMethodID]:[integer] <col1>[text]:[ShipBase] <col2>[real]:[ShipRate] <col3>[real]:[rowguid] <col4>[text]:[ModifiedDate] } <table24>[SpecialOffer] { <col0>[SpecialOfferID]:[integer] <col1>[Description]:[text] <col2>[DiscountPct]:[real] <col3>[Type]:[text] <col4>[Category]:[text] <col5>[StartDate]:[datetime] <col6>[EndDate]:[datetime] <col7>[MinQty]:[integer] <col8>[MaxQty]:[integer] <col9>[rowguid]:[text] <col10>[ModifiedDate]:[datetime] } <table25>[BusinessEntityAddress] { <col0>[BusinessEntityID]:[integer] <col1>[AddressID]:[integer] <col2>[AddressTypeID]:[integer] <col3>[rowguid]:[text] <col4>[ModifiedDate]:[datetime] } <table26>[SalesTaxRate] { <col0>[SalesTaxRateID]:[integer] <col1>[StateProvinceID]:[integer] <col2>[TaxType]:[integer] <col3>[TaxRate]:[real] <col4>[text]:[rowguid] <col5>[text]:[ModifiedDate] } <table27>[Store] { <col0>[BusinessEntityID]:[integer] <col1>[text]:[SalesPersonID] <col2>[integer]:[Demographics] <col3>[text]:[rowguid] <col4>[text]:[ModifiedDate] } <table28>[SalesOrderHeaderSalesReason] { <col0>[SalesOrderID]:[integer] <col1>[SalesReasonID]:[integer] <col2>[ModifiedDate]:[datetime] } <table29>[TransactionHistoryArchive] { <col0>[TransactionID]:[integer] <col1>[ProductID]:[integer] <col2>[ReferenceOrderID]:[integer] <col3>[ReferenceOrderLineID]:[integer] <col4>[TransactionDate]:[datetime] <col5>[TransactionType]:[text] <col6>[Quantity]:[integer] <col7>[ActualCost]:[real] <col8>[ModifiedDate]:[datetime] } <table30>[UnitMeasure] { <col0>[UnitMeasureCode]:[text] <col1>[text]:[ModifiedDate] } <table31>[ProductCostHistory] { <col0>[ProductID]:[integer] <col1>[StartDate]:[date] <col2>[EndDate]:[date] <col3>[StandardCost]:[real] <col4>[ModifiedDate]:[datetime] } <table32>[ProductDocument] { <col0>[ProductID]:[integer] <col1>[DocumentNode]:[text] <col2>[ModifiedDate]:[datetime] } <table33>[ProductInventory] { <col0>[ProductID]:[integer] <col1>[LocationID]:[integer] <col2>[Shelf]:[text] <col3>[Bin]:[integer] <col4>[Quantity]:[integer] <col5>[rowguid]:[text] <col6>[ModifiedDate]:[datetime] } <table34>[ProductProductPhoto] { <col0>[ProductID]:[integer] <col1>[ProductPhotoID]:[integer] <col2>[Primary]:[integer] <col3>[ModifiedDate]:[datetime] } <table35>[ProductReview] { <col0>[ProductReviewID]:[integer] <col1>[ProductID]:[integer] <col2>[ReviewerName]:[text] <col3>[ReviewDate]:[datetime] <col4>[EmailAddress]:[text] <col5>[Rating]:[integer] <col6>[Comments]:[text] <col7>[ModifiedDate]:[datetime] } <table36>[ShoppingCartItem] { <col0>[ShoppingCartItemID]:[integer] <col1>[ShoppingCartID]:[text] <col2>[Quantity]:[integer] <col3>[ProductID]:[integer] <col4>[DateCreated]:[datetime] <col5>[ModifiedDate]:[datetime] } <table37>[SpecialOfferProduct] { <col0>[SpecialOfferID]:[integer] <col1>[ProductID]:[integer] <col2>[rowguid]:[text] <col3>[ModifiedDate]:[datetime] } <table38>[SalesOrderDetail] { <col0>[SalesOrderID]:[integer] <col1>[SalesOrderDetailID]:[integer] <col2>[CarrierTrackingNumber]:[text] <col3>[OrderQty]:[integer] <col4>[ProductID]:[integer] <col5>[SpecialOfferID]:[integer] <col6>[UnitPrice]:[real] <col7>[UnitPriceDiscount]:[real] <col8>[LineTotal]:[real] <col9>[rowguid]:[text] <col10>[ModifiedDate]:[datetime] } <table39>[TransactionHistory] { <col0>[TransactionID]:[integer] <col1>[ProductID]:[integer] <col2>[ReferenceOrderID]:[integer] <col3>[ReferenceOrderLineID]:[integer] <col4>[TransactionDate]:[datetime] <col5>[TransactionType]:[text] <col6>[Quantity]:[integer] <col7>[ActualCost]:[real] <col8>[ModifiedDate]:[datetime] } <table40>[Vendor] { <col0>[BusinessEntityID]:[integer] <col1>[AccountNumber]:[text] <col2>[text]:[CreditRating] <col3>[integer]:[PreferredVendorStatus] <col4>[integer]:[ActiveFlag] <col5>[integer]:[PurchasingWebServiceURL] <col6>[text]:[ModifiedDate] } <table41>[ProductVendor] { <col0>[ProductID]:[integer] <col1>[BusinessEntityID]:[integer] <col2>[AverageLeadTime]:[integer] <col3>[StandardPrice]:[real] <col4>[LastReceiptCost]:[real] <col5>[LastReceiptDate]:[datetime] <col6>[MinOrderQty]:[integer] <col7>[MaxOrderQty]:[integer] <col8>[OnOrderQty]:[integer] <col9>[UnitMeasureCode]:[text] <col10>[ModifiedDate]:[datetime] } <table42>[PurchaseOrderHeader] { <col0>[PurchaseOrderID]:[integer] <col1>[RevisionNumber]:[integer] <col2>[Status]:[integer] <col3>[EmployeeID]:[integer] <col4>[VendorID]:[integer] <col5>[ShipMethodID]:[integer] <col6>[OrderDate]:[datetime] <col7>[ShipDate]:[datetime] <col8>[SubTotal]:[real] <col9>[TaxAmt]:[real] <col10>[Freight]:[real] <col11>[TotalDue]:[real] <col12>[ModifiedDate]:[datetime] } <table43>[PurchaseOrderDetail] { <col0>[PurchaseOrderID]:[integer] <col1>[PurchaseOrderDetailID]:[integer] <col2>[DueDate]:[datetime] <col3>[OrderQty]:[integer] <col4>[ProductID]:[integer] <col5>[UnitPrice]:[real] <col6>[LineTotal]:[real] <col7>[ReceivedQty]:[real] <col8>[RejectedQty]:[real] <col9>[StockedQty]:[real] <col10>[ModifiedDate]:[datetime] } <table44>[WorkOrder] { <col0>[WorkOrderID]:[integer] <col1>[ProductID]:[integer] <col2>[OrderQty]:[integer] <col3>[StockedQty]:[integer] <col4>[ScrappedQty]:[integer] <col5>[StartDate]:[datetime] <col6>[EndDate]:[datetime] <col7>[DueDate]:[datetime] <col8>[ScrapReasonID]:[integer] <col9>[ModifiedDate]:[datetime] } <table45>[WorkOrderRouting] { <col0>[WorkOrderID]:[integer] <col1>[ProductID]:[integer] <col2>[OperationSequence]:[integer] <col3>[LocationID]:[integer] <col4>[ScheduledStartDate]:[datetime] <col5>[ScheduledEndDate]:[datetime] <col6>[ActualStartDate]:[datetime] <col7>[ActualEndDate]:[datetime] <col8>[ActualResourceHrs]:[real] <col9>[PlannedCost]:[real] <col10>[ActualCost]:[real] <col11>[ModifiedDate]:[datetime] } <table46>[Customer] { <col0>[CustomerID]:[integer] <col1>[PersonID]:[integer] <col2>[StoreID]:[integer] <col3>[TerritoryID]:[integer] <col4>[AccountNumber]:[text] <col5>[rowguid]:[text] <col6>[ModifiedDate]:[datetime] } <table47>[ProductListPriceHistory] { <col0>[ProductID]:[integer] <col1>[StartDate]:[date] <col2>[EndDate]:[date] <col3>[ListPrice]:[real] <col4>[ModifiedDate]:[datetime] } <table48>[Address] { <col0>[AddressID]:[integer] <col1>[AddressLine1]:[text] <col2>[AddressLine2]:[text] <col3>[City]:[text] <col4>[StateProvinceID]:[integer] <col5>[PostalCode]:[text] <col6>[SpatialLocation]:[text] <col7>[rowguid]:[text] <col8>[ModifiedDate]:[datetime] } <table49>[AddressType] { <col0>[AddressTypeID]:[integer] <col1>[text]:[rowguid] <col2>[text]:[ModifiedDate] } <table50>[BillOfMaterials] { <col0>[BillOfMaterialsID]:[integer] <col1>[ProductAssemblyID]:[integer] <col2>[ComponentID]:[integer] <col3>[StartDate]:[datetime] <col4>[EndDate]:[datetime] <col5>[UnitMeasureCode]:[text] <col6>[BOMLevel]:[integer] <col7>[PerAssemblyQty]:[real] <col8>[ModifiedDate]:[datetime] } <table51>[BusinessEntity] { <col0>[BusinessEntityID]:[integer] <col1>[rowguid]:[text] <col2>[ModifiedDate]:[datetime] } <table52>[ContactType] { <col0>[ContactTypeID]:[integer] <col1>[text]:[ModifiedDate] } <table53>[CurrencyRate] { <col0>[CurrencyRateID]:[integer] <col1>[CurrencyRateDate]:[datetime] <col2>[FromCurrencyCode]:[text] <col3>[ToCurrencyCode]:[text] <col4>[AverageRate]:[real] <col5>[EndOfDayRate]:[real] <col6>[ModifiedDate]:[datetime] } <table54>[Department] { <col0>[DepartmentID]:[integer] <col1>[text]:[GroupName] <col2>[text]:[ModifiedDate] } <table55>[EmployeeDepartmentHistory] { <col0>[BusinessEntityID]:[integer] <col1>[DepartmentID]:[integer] <col2>[ShiftID]:[integer] <col3>[StartDate]:[date] <col4>[EndDate]:[date] <col5>[ModifiedDate]:[datetime] } <table56>[EmployeePayHistory] { <col0>[BusinessEntityID]:[integer] <col1>[RateChangeDate]:[datetime] <col2>[Rate]:[real] <col3>[PayFrequency]:[integer] <col4>[ModifiedDate]:[datetime] } <table57>[JobCandidate] { <col0>[JobCandidateID]:[integer] <col1>[BusinessEntityID]:[integer] <col2>[Resume]:[text] <col3>[ModifiedDate]:[datetime] } <table58>[Location] { <col0>[LocationID]:[integer] <col1>[text]:[CostRate] <col2>[real]:[Availability] <col3>[real]:[ModifiedDate] } <table59>[PhoneNumberType] { <col0>[PhoneNumberTypeID]:[integer] <col1>[text]:[ModifiedDate] } <table60>[Product] { <col0>[ProductID]:[integer] <col1>[text]:[ProductNumber] <col2>[text]:[MakeFlag] <col3>[integer]:[FinishedGoodsFlag] <col4>[integer]:[Color] <col5>[text]:[SafetyStockLevel] <col6>[integer]:[ReorderPoint] <col7>[integer]:[StandardCost] <col8>[real]:[ListPrice] <col9>[real]:[Size] <col10>[text]:[SizeUnitMeasureCode] <col11>[text]:[WeightUnitMeasureCode] <col12>[text]:[Weight] <col13>[real]:[DaysToManufacture] <col14>[integer]:[ProductLine] <col15>[text]:[Class] <col16>[text]:[Style] <col17>[text]:[ProductSubcategoryID] <col18>[integer]:[ProductModelID] <col19>[integer]:[SellStartDate] <col20>[datetime]:[SellEndDate] <col21>[datetime]:[DiscontinuedDate] <col22>[datetime]:[rowguid] <col23>[text]:[ModifiedDate] } <table61>[Document] { <col0>[DocumentNode]:[text] <col1>[DocumentLevel]:[integer] <col2>[Title]:[text] <col3>[Owner]:[integer] <col4>[FolderFlag]:[integer] <col5>[FileName]:[text] <col6>[FileExtension]:[text] <col7>[Revision]:[text] <col8>[ChangeNumber]:[integer] <col9>[Status]:[integer] <col10>[DocumentSummary]:[text] } <table62>[StateProvince] { <col0>[StateProvinceID]:[integer] <col1>[StateProvinceCode]:[text] <col2>[CountryRegionCode]:[text] <col3>[IsOnlyStateProvinceFlag]:[integer] <col4>[text]:[TerritoryID] <col5>[integer]:[rowguid] <col6>[text]:[ModifiedDate] } <table63>[CreditCard] { <col0>[CreditCardID]:[integer] <col1>[CardType]:[text] <col2>[CardNumber]:[text] <col3>[ExpMonth]:[integer] <col4>[ExpYear]:[integer] <col5>[ModifiedDate]:[datetime] } <table64>[SalesOrderHeader] { <col0>[SalesOrderID]:[integer] <col1>[RevisionNumber]:[integer] <col2>[OrderDate]:[datetime] <col3>[DueDate]:[datetime] <col4>[ShipDate]:[datetime] <col5>[Status]:[integer] <col6>[OnlineOrderFlag]:[integer] <col7>[SalesOrderNumber]:[text] <col8>[PurchaseOrderNumber]:[text] <col9>[AccountNumber]:[text] <col10>[CustomerID]:[integer] <col11>[SalesPersonID]:[integer] <col12>[TerritoryID]:[integer] <col13>[BillToAddressID]:[integer] <col14>[ShipToAddressID]:[integer] <col15>[ShipMethodID]:[integer] <col16>[CreditCardID]:[integer] <col17>[CreditCardApprovalCode]:[text] <col18>[CurrencyRateID]:[integer] <col19>[SubTotal]:[real] <col20>[TaxAmt]:[real] <col21>[Freight]:[real] <col22>[TotalDue]:[real] <col23>[Comment]:[text] <col24>[rowguid]:[text] <col25>[ModifiedDate]:[datetime] } | SELECT T2.Name FROM `<table35>` AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID GROUP BY T1.ProductID ORDER BY COUNT( T1.`<table35>`ID ) DESC LIMIT 1 | Which product gets the most reviews? |
<table0>[table_name_1] { <col0>[team]:[VARCHAR] <col1>[player]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "bill walker" | What team does Bill Walker play for? |
<table0>[Claim_Headers] { <col0>[Claim_Header_ID]:[INTEGER] <col1>[Claim_Status_Code]:[CHAR] <col2>[Claim_Type_Code]:[CHAR] <col3>[Policy_ID]:[INTEGER] <col4>[Date_of_Claim]:[DATETIME] <col5>[Date_of_Settlement]:[DATETIME] <col6>[Amount_Claimed]:[DECIMAL] <col7>[Amount_Piad]:[DECIMAL] } <table1>[Claims_Processing_Stages] { <col0>[Claim_Stage_ID]:[INTEGER] <col1>[Next_Claim_Stage_ID]:[INTEGER] <col2>[Claim_Status_Name]:[VARCHAR] <col3>[255]:[Claim_Status_Description] <col4>[VARCHAR]:[255] } <table2>[Customers] { <col0>[Customer_ID]:[INTEGER] <col1>[Customer_Details]:[VARCHAR] } <table3>[Claims_Processing] { <col0>[Claim_Processing_ID]:[INTEGER] <col1>[Claim_ID]:[INTEGER] <col2>[Claim_Outcome_Code]:[CHAR] <col3>[Claim_Stage_ID]:[INTEGER] <col4>[Staff_ID]:[INTEGER] } <table4>[Claims_Documents] { <col0>[Claim_ID]:[INTEGER] <col1>[Document_Type_Code]:[CHAR] <col2>[Created_by_Staff_ID]:[INTEGER] <col3>[Created_Date]:[INTEGER] } <table5>[Staff] { <col0>[Staff_ID]:[INTEGER] <col1>[Staff_Details]:[VARCHAR] } <table6>[Policies] { <col0>[Policy_ID]:[INTEGER] <col1>[Customer_ID]:[INTEGER] <col2>[Policy_Type_Code]:[CHAR] <col3>[Start_Date]:[DATETIME] <col4>[End_Date]:[DATETIME] } | SELECT Policy_Type_Code, COUNT( * ) FROM `<table6>` GROUP BY `<col2>` ORDER BY COUNT( * ) DESC | For each policy type, return its type code and its count in the record Visualize by bar chart, and could you order y-axis in desc order? |
<table0>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table1>[offering_instructor] { <col0>[offering_instructor_id]:[int] <col1>[offering_id]:[int] <col2>[instructor_id]:[int] } <table2>[program] { <col0>[program_id]:[int] <col1>[name]:[varchar] <col2>[college]:[varchar] <col3>[introduction]:[varchar] } <table3>[course_prerequisite] { <col0>[pre_course_id]:[int] <col1>[course_id]:[int] } <table4>[course_offering] { <col0>[offering_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[section_number]:[int] <col4>[start_time]:[time] <col5>[end_time]:[time] <col6>[monday]:[varchar] <col7>[tuesday]:[varchar] <col8>[wednesday]:[varchar] <col9>[thursday]:[varchar] <col10>[friday]:[varchar] <col11>[saturday]:[varchar] <col12>[sunday]:[varchar] <col13>[has_final_project]:[varchar] <col14>[has_final_exam]:[varchar] <col15>[textbook]:[varchar] <col16>[class_address]:[varchar] <col17>[allow_audit]:[varchar] } <table5>[jobs] { <col0>[job_id]:[int] <col1>[job_title]:[varchar] <col2>[description]:[varchar] <col3>[requirement]:[varchar] <col4>[city]:[varchar] <col5>[state]:[varchar] <col6>[country]:[varchar] <col7>[zip]:[int] } <table6>[student] { <col0>[student_id]:[int] <col1>[lastname]:[varchar] <col2>[firstname]:[varchar] <col3>[program_id]:[int] <col4>[declare_major]:[varchar] <col5>[total_credit]:[int] <col6>[total_gpa]:[float] <col7>[entered_as]:[varchar] <col8>[admit_term]:[int] <col9>[predicted_graduation_semester]:[int] <col10>[degree]:[varchar] <col11>[minor]:[varchar] <col12>[internship]:[varchar] } <table7>[gsi] { <col0>[course_offering_id]:[int] <col1>[student_id]:[int] } <table8>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table9>[semester] { <col0>[semester_id]:[int] } <table10>[area] { <col0>[course_id]:[int] } <table11>[course_tags_count] { <col0>[course_id]:[int] <col1>[clear_grading]:[int] <col2>[pop_quiz]:[int] <col3>[group_projects]:[int] <col4>[inspirational]:[int] <col5>[long_lectures]:[int] <col6>[extra_credit]:[int] <col7>[few_tests]:[int] <col8>[good_feedback]:[int] <col9>[tough_tests]:[int] <col10>[heavy_papers]:[int] <col11>[cares_for_students]:[int] <col12>[heavy_assignments]:[int] <col13>[respected]:[int] <col14>[participation]:[int] <col15>[heavy_reading]:[int] <col16>[tough_grader]:[int] <col17>[hilarious]:[int] <col18>[would_take_again]:[int] <col19>[good_lecture]:[int] <col20>[no_skip]:[int] } <table12>[comment_instructor] { <col0>[instructor_id]:[int] <col1>[student_id]:[int] <col2>[score]:[int] <col3>[comment_text]:[varchar] } <table13>[student_record] { <col0>[student_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[grade]:[varchar] <col4>[varchar]:[transfer_source] <col5>[varchar]:[earn_credit] <col6>[varchar]:[repeat_term] <col7>[varchar]:[test_id] } <table14>[requirement] { <col0>[requirement_id]:[int] } <table15>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table16>[program_course] { <col0>[program_id]:[int] <col1>[course_id]:[int] <col2>[workload]:[int] <col3>[category]:[varchar] } <table17>[course] { <col0>[course_id]:[int] <col1>[name]:[varchar] <col2>[department]:[varchar] <col3>[number]:[varchar] <col4>[credits]:[varchar] <col5>[advisory_requirement]:[varchar] <col6>[enforced_requirement]:[varchar] <col7>[description]:[varchar] <col8>[num_semesters]:[int] <col9>[num_enrolled]:[int] <col10>[has_discussion]:[varchar] <col11>[has_lab]:[varchar] <col12>[has_projects]:[varchar] <col13>[has_exams]:[varchar] <col14>[num_reviews]:[int] <col15>[clarity_score]:[int] <col16>[easiness_score]:[int] <col17>[helpfulness_score]:[int] } | SELECT DISTINCT `<col4>` FROM `<table17>` WHERE `<col2>` = 'EECS' AND `<col3>` = 478 | For EECS 478 , how many credits is it ?
|
<table0>[table_79080] { <col0>[Opposing]:[Teams] <col1>[text]:[real] <col2>[Date]:[text] <col3>[Venue]:[text] <col4>[Status]:[text] } | SELECT "Date" FROM `<table0>` WHERE "Opposing Teams" = 'australia' AND "Venue" = 'twickenham , london' | What is Date, when Opposing Teams is 'Australia', and when Venue is 'Twickenham , London'?
|
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table3>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table4>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` WHERE `<table3>`.ethnicity = "BLACK/AFRICAN AMERICAN" AND `<table3>`.days_stay > "0" | count the number of black/african american patients who stayed in the hospital for 1 or more days. |
<table0>[users] { <col0>[INT]:[country] <col1>[VARCHAR]:[INSERT] } <table1>[posts] { <col0>[INT]:[user_id] <col1>[INT]:[likes] <col2>[INT]:[timestamp] <col3>[DATETIME]:[INSERT] } | SELECT COUNT( DISTINCT `<table1>`.user_id ) FROM `<table1>` INNER JOIN users ON `<table1>`.user_id = users.id WHERE users.country = 'MX' AND `<table1>`.timestamp >= DATE_SUB( CURRENT_DATE, INTERVAL 1 MONTH ) HAVING COUNT( `<table1>`.id ) > 1; | How many users from Mexico have posted more than once in the past month? |
<table0>[table_name_75] { <col0>[home_team]:[VARCHAR] <col1>[venue]:[VARCHAR] } | SELECT `<col0>` AS score FROM `<table0>` WHERE `<col1>` = "western oval" | What was the home team score for the game played at Western Oval? |
<table0>[table_57737] { <col0>[Home]:[team] <col1>[text]:[Home] <col2>[team]:[score] <col3>[text]:[Away] <col4>[team]:[text] <col5>[Away]:[team] <col6>[score]:[text] <col7>[Venue]:[text] <col8>[Crowd]:[real] <col9>[Date]:[text] } | SELECT "Away `<col2>` score" FROM `<table0>` WHERE "Venue" = 'punt road oval' | When did the away team score at Punt Road Oval?
|
<table0>[union_advocacy] { <col0>[INT]:[union_name] <col1>[TEXT]:[state] <col2>[TEXT]:[involved_in_advocacy] <col3>[BOOLEAN]:[INSERT] } | SELECT ( COUNT( * ) * 100.0 / ( SELECT COUNT( * ) FROM `<table0>` WHERE state = 'Illinois' ) ) AS percentage FROM `<table0>` WHERE involved_in_advocacy = true AND state = 'Illinois'; | What is the percentage of members that are involved in labor rights advocacy in Illinois? |
<table0>[table_40512] { <col0>[Year]:[real] <col1>[Competition]:[text] <col2>[Venue]:[text] <col3>[Position]:[text] <col4>[Event]:[text] } | SELECT "Position" FROM `<table0>` WHERE "Competition" = 'world athletics final' AND "Year" > '2008' | What position was played at the World Athletics Final Competition in a year more recent than 2008?
|
<table0>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[itemid]:[number] <col5>[charttime]:[time] <col6>[valuenum]:[number] <col7>[valueuom]:[text] } <table1>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table2>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table3>[labevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[itemid]:[number] <col4>[charttime]:[time] <col5>[valuenum]:[number] <col6>[valueuom]:[text] } <table4>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table5>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <table6>[transfers] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[eventtype]:[text] <col5>[careunit]:[text] <col6>[wardid]:[number] <col7>[intime]:[time] <col8>[outtime]:[time] } <table7>[microbiologyevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[charttime]:[time] <col4>[spec_type_desc]:[text] <col5>[org_name]:[text] } <table8>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table9>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table10>[icustays] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[first_careunit]:[text] <col5>[last_careunit]:[text] <col6>[first_wardid]:[number] <col7>[last_wardid]:[number] <col8>[intime]:[time] <col9>[outtime]:[time] } <table11>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <table12>[outputevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] <col6>[value]:[number] } <table13>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table14>[prescriptions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[startdate]:[time] <col4>[enddate]:[time] <col5>[drug]:[text] <col6>[dose_val_rx]:[text] <col7>[dose_unit_rx]:[text] <col8>[route]:[text] } <table15>[admissions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[admittime]:[time] <col4>[dischtime]:[time] <col5>[admission_type]:[text] <col6>[admission_location]:[text] <col7>[discharge_location]:[text] <col8>[insurance]:[text] <col9>[language]:[text] <col10>[marital_status]:[text] <col11>[ethnicity]:[text] <col12>[age]:[number] } <table16>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } | SELECT COUNT( * ) > 0 FROM `<table0>` WHERE `<table0>`.icustay_id IN ( SELECT `<table10>`.icustay_id FROM `<table10>` WHERE `<table10>`.hadm_id IN ( SELECT `<table15>`.hadm_id FROM `<table15>` WHERE `<table15>`.subject_id = 269 ) ) AND `<table0>`.itemid IN ( SELECT `<table2>`.itemid FROM `<table2>` WHERE `<table2>`.label = 'arterial bp [systolic]' AND `<table2>`.linksto = '`<table0>`' ) AND `<table0>`.valuenum < 119.0 | patient 269's arterial bp [systolic] was less than 119.0?
|
<table0>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table2>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table4>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN diagnoses ON `<table1>`.hadm_id = diagnoses.hadm_id WHERE `<table1>`.discharge_location = "SNF" AND diagnoses.short_title = "Coagulat defect NEC/NOS" | count the number of patients who had discharge location as snf and diagnoses titled coagulat defect nec/nos.
|
<table0>[table_14649522_1] { <col0>[college]:[VARCHAR] <col1>[position]:[VARCHAR] <col2>[pick__number]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Wide Receiver" AND `<col2>` < 130.0 | Which college was the wide receiver whose pick was less than 130.0 picked from? |
<table0>[table_11677100_15] { <col0>[mlb_draft]:[VARCHAR] <col1>[hometown]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "High Point, NC" | How many players were from high point, nc?
|
<table0>[table_52761] { <col0>[Driver]:[text] <col1>[Constructor]:[text] <col2>[Laps]:[real] <col3>[Time]:[Retired] <col4>[text]:[Grid] } | SELECT AVG( "Laps" ) FROM `<table0>` WHERE "Time/Retired" = '+5 laps' | What is the average laps that had a time/retired of +5 laps?
|
<table0>[table_name_77] { <col0>[airport]:[VARCHAR] <col1>[country]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "vietnam" | What airport is in Vietnam? |
<table0>[classification] { <col0>[int]:[msid] <col1>[int]:[gid] } <table1>[tags] { <col0>[int]:[msid] <col1>[int]:[kid] } <table2>[movie] { <col0>[mid]:[int] <col1>[title]:[text] <col2>[release_year]:[int] <col3>[title_aka]:[text] <col4>[budget]:[text] } <table3>[tv_series] { <col0>[sid]:[int] <col1>[title]:[text] <col2>[release_year]:[int] <col3>[num_of_seasons]:[int] <col4>[num_of_episodes]:[int] <col5>[title_aka]:[text] <col6>[budget]:[text] } <table4>[actor] { <col0>[aid]:[int] <col1>[gender]:[text] <col2>[name]:[text] <col3>[nationality]:[text] <col4>[birth_city]:[text] <col5>[birth_year]:[int] } <table5>[made_by] { <col0>[int]:[msid] <col1>[int]:[pid] } <table6>[written_by] { <col0>[int]:[msid] <col1>[int]:[wid] } <table7>[directed_by] { <col0>[int]:[msid] <col1>[int]:[int] } <table8>[director] { <col0>[int]:[gender] <col1>[text]:[name] <col2>[text]:[nationality] <col3>[text]:[birth_city] <col4>[text]:[birth_year] } <table9>[genre] { <col0>[gid]:[int] } <table10>[writer] { <col0>[wid]:[int] <col1>[gender]:[text] <col2>[name]:[text] <col3>[nationality]:[text] <col4>[birth_city]:[text] <col5>[birth_year]:[int] } <table11>[copyright] { <col0>[int]:[msid] <col1>[int]:[cid] } <table12>[cast] { <col0>[int]:[msid] <col1>[int]:[aid] <col2>[int]:[role] } <table13>[producer] { <col0>[pid]:[int] <col1>[gender]:[text] <col2>[name]:[text] <col3>[nationality]:[text] <col4>[birth_city]:[text] <col5>[birth_year]:[int] } <table14>[company] { <col0>[int]:[name] <col1>[text]:[country_code] } <table15>[keyword] { } | SELECT `<col2>` FROM `<table4>` WHERE `<col4>` = 'Tehran' | Which actors were born in Tehran
|
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table4>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN lab ON `<table3>`.hadm_id = lab.hadm_id WHERE `<table3>`.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND lab.flag = "delta" | How many patients with brain mass intracranial hemorrhage as their primary disease had delta an abnormal lab test status? |
<table0>[table_name_73] { <col0>[to_par]:[VARCHAR] <col1>[player]:[VARCHAR] <col2>[total]:[VARCHAR] <col3>[country]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col2>` > 294 AND `<col3>` = "united states" AND `<col1>` = "lee trevino" | Lee Trevino of the United States with a total greater than 294 had what To par? |
<table0>[table_name_98] { <col0>[roll]:[VARCHAR] <col1>[area]:[VARCHAR] <col2>[decile]:[VARCHAR] <col3>[authority]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col2>` = 7 AND `<col3>` = "state" AND `<col1>` = "macraes flat" | What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area? |
<table0>[Scientists] { <col0>[SSN]:[int] } <table1>[AssignedTo] { <col0>[Scientist]:[int] <col1>[Project]:[char] } <table2>[Projects] { <col0>[Code]:[Char] <col1>[Char]:[Hours] } | SELECT Name, COUNT( * ) FROM `<table2>` AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project WHERE T1.Hours > 300 GROUP BY T1.Name ORDER BY Name DESC | Give me a histogram for what are the names of projects that require more than 300 hours, and how many scientists are assigned to each?, and list by the Name in desc.
|
<table0>[Products] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Price]:[DECIMAL] <col3>[Manufacturer]:[INTEGER] } <table1>[Manufacturers] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Headquarter]:[VARCHAR] <col3>[255]:[Founder] <col4>[VARCHAR]:[255] <col5>[Revenue]:[REAL] } | SELECT Name, COUNT( Name ) FROM `<table0>` WHERE `<col2>` <= 200 GROUP BY Name ORDER BY COUNT( Name ) DESC | A bar chart for what are the number of the names of products with price at most 200?, display in descending by the Y.
|
<table0>[table_name_74] { <col0>[to_par]:[VARCHAR] <col1>[player]:[VARCHAR] <col2>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col2>` = 68 - 66 = 134 AND `<col1>` = "fred couples" | What is the to par for Fred Couples when the score is 68-66=134?
|
<table0>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table2>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table4>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } | SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN diagnoses ON `<table1>`.hadm_id = diagnoses.hadm_id WHERE `<table1>`.admityear < "2187" AND diagnoses.long_title = "Cardiac tamponade" | what is the number of patients whose admission year is less than 2187 and diagnoses long title is cardiac tamponade?
|
<table0>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table1>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table2>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table3>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table4>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table5>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table6>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table7>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table8>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table9>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table10>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table11>[VoteTypes] { <col0>[number]:[text] } <table12>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table13>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table14>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table15>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table16>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table17>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table18>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table19>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table20>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table21>[PostHistoryTypes] { <col0>[number]:[text] } <table22>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table23>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table24>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table25>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } <table26>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table27>[PostTypes] { <col0>[number]:[text] } <table28>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } | SELECT `<table16>`.Id AS "post_link", `<table16>`.Id, `<table16>`.Score, Tags.TagName AS "tagname" FROM `<table16>` INNER JOIN PostTags ON PostTags.PostId = `<table16>`.Id INNER JOIN Tags ON Tags.Id = PostTags.TagId WHERE `<table16>`.PostTypeId = 1 AND Tags.TagName = @MyTag ORDER BY `<table16>`.Score DESC | all questions with a particular tag. how long before I get tag badges?
|
<table0>[essays] { <col0>[projectid]:[text] <col1>[teacher_acctid]:[text] <col2>[title]:[text] <col3>[short_description]:[text] <col4>[need_statement]:[text] <col5>[essay]:[text] } <table1>[projects] { <col0>[projectid]:[text] <col1>[teacher_acctid]:[text] <col2>[schoolid]:[text] <col3>[school_ncesid]:[text] <col4>[school_latitude]:[real] <col5>[school_longitude]:[real] <col6>[school_city]:[text] <col7>[school_state]:[text] <col8>[school_zip]:[integer] <col9>[school_metro]:[text] <col10>[school_district]:[text] <col11>[school_county]:[text] <col12>[school_charter]:[text] <col13>[school_magnet]:[text] <col14>[school_year_round]:[text] <col15>[school_nlns]:[text] <col16>[school_kipp]:[text] <col17>[school_charter_ready_promise]:[text] <col18>[teacher_prefix]:[text] <col19>[teacher_teach_for_america]:[text] <col20>[teacher_ny_teaching_fellow]:[text] <col21>[primary_focus_subject]:[text] <col22>[primary_focus_area]:[text] <col23>[secondary_focus_subject]:[text] <col24>[secondary_focus_area]:[text] <col25>[resource_type]:[text] <col26>[poverty_level]:[text] <col27>[grade_level]:[text] <col28>[fulfillment_labor_materials]:[real] <col29>[total_price_excluding_optional_support]:[real] <col30>[total_price_including_optional_support]:[real] <col31>[students_reached]:[integer] <col32>[eligible_double_your_impact_match]:[text] <col33>[eligible_almost_home_match]:[text] <col34>[date_posted]:[date] } <table2>[donations] { <col0>[donationid]:[text] <col1>[projectid]:[text] <col2>[donor_acctid]:[text] <col3>[donor_city]:[text] <col4>[donor_state]:[text] <col5>[donor_zip]:[text] <col6>[is_teacher_acct]:[text] <col7>[donation_timestamp]:[datetime] <col8>[donation_to_project]:[real] <col9>[donation_optional_support]:[real] <col10>[donation_total]:[real] <col11>[dollar_amount]:[text] <col12>[donation_included_optional_support]:[text] <col13>[payment_method]:[text] <col14>[payment_included_acct_credit]:[text] <col15>[payment_included_campaign_gift_card]:[text] <col16>[payment_included_web_purchased_gift_card]:[text] <col17>[payment_was_promo_matched]:[text] <col18>[via_giving_page]:[text] <col19>[for_honoree]:[text] <col20>[donation_message]:[text] } <table3>[resources] { <col0>[resourceid]:[text] <col1>[projectid]:[text] <col2>[vendorid]:[integer] <col3>[vendor_name]:[text] <col4>[project_resource_type]:[text] <col5>[item_name]:[text] <col6>[item_number]:[text] <col7>[item_unit_price]:[real] <col8>[item_quantity]:[integer] } | SELECT donationid, `<col10>` FROM `<table2>` ORDER BY `<col10>` DESC LIMIT 1 | Who is the largest donor by amount? Give the donation id and the total amount of the donation. |
<table0>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table1>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table2>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table3>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table4>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table5>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table6>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table7>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table8>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table9>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table10>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table11>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table12>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table13>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table14>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table15>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table16>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table17>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } <table18>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table19>[PostHistoryTypes] { <col0>[number]:[text] } <table20>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table21>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table22>[PostTypes] { <col0>[number]:[text] } <table23>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table24>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table25>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table26>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table27>[VoteTypes] { <col0>[number]:[text] } <table28>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } | SELECT * FROM ( SELECT DATE( CreationDate ) AS Date_Posted, SUM( CASE WHEN PostTypeId = 1 THEN 1 ELSE 0 END ) AS Questions, SUM( CASE WHEN PostTypeId = 2 THEN 1 ELSE 0 END ) AS Answers FROM `<table25>` WHERE YEAR( CreationDate ) = 2020 AND DeletionDate IS NULL GROUP BY DATE( CreationDate ) ) AS a FULL OUTER JOIN ( SELECT DATE( CreationDate ) AS Date_Joined, COUNT( * ) AS `<table0>` FROM `<table0>` WHERE YEAR( CreationDate ) = 2020 GROUP BY DATE( CreationDate ) ) AS b ON a.Date_Posted = b.Date_Joined FULL OUTER JOIN ( SELECT DATE( CreationDate ) AS Date_Commented, COUNT( * ) AS `<table3>` FROM `<table3>` WHERE YEAR( CreationDate ) = 2020 GROUP BY DATE( CreationDate ) ) AS c ON c.Date_Commented = a.Date_Posted | Daily Activity Posts Comments Users. |
<table0>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table1>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table2>[PostTypes] { <col0>[number]:[text] } <table3>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table4>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table5>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table6>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table7>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table8>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table9>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table10>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table11>[PostHistoryTypes] { <col0>[number]:[text] } <table12>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table13>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } <table14>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table15>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table16>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table17>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table18>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table19>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table20>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table21>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table22>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table23>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table24>[VoteTypes] { <col0>[number]:[text] } <table25>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table26>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table27>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table28>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } | SELECT `<table14>`.CreationDate, `<table14>`.Id AS "comment_link", `<table14>`.UserId AS "user_link", Users.Reputation FROM `<table14>` INNER JOIN Users ON `<table14>`.UserId = Users.Id WHERE LOWER( `<table14>`.Text ) LIKE LOWER( '%##SearchWord##%' ) AND `<table14>`.CreationDate BETWEEN DATEADD( DD, -'##DaysOld##', GETDATE( ) ) AND GETDATE( ) ORDER BY `<table14>`.CreationDate DESC | Comments containing [word] that are [days] old. |
<table0>[economic_diversification] { <col0>[INT]:[effort_name] <col1>[VARCHAR]:[amount_of_investment] <col2>[DECIMAL]:[INSERT] } | SELECT effort_name, ROW_NUMBER( ) OVER ( ORDER BY amount_of_investment ASC ) as rank FROM economic_diversification; | What is the rank of each economic diversification effort in the 'economic_diversification' table, ordered by the amount of investment and ranked in ascending order?; |
<table0>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table4>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } | SELECT COUNT( DISTINCT `<table0>`.subject_id ) FROM `<table0>` INNER JOIN prescriptions ON `<table0>`.hadm_id = prescriptions.hadm_id WHERE `<table0>`.age < "62" AND prescriptions.drug_type = "MAIN" | let me know the number of patients on main type drug prescription who are aged less than 62 years. |
<table0>[table_name_34] { <col0>[opponent]:[VARCHAR] <col1>[attendance]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "60,594" | Which Opponent has Attendances of 60,594? |
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table2>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table4>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } | SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN lab ON `<table1>`.hadm_id = lab.hadm_id WHERE `<table1>`.marital_status = "SINGLE" AND lab.label = "Fibrin Degradation Products" | give the number of patients whose marital status is single and lab test name is fibrin degradation products.
|
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table2>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table4>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN prescriptions ON `<table3>`.hadm_id = prescriptions.hadm_id WHERE `<table3>`.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND prescriptions.drug_type = "BASE" | count the number of patients whose ethnicity is american indian/alaska native and drug type is base? |
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table2>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table3>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table4>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN lab ON `<table3>`.hadm_id = lab.hadm_id WHERE `<table3>`.admission_location = "EMERGENCY ROOM ADMIT" AND lab.itemid = "51131" | how many patients whose admission location is emergency room admit and item id is 51131?
|
<table0>[international_visitors] { <col0>[INT]:[country] <col1>[VARCHAR]:[visit_month] <col2>[DATE]:[INSERT] } | SELECT MAX( MONTH( visit_month ) ) as max_month, COUNT( * ) as max_visitors FROM `<table0>` WHERE country = 'New Zealand' GROUP BY max_month; | What is the maximum number of international visitors to New Zealand in a month? |
<table0>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table1>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table3>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table4>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN prescriptions ON `<table3>`.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "PO" | which patients have po route of drug administration? |
<table0>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table1>[dual_carrier] { <col0>[main_airline]:[varchar] <col1>[low_flight_number]:[int] <col2>[high_flight_number]:[int] <col3>[dual_airline]:[varchar] <col4>[service_name]:[text] } <table2>[airport] { <col0>[airport_code]:[varchar] <col1>[airport_name]:[text] <col2>[airport_location]:[text] <col3>[state_code]:[varchar] <col4>[country_name]:[varchar] <col5>[time_zone_code]:[varchar] <col6>[minimum_connect_time]:[int] } <table3>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } <table4>[flight_fare] { <col0>[flight_id]:[int] <col1>[fare_id]:[int] } <table5>[flight] { <col0>[aircraft_code_sequence]:[text] <col1>[airline_code]:[varchar] } <table6>[state] { <col0>[state_code]:[text] <col1>[state_name]:[text] <col2>[country_name]:[text] } <table7>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table8>[aircraft] { <col0>[aircraft_code]:[varchar] <col1>[aircraft_description]:[varchar] <col2>[manufacturer]:[varchar] <col3>[basic_type]:[varchar] <col4>[engines]:[int] <col5>[propulsion]:[varchar] <col6>[wide_body]:[varchar] <col7>[wing_span]:[int] <col8>[length]:[int] <col9>[weight]:[int] <col10>[capacity]:[int] <col11>[pay_load]:[int] <col12>[cruising_speed]:[int] <col13>[range_miles]:[int] <col14>[pressurized]:[varchar] } <table9>[airport_service] { <col0>[city_code]:[varchar] <col1>[airport_code]:[varchar] <col2>[miles_distant]:[int] <col3>[direction]:[varchar] <col4>[minutes_distant]:[int] } <table10>[flight_stop] { <col0>[flight_id]:[int] <col1>[stop_number]:[int] <col2>[stop_days]:[text] <col3>[stop_airport]:[text] <col4>[arrival_time]:[int] <col5>[arrival_airline]:[text] <col6>[arrival_flight_number]:[int] <col7>[departure_time]:[int] <col8>[departure_airline]:[text] <col9>[departure_flight_number]:[int] <col10>[stop_time]:[int] } <table11>[equipment_sequence] { <col0>[aircraft_code_sequence]:[varchar] <col1>[aircraft_code]:[varchar] } <table12>[month] { <col0>[month_number]:[int] <col1>[month_name]:[text] } <table13>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table14>[restriction] { <col0>[restriction_code]:[text] <col1>[advance_purchase]:[int] <col2>[stopovers]:[text] <col3>[saturday_stay_required]:[text] <col4>[minimum_stay]:[int] <col5>[maximum_stay]:[int] <col6>[application]:[text] <col7>[no_discounts]:[text] } <table15>[fare_basis] { <col0>[fare_basis_code]:[text] <col1>[booking_class]:[text] <col2>[class_type]:[text] <col3>[premium]:[text] <col4>[economy]:[text] <col5>[discounted]:[text] <col6>[night]:[text] <col7>[season]:[text] <col8>[basis_days]:[text] } <table16>[food_service] { <col0>[meal_code]:[text] <col1>[meal_number]:[int] <col2>[compartment]:[text] <col3>[meal_description]:[varchar] } <table17>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table18>[date_day] { <col0>[month_number]:[int] <col1>[day_number]:[int] <col2>[year]:[int] <col3>[day_name]:[varchar] } <table19>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table20>[days] { <col0>[days_code]:[varchar] <col1>[day_name]:[varchar] } <table21>[fare] { <col0>[fare_id]:[int] <col1>[from_airport]:[varchar] <col2>[to_airport]:[varchar] <col3>[fare_basis_code]:[text] <col4>[fare_airline]:[text] <col5>[restriction_code]:[text] <col6>[one_direction_cost]:[int] <col7>[round_trip_cost]:[int] <col8>[round_trip_required]:[varchar] } <table22>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <table23>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table24>[ground_service] { <col0>[city_code]:[text] <col1>[airport_code]:[text] <col2>[transport_type]:[text] <col3>[ground_fare]:[int] } | SELECT DISTINCT flight.flight_id FROM `<table9>` AS AIRPORT_SERVICE_0, `<table9>` 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 = 'LAS VEGAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHOENIX' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code | from LAS VEGAS to PHOENIX |
<table0>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table2>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table3>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table4>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` INNER JOIN prescriptions ON `<table2>`.hadm_id = prescriptions.hadm_id WHERE `<table2>`.admission_location = "CLINIC REFERRAL/PREMATURE" AND prescriptions.drug = "Clindamycin" | provide the number of patients whose admission location is clinic referral/premature and drug name is clindamycin?
|
<table0>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table1>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table2>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table3>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table4>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table5>[PostTypes] { <col0>[number]:[text] } <table6>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table7>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table8>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table9>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } <table10>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table11>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table12>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table13>[VoteTypes] { <col0>[number]:[text] } <table14>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table15>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table16>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table17>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table18>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table19>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table20>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table21>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table22>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table23>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table24>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table25>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table26>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table27>[PostHistoryTypes] { <col0>[number]:[text] } <table28>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } | SELECT 'text' FROM `<table9>` WHERE Id = ( SELECT SuggestedEditId FROM `<table25>` WHERE Id = '##SuggestedEditId##' ) | Get raw text of a suggested edit. |
<table0>[table_19210115_1] { <col0>[location]:[VARCHAR] <col1>[nickname]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Owls" | Where is the University that is also called Owls? |
<table0>[farmers] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[name] <col2>[VARCHAR]:[age] <col3>[INT]:[gender] <col4>[VARCHAR]:[location] <col5>[VARCHAR]:[INSERT] } | SELECT * FROM older_farmers; | Display records from the 'older_farmers' view |
<table0>[table_name_92] { <col0>[rider]:[VARCHAR] <col1>[time]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "+2:11.524" | Which rider has a time of +2:11.524? |
<table0>[table_17999] { <col0>[Season]:[real] <col1>[Season]:[Premiere] <col2>[Date]:[text] <col3>[Season]:[Finale] <col4>[Date]:[text] <col5>[Winner]:[text] <col6>[1st]:[Runner] <col7>[text]:[2nd] <col8>[Runner]:[text] } | SELECT "Season Finale Date" FROM `<table0>` WHERE "Winner" = 'Meiyang Chang' | When is the season finale of meiyang chang? |
<table0>[table_name_56] { <col0>[round]:[INTEGER] <col1>[winning_driver]:[VARCHAR] <col2>[date]:[VARCHAR] } | SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "brendon hartley" AND `<col2>` = "27 april" | Which Round has the Winning Driver of brendon hartley, and a Date of 27 april? |
<table0>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } <table1>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table2>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table3>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table4>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table5>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table6>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table7>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table8>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table9>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table10>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table11>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table12>[PostHistoryTypes] { <col0>[number]:[text] } <table13>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table14>[VoteTypes] { <col0>[number]:[text] } <table15>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table16>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table17>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table18>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table19>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table20>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table21>[PostTypes] { <col0>[number]:[text] } <table22>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table23>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table24>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table25>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table26>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table27>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table28>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } | SELECT DisplayName, UpVotes FROM `<table19>` WHERE `<table19>`.Id = 22656 | Finding the total upvotes for a specific user.
|
<table0>[table_name_59] { <col0>[pick]:[VARCHAR] <col1>[position]:[VARCHAR] <col2>[round]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "ol" AND `<col2>` < 6 | What is Pick, when Position is OL, and when Round is less than 6? |
<table0>[table_203_512] { <col0>[number]:[release] <col1>[date]:[text] <col2>[album]:[text] <col3>[catalog]:[number] <col4>[text]:[chart] <col5>[position]:[number] <col6>[notes]:[text] } | SELECT "album" FROM `<table0>` ORDER BY "release date" DESC LIMIT 1 | what is the title of the last album ? |
<table0>[readers] { <col0>[INT]:[name] <col1>[VARCHAR]:[100] <col2>[age]:[INT] <col3>[country]:[VARCHAR] <col4>[topic]:[VARCHAR] } | SELECT AVG( `<col2>` ) FROM `<table0>` WHERE `<col3>` = 'USA' AND `<col4>` = 'Sports'; | What is the average age of readers who prefer sports news in the US? |
<table0>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table1>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table2>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table3>[PostTypes] { <col0>[number]:[text] } <table4>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table5>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table6>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table7>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table8>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table9>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table10>[PostHistoryTypes] { <col0>[number]:[text] } <table11>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table12>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table13>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table14>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table15>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table16>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table17>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table18>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table19>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table20>[VoteTypes] { <col0>[number]:[text] } <table21>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table22>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table23>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table24>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table25>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table26>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table27>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table28>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } | SELECT * FROM `<table5>` WHERE AboutMe LIKE '%Valued Associate%' OR AboutMe LIKE '%Stack Exchange%' OR WebsiteUrl LIKE '%//stackexchange.com' OR WebsiteUrl LIKE '%//stackexchange.com/' | Moderator History (SO en espa ol).
|
<table0>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } <table1>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table2>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstayid]:[number] <col3>[gender]:[text] <col4>[age]:[text] <col5>[ethnicity]:[text] <col6>[hospitalid]:[number] <col7>[wardid]:[number] <col8>[admissionheight]:[number] <col9>[admissionweight]:[number] <col10>[dischargeweight]:[number] <col11>[hospitaladmittime]:[time] <col12>[hospitaladmitsource]:[text] <col13>[unitadmittime]:[time] <col14>[unitdischargetime]:[time] <col15>[hospitaldischargetime]:[time] <col16>[hospitaldischargestatus]:[text] } <table3>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table4>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } <table5>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>[temperature]:[number] <col3>[sao2]:[number] <col4>[heartrate]:[number] <col5>[respiration]:[number] <col6>[systemicsystolic]:[number] <col7>[systemicdiastolic]:[number] <col8>[systemicmean]:[number] <col9>[observationtime]:[time] } <table6>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table7>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <table8>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table9>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } | SELECT `<table7>`.`<table7>`name FROM `<table7>` WHERE `<table7>`.`<table2>`unitstayid IN ( SELECT `<table2>`.`<table2>`unitstayid FROM `<table2>` WHERE `<table2>`.`<table2>`healthsystemstayid IN ( SELECT `<table2>`.`<table2>`healthsystemstayid FROM `<table2>` WHERE `<table2>`.uniquepid = '005-19985' ) ) AND DATETIME( `<table7>`.`<table7>`time, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-0 year' ) ORDER BY `<table7>`.`<table7>`time LIMIT 1 | what did patient 005-19985 receive for his or her first procedure during this year?
|
<table0>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table1>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <table2>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>[temperature]:[number] <col3>[sao2]:[number] <col4>[heartrate]:[number] <col5>[respiration]:[number] <col6>[systemicsystolic]:[number] <col7>[systemicdiastolic]:[number] <col8>[systemicmean]:[number] <col9>[observationtime]:[time] } <table3>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table4>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table5>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } <table6>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstayid]:[number] <col3>[gender]:[text] <col4>[age]:[text] <col5>[ethnicity]:[text] <col6>[hospitalid]:[number] <col7>[wardid]:[number] <col8>[admissionheight]:[number] <col9>[admissionweight]:[number] <col10>[dischargeweight]:[number] <col11>[hospitaladmittime]:[time] <col12>[hospitaladmitsource]:[text] <col13>[unitadmittime]:[time] <col14>[unitdischargetime]:[time] <col15>[hospitaldischargetime]:[time] <col16>[hospitaldischargestatus]:[text] } <table7>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table8>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table9>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } | SELECT t1.`<table0>`name FROM ( SELECT `<table0>`.`<table0>`name, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM `<table0>` WHERE `<table0>`.`<table6>`unitstayid IN ( SELECT `<table6>`.`<table6>`unitstayid FROM `<table6>` WHERE `<table6>`.age BETWEEN 20 AND 29 ) AND DATETIME( `<table0>`.`<table0>`resulttime, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-0 year' ) GROUP BY `<table0>`.`<table0>`name ) AS t1 WHERE t1.c1 <= 3 | what was the three most often taken lab test this year for patients 20s? |
<table0>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table1>[admissions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[admittime]:[time] <col4>[dischtime]:[time] <col5>[admission_type]:[text] <col6>[admission_location]:[text] <col7>[discharge_location]:[text] <col8>[insurance]:[text] <col9>[language]:[text] <col10>[marital_status]:[text] <col11>[ethnicity]:[text] <col12>[age]:[number] } <table2>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table3>[prescriptions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[startdate]:[time] <col4>[enddate]:[time] <col5>[drug]:[text] <col6>[dose_val_rx]:[text] <col7>[dose_unit_rx]:[text] <col8>[route]:[text] } <table4>[icustays] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[first_careunit]:[text] <col5>[last_careunit]:[text] <col6>[first_wardid]:[number] <col7>[last_wardid]:[number] <col8>[intime]:[time] <col9>[outtime]:[time] } <table5>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table6>[microbiologyevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[charttime]:[time] <col4>[spec_type_desc]:[text] <col5>[org_name]:[text] } <table7>[transfers] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[eventtype]:[text] <col5>[careunit]:[text] <col6>[wardid]:[number] <col7>[intime]:[time] <col8>[outtime]:[time] } <table8>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[itemid]:[number] <col5>[charttime]:[time] <col6>[valuenum]:[number] <col7>[valueuom]:[text] } <table9>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <table10>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table11>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table12>[labevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[itemid]:[number] <col4>[charttime]:[time] <col5>[valuenum]:[number] <col6>[valueuom]:[text] } <table13>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table14>[outputevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] <col6>[value]:[number] } <table15>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table16>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } | 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, `<table10>`.charttime FROM `<table10>` JOIN admissions ON `<table10>`.hadm_id = admissions.hadm_id WHERE `<table10>`.icd9_code = ( SELECT `<table5>`.icd9_code FROM `<table5>` WHERE `<table5>`.short_title = 'mal neo pyloric antrum' ) AND DATETIME( `<table10>`.charttime, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-1 year' ) ) AS t1 JOIN ( SELECT admissions.subject_id, `<table6>`.spec_type_desc, `<table6>`.charttime FROM `<table6>` JOIN admissions ON `<table6>`.hadm_id = admissions.hadm_id WHERE DATETIME( `<table6>`.charttime, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-1 year' ) ) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME( t1.charttime, 'start of month' ) = DATETIME( t2.charttime, 'start of month' ) GROUP BY t2.spec_type_desc ) AS t3 WHERE t3.c1 <= 4 | during the last year, what were the top four most frequent specimen tests given to a patient in the same month after the diagnosis of mal neo pyloric antrum?
|
<table0>[table_1610301_1] { <col0>[headquarters]:[VARCHAR] <col1>[code]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "HY" | Where is the headquarters of the place whose abbreviation is hy? |
<table0>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table2>[PostHistoryTypes] { <col0>[number]:[text] } <table3>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table4>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table5>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table6>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table7>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table8>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table9>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table10>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table11>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table12>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table13>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table14>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table15>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table16>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table17>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table18>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table19>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table20>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table21>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table22>[VoteTypes] { <col0>[number]:[text] } <table23>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } <table24>[PostTypes] { <col0>[number]:[text] } <table25>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table26>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table27>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table28>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } | SELECT PostId AS "post_link", COUNT( RelatedPostId ) AS count FROM `<table12>` WHERE LinkTypeId = 3 GROUP BY PostId ORDER BY COUNT( RelatedPostId ) DESC LIMIT 50 | Most duplicated questions linked to a post.
|
<table0>[shop] { <col0>[Shop_ID]:[int] <col1>[Shop_Name]:[text] <col2>[Location]:[text] <col3>[Open_Date]:[text] <col4>[Open_Year]:[int] } <table1>[device] { <col0>[Device_ID]:[int] <col1>[Device]:[text] <col2>[Carrier]:[text] <col3>[Package_Version]:[text] <col4>[Applications]:[text] <col5>[Software_Platform]:[text] } <table2>[stock] { <col0>[Shop_ID]:[int] <col1>[Device_ID]:[int] <col2>[Quantity]:[int] } | SELECT Location, COUNT( `<col2>` ) FROM `<table0>` GROUP BY `<col2>` ORDER BY COUNT( `<col2>` ) DESC | Create a bar chart showing how many location across location, list Y from high to low order.
|
<table0>[table_name_16] { <col0>[finished]:[VARCHAR] <col1>[exited]:[VARCHAR] <col2>[entered]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "day 19" AND `<col2>` = "day 1" | What position did the celebrity finish that entered on day 1 and exited on day 19?
|
<table0>[exhibition_record] { <col0>[exhibition_id]:[VARCHAR] <col1>[attendance]:[VARCHAR] } <table1>[exhibition] { <col0>[exhibition_id]:[VARCHAR] <col1>[ticket_price]:[VARCHAR] } | SELECT COUNT( * ) FROM `<table0>` AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 100 OR T2.ticket_price < 10 | How many exhibitions have a attendance more than 100 or have a ticket price below 10? |
<table0>[routes] { <col0>[rid]:[number] <col1>[dst_apid]:[number] <col2>[dst_ap]:[text] <col3>[src_apid]:[number] <col4>[src_ap]:[text] <col5>[alid]:[number] <col6>[airline]:[text] <col7>[codeshare]:[text] } <table1>[airports] { <col0>[apid]:[number] <col1>[name]:[text] <col2>[city]:[text] <col3>[country]:[text] <col4>[number]:[number] <col5>[elevation]:[number] <col6>[iata]:[text] <col7>[icao]:[text] } <table2>[airlines] { <col0>[alid]:[number] <col1>[name]:[text] <col2>[iata]:[text] <col3>[icao]:[text] <col4>[callsign]:[text] <col5>[country]:[text] <col6>[active]:[text] } | SELECT country, COUNT( * ) FROM `<table2>` GROUP BY `<col5>` ORDER BY COUNT( * ) DESC | How many airlines operate out of each country in descending order?
|
<table0>[basketball_match] { <col0>[Team_ID]:[int] <col1>[School_ID]:[int] <col2>[Team_Name]:[text] <col3>[ACC_Regular_Season]:[text] <col4>[ACC_Percent]:[text] <col5>[ACC_Home]:[text] <col6>[ACC_Road]:[text] <col7>[All_Games]:[text] <col8>[All_Games_Percent]:[int] <col9>[All_Home]:[text] <col10>[All_Road]:[text] <col11>[All_Neutral]:[text] } <table1>[university] { <col0>[School_ID]:[int] <col1>[School]:[text] <col2>[Location]:[text] <col3>[Founded]:[real] <col4>[Affiliation]:[text] <col5>[Enrollment]:[real] <col6>[Nickname]:[text] <col7>[Primary_conference]:[text] } | SELECT School_ID, `<col4>` FROM `<table0>` GROUP BY `<col10>` | Show school id vs acc_percent as scatter plot use a different color for each All_Road
|
<table0>[table_name_94] { <col0>[outcome]:[VARCHAR] <col1>[partner]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "nicole arendt" | What is the outcome of the match when the partner is Nicole Arendt? |
<table0>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table2>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table4>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } | SELECT AVG( `<table1>`.age ) FROM `<table1>` WHERE `<table1>`.expire_flag = "0" AND `<table1>`.diagnosis = "COPD EXACERBATION" | what is average age of patients whose death status is 0 and primary disease is copd exacerbation?
|
<table0>[Shipments] { <col0>[INT]:[company] <col1>[VARCHAR]:[255] <col2>[quantity]:[INT] <col3>[time]:[DATETIME] } <table1>[Time] { <col0>[INT]:[date] <col1>[DATE]:[quarter] <col2>[INT]:[INSERT] } | SELECT SUM( `<col2>` ) FROM `<table0>` S JOIN Time T ON S.time = T.date WHERE company = 'Oceanic Corp' AND quarter = 1; | What is the total number of containers shipped by company "Oceanic Corp" in the first quarter of 2020? |
<table0>[program_course] { <col0>[program_id]:[int] <col1>[course_id]:[int] <col2>[workload]:[int] <col3>[category]:[varchar] } <table1>[course] { <col0>[course_id]:[int] <col1>[name]:[varchar] <col2>[department]:[varchar] <col3>[number]:[varchar] <col4>[credits]:[varchar] <col5>[advisory_requirement]:[varchar] <col6>[enforced_requirement]:[varchar] <col7>[description]:[varchar] <col8>[num_semesters]:[int] <col9>[num_enrolled]:[int] <col10>[has_discussion]:[varchar] <col11>[has_lab]:[varchar] <col12>[has_projects]:[varchar] <col13>[has_exams]:[varchar] <col14>[num_reviews]:[int] <col15>[clarity_score]:[int] <col16>[easiness_score]:[int] <col17>[helpfulness_score]:[int] } <table2>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table3>[course_prerequisite] { <col0>[pre_course_id]:[int] <col1>[course_id]:[int] } <table4>[course_offering] { <col0>[offering_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[section_number]:[int] <col4>[start_time]:[time] <col5>[end_time]:[time] <col6>[monday]:[varchar] <col7>[tuesday]:[varchar] <col8>[wednesday]:[varchar] <col9>[thursday]:[varchar] <col10>[friday]:[varchar] <col11>[saturday]:[varchar] <col12>[sunday]:[varchar] <col13>[has_final_project]:[varchar] <col14>[has_final_exam]:[varchar] <col15>[textbook]:[varchar] <col16>[class_address]:[varchar] <col17>[allow_audit]:[varchar] } <table5>[comment_instructor] { <col0>[instructor_id]:[int] <col1>[student_id]:[int] <col2>[score]:[int] <col3>[comment_text]:[varchar] } <table6>[offering_instructor] { <col0>[offering_instructor_id]:[int] <col1>[offering_id]:[int] <col2>[instructor_id]:[int] } <table7>[semester] { <col0>[semester_id]:[int] } <table8>[requirement] { <col0>[requirement_id]:[int] } <table9>[student] { <col0>[student_id]:[int] <col1>[lastname]:[varchar] <col2>[firstname]:[varchar] <col3>[program_id]:[int] <col4>[declare_major]:[varchar] <col5>[total_credit]:[int] <col6>[total_gpa]:[float] <col7>[entered_as]:[varchar] <col8>[admit_term]:[int] <col9>[predicted_graduation_semester]:[int] <col10>[degree]:[varchar] <col11>[minor]:[varchar] <col12>[internship]:[varchar] } <table10>[gsi] { <col0>[course_offering_id]:[int] <col1>[student_id]:[int] } <table11>[program] { <col0>[program_id]:[int] <col1>[name]:[varchar] <col2>[college]:[varchar] <col3>[introduction]:[varchar] } <table12>[student_record] { <col0>[student_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[grade]:[varchar] <col4>[varchar]:[transfer_source] <col5>[varchar]:[earn_credit] <col6>[varchar]:[repeat_term] <col7>[varchar]:[test_id] } <table13>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table14>[area] { <col0>[course_id]:[int] } <table15>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table16>[jobs] { <col0>[job_id]:[int] <col1>[job_title]:[varchar] <col2>[description]:[varchar] <col3>[requirement]:[varchar] <col4>[city]:[varchar] <col5>[state]:[varchar] <col6>[country]:[varchar] <col7>[zip]:[int] } <table17>[course_tags_count] { <col0>[course_id]:[int] <col1>[clear_grading]:[int] <col2>[pop_quiz]:[int] <col3>[group_projects]:[int] <col4>[inspirational]:[int] <col5>[long_lectures]:[int] <col6>[extra_credit]:[int] <col7>[few_tests]:[int] <col8>[good_feedback]:[int] <col9>[tough_tests]:[int] <col10>[heavy_papers]:[int] <col11>[cares_for_students]:[int] <col12>[heavy_assignments]:[int] <col13>[respected]:[int] <col14>[participation]:[int] <col15>[heavy_reading]:[int] <col16>[tough_grader]:[int] <col17>[hilarious]:[int] <col18>[would_take_again]:[int] <col19>[good_lecture]:[int] <col20>[no_skip]:[int] } | SELECT DISTINCT `<col1>` FROM `<table2>` WHERE NOT `<col1>` IN ( SELECT INSTRUCTORalias1.name FROM `<table1>` AS COURSEalias0 INNER JOIN `<table1>`_offering AS COURSE_OFFERINGalias0 ON COURSEalias0.`<table1>`_id = COURSE_OFFERINGalias0.`<table1>`_id INNER JOIN offering_`<table2>` AS OFFERING_INSTRUCTOR ON OFFERING_OFFERING_ID = COURSE_OFFERINGalias0.offering_id INNER JOIN `<table2>` AS INSTRUCTORalias1 ON offering_`<table2>`_id = INSTRUCTORalias1.`<table2>`_id WHERE COURSEalias0.department = 'CLIMATE' AND COURSEalias0.number = 380 ) | Who are the professors that have no experience teaching CLIMATE 380 ?
|
<table0>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table1>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table2>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table3>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table4>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } <table5>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table6>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table7>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table8>[VoteTypes] { <col0>[number]:[text] } <table9>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table10>[PostHistoryTypes] { <col0>[number]:[text] } <table11>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table12>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table13>[PostTypes] { <col0>[number]:[text] } <table14>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table15>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table16>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table17>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table18>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table19>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table20>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table21>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table22>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table23>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table24>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table25>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table26>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table27>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table28>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } | SELECT s.userId, u.Id AS "user_link", u.CreationDate, s.questionCount, u.Reputation FROM ( SELECT u.Id AS userId, COUNT( p.Id ) AS questionCount FROM `<table21>` AS u INNER JOIN Posts AS p ON u.Id = p.OwnerUserId WHERE p.PostTypeId = 1 AND p.AcceptedAnswerId IS NULL GROUP BY u.Id ) AS s JOIN `<table21>` AS u ON s.userId = u.Id WHERE ( u.Reputation >= '##MinRep:int##' ) AND ( s.questionCount >= '##minQuestions:int##' ) ORDER BY u.CreationDate DESC LIMIT 500 | New users with some reputation and some unanswered questions. |
<table0>[table_train_181] { <col0>[int]:[systolic_blood_pressure_sbp] <col1>[int]:[fasting_plasma_glucose_fpg] <col2>[float]:[hemoglobin_a1c_hba1c] <col3>[float]:[hepatitis_c] <col4>[bool]:[hepatitis_b] <col5>[bool]:[exposure_to_hiv] <col6>[bool]:[diastolic_blood_pressure_dbp] <col7>[int]:[hypertension] <col8>[bool]:[NOUSE] } | SELECT * FROM `<table0>` WHERE hemoglobin_a1c_hba1c >= 7.5 AND hemoglobin_a1c_hba1c <= 11.5 | have hemoglobin a1c ( hba1c ) 7.5 _ 11.5 percent ( % ) |
<table0>[artist_festivals] { <col0>[artist_id]:[INT] <col1>[festival_name]:[VARCHAR] } | SELECT artist_id, COUNT( DISTINCT `<col1>` ) as festival_count FROM `<table0>` GROUP BY artist_id; | How many times has each artist performed at music festivals? |
<table0>[jobs] { <col0>[JOB_ID]:[varchar] <col1>[JOB_TITLE]:[varchar] <col2>[MIN_SALARY]:[decimal] <col3>[MAX_SALARY]:[decimal] } <table1>[employees] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[FIRST_NAME]:[varchar] <col2>[LAST_NAME]:[varchar] <col3>[EMAIL]:[varchar] <col4>[PHONE_NUMBER]:[varchar] <col5>[HIRE_DATE]:[date] <col6>[JOB_ID]:[varchar] <col7>[SALARY]:[decimal] <col8>[COMMISSION_PCT]:[decimal] <col9>[MANAGER_ID]:[decimal] <col10>[DEPARTMENT_ID]:[decimal] } <table2>[locations] { <col0>[LOCATION_ID]:[decimal] <col1>[STREET_ADDRESS]:[varchar] <col2>[POSTAL_CODE]:[varchar] <col3>[CITY]:[varchar] <col4>[STATE_PROVINCE]:[varchar] <col5>[COUNTRY_ID]:[varchar] } <table3>[job_history] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[START_DATE]:[date] <col2>[END_DATE]:[date] <col3>[JOB_ID]:[varchar] <col4>[DEPARTMENT_ID]:[decimal] } <table4>[countries] { <col0>[COUNTRY_ID]:[varchar] <col1>[COUNTRY_NAME]:[varchar] <col2>[REGION_ID]:[decimal] } <table5>[regions] { <col0>[REGION_ID]:[decimal] <col1>[REGION_NAME]:[varchar] } <table6>[departments] { <col0>[DEPARTMENT_ID]:[decimal] <col1>[DEPARTMENT_NAME]:[varchar] <col2>[MANAGER_ID]:[decimal] <col3>[LOCATION_ID]:[decimal] } | SELECT JOB_ID, SUM( `<col9>` ) FROM `<table1>` WHERE `<col5>` < '2002-06-21' GROUP BY `<col6>` | For those employees who was hired before 2002-06-21, find job_id and the sum of manager_id , and group by attribute job_id, and visualize them by a bar chart.
|
<table0>[table_2668378_5] { <col0>[first_elected]:[VARCHAR] <col1>[district]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Kentucky 3" | Name the number of first elected for kentucky 3
|
<table0>[table_50919] { <col0>[Episode]:[text] <col1>[Air]:[Date] <col2>[text]:[Timeslot] <col3>[text]:[text] <col4>[Viewers]:[real] } | SELECT MAX( "Viewers" ) FROM `<table0>` WHERE "18-49" = '1.8/6' | What is the highest number of viewers for the episode that has an 18-49 of 1.8/6? |
<table0>[CREATE] { <col0>[SCHEMA]:[exists] <col1>[biosensors]:[USE] } <table1>[exists] { <col0>[projects]:[INT] <col1>[name]:[VARCHAR] <col2>[100]:[country] <col3>[VARCHAR]:[100] <col4>[status]:[VARCHAR] <col5>[100]:[INSERT] <col6>[projects]:[name] <col7>[country]:[status] <col8>[VALUES]:[ProjectA] <col9>[USA]:[Completed] <col10>[ProjectB]:[Canada] <col11>[Progress]:[ProjectC] <col12>[Brazil]:[Completed] <col13>[ProjectD]:[China] <col14>[Completed]:[ProjectE] <col15>[Japan]:[Progress] <col16>[ProjectF]:[Australia] <col17>[Completed]:[ProjectG] <col18>[India]:[Progress] <col19>[ProjectH]:[Germany] <col20>[Completed]:[ProjectI] <col21>[France]:[Completed] <col22>[ProjectJ]:[Progress] } | SELECT projects.continent, projects.country, COUNT( * ) FROM biosensors.projects GROUP BY projects.continent, projects.country HAVING status = 'Completed' ORDER BY COUNT( * ) DESC; | Calculate the number of biosensor projects that have been completed in each country, grouped by continent. |
<table0>[hospitals] { <col0>[INT]:[name] <col1>[TEXT]:[city] <col2>[TEXT]:[state] <col3>[TEXT]:[beds] } | SELECT state, COUNT( * ) FROM `<table0>` GROUP BY state; | What is the number of hospitals in each state? |
<table0>[table_19061741_3] { <col0>[name]:[VARCHAR] <col1>[home_or_representative_town_or_province]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Guiguinto, Bulacan" | When guiguinto, bulacan is the home or representative town or province how many names are there? |
<table0>[contractor] { <col0>[INT]:[name] <col1>[TEXT]:[INSERT] } <table1>[vehicle_manufacturing] { <col0>[contractor_id]:[INT] <col1>[manufacture_date]:[DATE] <col2>[quantity]:[INT] } | SELECT SUM( `<col2>` ) FROM `<table1>` WHERE `<col0>` = 1 AND `<col1>` BETWEEN '2022-01-01' AND '2022-03-31'; | Find the number of military vehicles manufactured by contractor 'ACME Corp' in Q1 2022. |
<table0>[food_service] { <col0>[meal_code]:[text] <col1>[meal_number]:[int] <col2>[compartment]:[text] <col3>[meal_description]:[varchar] } <table1>[airport_service] { <col0>[city_code]:[varchar] <col1>[airport_code]:[varchar] <col2>[miles_distant]:[int] <col3>[direction]:[varchar] <col4>[minutes_distant]:[int] } <table2>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table3>[days] { <col0>[days_code]:[varchar] <col1>[day_name]:[varchar] } <table4>[date_day] { <col0>[month_number]:[int] <col1>[day_number]:[int] <col2>[year]:[int] <col3>[day_name]:[varchar] } <table5>[equipment_sequence] { <col0>[aircraft_code_sequence]:[varchar] <col1>[aircraft_code]:[varchar] } <table6>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table7>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <table8>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table9>[flight_fare] { <col0>[flight_id]:[int] <col1>[fare_id]:[int] } <table10>[state] { <col0>[state_code]:[text] <col1>[state_name]:[text] <col2>[country_name]:[text] } <table11>[fare_basis] { <col0>[fare_basis_code]:[text] <col1>[booking_class]:[text] <col2>[class_type]:[text] <col3>[premium]:[text] <col4>[economy]:[text] <col5>[discounted]:[text] <col6>[night]:[text] <col7>[season]:[text] <col8>[basis_days]:[text] } <table12>[restriction] { <col0>[restriction_code]:[text] <col1>[advance_purchase]:[int] <col2>[stopovers]:[text] <col3>[saturday_stay_required]:[text] <col4>[minimum_stay]:[int] <col5>[maximum_stay]:[int] <col6>[application]:[text] <col7>[no_discounts]:[text] } <table13>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table14>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } <table15>[dual_carrier] { <col0>[main_airline]:[varchar] <col1>[low_flight_number]:[int] <col2>[high_flight_number]:[int] <col3>[dual_airline]:[varchar] <col4>[service_name]:[text] } <table16>[ground_service] { <col0>[city_code]:[text] <col1>[airport_code]:[text] <col2>[transport_type]:[text] <col3>[ground_fare]:[int] } <table17>[month] { <col0>[month_number]:[int] <col1>[month_name]:[text] } <table18>[flight] { <col0>[aircraft_code_sequence]:[text] <col1>[airline_code]:[varchar] } <table19>[airport] { <col0>[airport_code]:[varchar] <col1>[airport_name]:[text] <col2>[airport_location]:[text] <col3>[state_code]:[varchar] <col4>[country_name]:[varchar] <col5>[time_zone_code]:[varchar] <col6>[minimum_connect_time]:[int] } <table20>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table21>[fare] { <col0>[fare_id]:[int] <col1>[from_airport]:[varchar] <col2>[to_airport]:[varchar] <col3>[fare_basis_code]:[text] <col4>[fare_airline]:[text] <col5>[restriction_code]:[text] <col6>[one_direction_cost]:[int] <col7>[round_trip_cost]:[int] <col8>[round_trip_required]:[varchar] } <table22>[aircraft] { <col0>[aircraft_code]:[varchar] <col1>[aircraft_description]:[varchar] <col2>[manufacturer]:[varchar] <col3>[basic_type]:[varchar] <col4>[engines]:[int] <col5>[propulsion]:[varchar] <col6>[wide_body]:[varchar] <col7>[wing_span]:[int] <col8>[length]:[int] <col9>[weight]:[int] <col10>[capacity]:[int] <col11>[pay_load]:[int] <col12>[cruising_speed]:[int] <col13>[range_miles]:[int] <col14>[pressurized]:[varchar] } <table23>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table24>[flight_stop] { <col0>[flight_id]:[int] <col1>[stop_number]:[int] <col2>[stop_days]:[text] <col3>[stop_airport]:[text] <col4>[arrival_time]:[int] <col5>[arrival_airline]:[text] <col6>[arrival_flight_number]:[int] <col7>[departure_time]:[int] <col8>[departure_airline]:[text] <col9>[departure_flight_number]:[int] <col10>[stop_time]:[int] } | SELECT DISTINCT flight.flight_id FROM `<table1>` AS AIRPORT_SERVICE_0, `<table1>` 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code | i want to fly from BOSTON to DALLAS
|