schema stringlengths 20 14.6k | query stringlengths 17 2.58k | question stringlengths 8 1.06k |
|---|---|---|
<table0>[table_203_608] { <col0>[number]:[rank] <col1>[number]:[nation] <col2>[text]:[gold] <col3>[number]:[silver] <col4>[number]:[bronze] <col5>[number]:[total] } | SELECT "nation" FROM `<table0>` ORDER BY "total" DESC LIMIT 1 | which nation heard the most total medals ? |
<table0>[Donors] { <col0>[DonorID]:[INT] <col1>[DonorName]:[VARCHAR] } <table1>[Donations] { <col0>[DonationID]:[INT] <col1>[DonorID]:[INT] <col2>[DonationAmount]:[DECIMAL] <col3>[DonationDate]:[DATE] } | SELECT DonorID, DonorName, AVG( DonationAmount ) AS AvgDonation, RANK( ) OVER ( ORDER BY AVG( DonationAmount ) DESC ) AS DonorRank FROM `<table0>` JOIN Donations ON `<table0>`.DonorID = Donations.DonorID WHERE DonationDate >= DATEADD( MONTH, -6, CURRENT_DATE ) GROUP BY DonorID, DonorName; | What is the average donation amount for each donor in the last 6 months, and which donor has the highest average donation amount in this period? |
<table0>[table_name_14] { <col0>[births__000s]:[INTEGER] <col1>[total_fertility_rate]:[VARCHAR] <col2>[natural_growth]:[VARCHAR] } | SELECT AVG( births__000s_ ) FROM `<table0>` WHERE `<col1>` = "na" AND `<col2>` < 2.5 | What is the average birth rate that has a total fertility rate of na, and a natural growth smaller than 2.5?
|
<table0>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table1>[labevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[itemid]:[number] <col4>[charttime]:[time] <col5>[valuenum]... | SELECT COUNT( * ) > 0 FROM `<table1>` WHERE `<table1>`.hadm_id IN ( SELECT `<table6>`.hadm_id FROM `<table6>` WHERE `<table6>`.subject_id = 1417 AND NOT `<table6>`.dischtime IS NULL ORDER BY `<table6>`.admittime LIMIT 1 ) | had patient 1417 undergone any lab tests in the first hospital visit? |
<table0>[table_name_53] { <col0>[decision]:[VARCHAR] <col1>[record]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "45–18–6" | What was the decision of the Red Wings game when they had a record of 45–18–6? |
<table0>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table1>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <... | SELECT Score, COUNT( Score ) AS Number FROM `<table26>` WHERE PostTypeId = 1 AND Tags LIKE '<##Tag##>' GROUP BY Score ORDER BY Score | Questions with a certain tag by score. |
<table0>[table_name_48] { <col0>[boarded]:[VARCHAR] <col1>[class]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "first" | Who boarded first class? |
<table0>[table_name_96] { <col0>[years_in_orlando]:[VARCHAR] <col1>[school_club_team]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "kentucky" | Which Years in Orlando has a School/Club Team of kentucky? |
<table0>[table_name_35] { <col0>[d_46]:[VARCHAR] <col1>[d_44]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "r 17" | I want the D 46 which has a D 44 of r 17 |
<table0>[digital_divide] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[problem] <col2>[VARCHAR]:[description] <col3>[TEXT]:[INSERT] } | UPDATE digital_divide SET description = 'Addressing the digital divide in rural areas' WHERE id = 2; | Update the 'description' of the record with an id of 2 in the 'digital_divide' table to 'Addressing the digital divide in rural areas' |
<table0>[table_name_20] { <col0>[attendance]:[VARCHAR] <col1>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "88-98" | What was the attendance when the score was 88-98?
|
<table0>[veteran_unemployment] { <col0>[state]:[TEXT] <col1>[year]:[INT] <col2>[rate]:[FLOAT] } | SELECT state, AVG( `<col2>` ) FROM `<table0>` WHERE `<col1>` = YEAR( CURRENT_DATE ) GROUP BY state; | Get the average veteran unemployment rate by state for the current year |
<table0>[table_60274] { <col0>[Model]:[text] <col1>[Year]:[text] <col2>[Type]:[text] <col3>[Engine]:[text] <col4>[Displacement]:[text] } | SELECT "Year" FROM `<table0>` WHERE "Type" = 'grand prix' AND "Engine" = 'i8' AND "Displacement cc" = '1500' | What year was the Grand Prix with an i8 engine and a cc displacement of 1500?
|
<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 T2.Name, T1.Manufacturer FROM `<table0>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name | For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of manufacturer , and group by attribute name, list X-axis in ascending order.
|
<table0>[table_204_994] { <col0>[number]:[date] <col1>[text]:[time] <col2>[text]:[opponent] <col3>[text]:[rank] <col4>[text]:[site] <col5>[text]:[text] <col6>[result]:[text] <col7>[attendance]:[number] } | SELECT COUNT( * ) FROM `<table0>` WHERE "tv" = 'cbs' | how many games during this season were aired on cbs ? |
<table0>[program_donations] { <col0>[program_id]:[INT] <col1>[donation_amount]:[DECIMAL] } | SELECT program_id, SUM( `<col1>` ) FROM `<table0>` WHERE `<col0>` IN ( SELECT id FROM programs WHERE name = 'Education & Outreach' ) GROUP BY program_id; | Calculate the total donation amount for each program in 'Education & Outreach' |
<table0>[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] } <table1>[class_of_service] { <col0>[booking_class]:[varchar] <col1>... | SELECT DISTINCT flight.flight_id FROM `<table2>` AS AIRPORT_SERVICE_0, `<table2>` 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 = 'PHOENIX' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MILWAUKEE' AND f... | flights from PHOENIX to MILWAUKEE
|
<table0>[table_2233872_1] { <col0>[season]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE gf = 244 | What was the season where the team reached a GP of 244? |
<table0>[table_204_324] { <col0>[number]:[team] <col1>[text]:[agg] <col2>[text]:[team] <col3>[text]:[1st] <col4>[leg]:[text] <col5>[2nd]:[leg] } | SELECT "agg." + "agg." FROM `<table0>` WHERE "team 1" = 'somalia' AND "team 2" = 'sudan' | what was the total score for the 1st and 2nd legs of the somalia vs sudan game . |
<table0>[table_50930] { <col0>[Place]:[text] <col1>[Player]:[text] <col2>[Country]:[text] <col3>[Score]:[text] <col4>[par]:[text] <col5>[Money]:[text] } | SELECT "Player" FROM `<table0>` WHERE "Place" = 't9' AND "Country" = 'australia' | Which player is from Australia, and has a place of t9?
|
<table0>[table_29002641_1] { <col0>[into_service]:[VARCHAR] <col1>[number]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "DH2" | Name the into service for dh2
|
<table0>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table1>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5... | SELECT t3.`<table6>`name FROM ( SELECT t2.`<table6>`name, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT patient.uniquepid, `<table8>`.`<table8>`time, patient.patienthealthsystemstayid FROM `<table8>` JOIN patient ON `<table8>`.patientunitstayid = patient.patientunitstayid WHERE `<table8>`.`<table8... | list the top four most frequent diagnoses of patients who were diagnosed in the same hospital encounter after receiving antiplatelet agents since 2104.
|
<table0>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table1>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table2>[icustays] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[nu... | SELECT DISTINCT `<table10>`.`<table10>` FROM `<table10>` WHERE `<table10>`.event_type = '`<table6>`' AND `<table10>`.event_id IN ( SELECT `<table6>`.row_id FROM `<table6>` WHERE `<table6>`.itemid IN ( SELECT `<table1>`.itemid FROM `<table1>` WHERE `<table1>`.label = '24 hr creatinine' ) ) | how much does a 24 hr creatinine lab test cost? |
<table0>[PersonFriend] { <col0>[name]:[varchar] <col1>[friend]:[varchar] <col2>[year]:[INTEGER] } <table1>[Person] { <col0>[name]:[varchar] <col1>[age]:[INTEGER] <col2>[city]:[TEXT] <col3>[gender]:[TEXT] <col4>[job]:[TEXT] } | SELECT job, AVG( `<col1>` ) FROM `<table1>` WHERE `<col3>` = 'male' GROUP BY `<col4>` | What is average age of male for different job title. Visualize by bar chart.
|
<table0>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table1>[program] { <col0>[program_id]:[int] <col1>[name]:[varchar] <col2>[college]:[varchar] <col3>[introduction]:[varchar] } <table2>[jobs] { <col0>[job_id]:[int] <col1>[job_title]:[varchar] <col2>[description]:[v... | 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 ( 'FA', 'WN' ) AND semester.semester_id = course_... | For the Fall or Winter term , are there any 100 -level classes ?
|
<table0>[table_name_57] { <col0>[record]:[VARCHAR] <col1>[week]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "12" | What was week 12's record?
|
<table0>[table_train_164] { <col0>[int]:[hemoglobin_a1c_hba1c] <col1>[float]:[diabetic] <col2>[string]:[fasting_plasma_glucose] <col3>[int]:[age] <col4>[float]:[NOUSE] } | SELECT * FROM `<table0>` WHERE diabetic = 'ii' | must have type ii diabetes
|
<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>... | SELECT COUNT( DISTINCT `<table0>`.subject_id ) FROM `<table0>` INNER JOIN procedures ON `<table0>`.hadm_id = procedures.hadm_id WHERE `<table0>`.age < "70" AND procedures.icd9_code = "3532" | how many patients are below 70 years of age and with procedure code 3532?
|
<table0>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table1>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[tim... | SELECT t1.`<table5>`name FROM ( SELECT `<table5>`.`<table5>`name, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM `<table5>` WHERE STRFTIME( '%y', `<table5>`.`<table5>`time ) = '2100' GROUP BY `<table5>`.`<table5>`name ) AS t1 WHERE t1.c1 <= 4 | tell me what are the top four most common procedures in 2100? |
<table0>[table_49434] { <col0>[Player]:[text] <col1>[Qual]:[text] <col2>[Baku]:[text] <col3>[Sochi]:[text] <col4>[Elista]:[text] <col5>[Nalchik]:[text] <col6>[Jermuk]:[text] <col7>[Astrakhan]:[text] <col8>[Played]:[real] } | SELECT "Elista" FROM `<table0>` WHERE "Played" = '1' AND "Baku" = '153⅓' | What is the elista with 1 played and 153 baku?
|
<table0>[mlb] { <col0>[team]:[VARCHAR] <col1>[255]:[game_id] <col2>[INT]:[home_attendance] <col3>[INT]:[INSERT] } | SELECT team, SUM( home_attendance ) FROM `<table0>` GROUP BY team; | What is the number of fans attending each team's home games in the 2020 MLB season? |
<table0>[table_test_3] { <col0>[int]:[gender] <col1>[string]:[pregnancy_or_lactation] <col2>[bool]:[severe_hemodynamic_instability] <col3>[bool]:[consent] <col4>[bool]:[hemoglobin_a1c_hba1c] <col5>[float]:[metallic_implants] <col6>[bool]:[allergy_to_aspirin] <col7>[bool]:[creatinine_clearance_cl] <col8>[float]:[post_me... | SELECT * FROM `<table0>` WHERE contraindication_for_nmr = 1 OR ( creatinine_clearance_cl < 30 OR metallic_implants = 1 OR claustrophobia = 1 ) | contraindication for nmr ( creatinin clearance < 30 ml / min / 1.73 m2, metallic implants or claustrophobia ) .
|
<table0>[ResidentialWaterUse] { <col0>[INT]:[household_id] <col1>[INT]:[water_consumption] } | SELECT AVG( water_consumption ) FROM ResidentialWaterUse; | What is the average water consumption per household in 'ResidentialWaterUse' table? |
<table0>[gymnast] { <col0>[Total_Points]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` ORDER BY `<col0>` DESC | List the total points of gymnasts in descending order.
|
<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>[... | SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN diagnoses ON `<table1>`.hadm_id = diagnoses.hadm_id WHERE `<table1>`.gender = "M" AND diagnoses.short_title = "Opioid dependence-contin" | what is the number of patients whose gender is m and diagnoses short title is opioid dependence-contin? |
<table0>[STUDENT] { <col0>[STU_NUM]:[int] <col1>[STU_LNAME]:[varchar] <col2>[STU_FNAME]:[varchar] <col3>[STU_INIT]:[varchar] <col4>[STU_DOB]:[datetime] <col5>[STU_HRS]:[int] <col6>[STU_CLASS]:[varchar] <col7>[STU_GPA]:[float] <col8>[STU_TRANSFER]:[numeric] <col9>[DEPT_CODE]:[varchar] <col10>[STU_PHONE]:[varchar] <col11... | SELECT EMP_FNAME, COUNT( EMP_FNAME ) FROM `<table2>` AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE JOIN PROFESSOR AS T4 ON T2.EMP_NUM = T4.EMP_NUM GROUP BY EMP_FNAME ORDER BY COUNT( EMP_FNAME ) | Show the number of courses for each instructor in a bar chart, could you sort total number from low to high order please?
|
<table0>[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] } <table1>[basketball_match] { <col0>[Team_ID]:[int] <col1>[School_ID]:[int] <col2>[Team_Nam... | SELECT All_Home, `<col1>` FROM `<table1>` GROUP BY ACC_Road, `<col9>` ORDER BY `<col1>` | Visualize a bar chart about the distribution of All_Home and School_ID , and group by attribute ACC_Road, order in asc by the y axis.
|
<table0>[songs] { <col0>[song_id]:[INT] <col1>[genre]:[VARCHAR] <col2>[release_year]:[INT] <col3>[streams]:[INT] } | SELECT COUNT( * ) FROM `<table0>` WHERE `<col1>` = 'classical' AND `<col2>` = 2020 AND `<col3>` > 6000; | How many classical songs were released in 2020 that have more than 6000 streams? |
<table0>[table_name_80] { <col0>[loco_nos]:[VARCHAR] <col1>[class]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "e3" | What is the Loco Nos of the e3 class? |
<table0>[table_name_95] { <col0>[goals_for]:[INTEGER] <col1>[played]:[INTEGER] } | SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` < 34 | Which lowest goals for number had a played number of less than 34? |
<table0>[table_69552] { <col0>[Year]:[real] <col1>[Men]:[singles] <col2>[text]:[Women] <col3>[singles]:[text] <col4>[Men]:[doubles] <col5>[text]:[Women] <col6>[doubles]:[text] <col7>[Mixed]:[doubles] } | SELECT "Year" FROM `<table0>` WHERE "Women's doubles" = 'helle nielsen marie røpke' | What year did helle nielsen marie r pke play womens' doubles? |
<table0>[table_75089] { <col0>[Game]:[real] <col1>[January]:[real] <col2>[Opponent]:[text] <col3>[Score]:[text] <col4>[Record]:[text] <col5>[Points]:[real] } | SELECT SUM( "January" ) FROM `<table0>` WHERE "Record" = '26–12–6' AND "Points" < '58' | How much January has a Record of 26 12 6, and Points smaller than 58? |
<table0>[table_name_22] { <col0>[to_par]:[VARCHAR] <col1>[player]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "dave rummells" | What is Dave Rummells's to par? |
<table0>[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] } <table1>[basketball_match] { <col0>[Team_ID]:[int] <col1>[School_ID]:[int] <col2>[Team_Nam... | SELECT Team_Name, `<col0>` FROM `<table1>` ORDER BY `<col0>` DESC | Show me about the distribution of Team_Name and Team_ID in a bar chart, could you show by the y-axis from high to low?
|
<table0>[player] { <col0>[INTEGER]:[pID] } <table1>[tryout] { <col0>[pPos]:[VARCHAR] <col1>[pID]:[VARCHAR] } | SELECT MIN( T2.HS ), T1.pPos FROM `<table1>` AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos | What is minimum hours of the students playing in different position? |
<table0>[table_28963] { <col0>[Detailed]:[Family] <col1>[Information]:[text] <col2>[real]:[real] <col3>[Anchor]:[real] <col4>[Orientation]:[text] <col5>[Conserved]:[Mus] <col6>[Musculus]:[text] <col7>[Matrix]:[Sim] <col8>[text]:[Sequence] <col9>[text]:[Occurrence] } | SELECT COUNT( "Detailed Family Information" ) FROM `<table0>` WHERE "Sequence" = 'aAGTAct' | What is the detailed family information where the sequence is aagtact?
|
<table0>[table_name_65] { <col0>[home_team]:[VARCHAR] } | SELECT `<col0>` AS score FROM `<table0>` WHERE `<col0>` = "footscray" | What did the home team footscray score?
|
<table0>[diagnoses] { <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>[lab... | SELECT `<table3>`.days_stay, `<table3>`.admittime FROM `<table3>` WHERE `<table3>`.subject_id = "52012" | what is days of hospital stay and admission time of subject id 52012? |
<table0>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table1>[admissions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[admittime]:[time] <col4>[dischtime]:[time] <col5>[admission_type]:[text] <col... | SELECT `<table6>`.short_title FROM `<table6>` WHERE `<table6>`.icd9_code IN ( SELECT t3.icd9_code FROM ( SELECT t2.icd9_code, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT admissions.subject_id, `<table11>`.charttime FROM `<table11>` JOIN admissions ON `<table11>`.hadm_id = admissions.hadm_id WHER... | what were the three most common diagnoses for patients who had been previously diagnosed with acute respiratry failure within 2 months, during a year before?
|
<table0>[table_name_53] { <col0>[video]:[VARCHAR] <col1>[psip_short_name]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "rt" | Which Video has a PSIP Short Name of rt? |
<table0>[table_name_50] { <col0>[margin]:[VARCHAR] <col1>[country]:[VARCHAR] <col2>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "united states" AND `<col2>` = 63 - 70 - 65 - 69 = 267 | Which Margin has a Country of united states, and a Score of 63-70-65-69=267? |
<table0>[table_48424] { <col0>[Season]:[text] <col1>[Skip]:[text] <col2>[text]:[Second] <col3>[text]:[Lead] <col4>[text]:[Alternate] <col5>[text]:[Events] } | SELECT "Lead" FROM `<table0>` WHERE "Season" = '2007-08' | Which lead had a season of 2007-08?
|
<table0>[table_203_630] { <col0>[number]:[rank] <col1>[number]:[nation] <col2>[text]:[gold] <col3>[number]:[silver] <col4>[number]:[bronze] <col5>[number]:[total] } | SELECT "gold" FROM `<table0>` WHERE "nation" = 'germany' | how many gold medals did germany earn ?
|
<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>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:... | SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` INNER JOIN prescriptions ON `<table2>`.hadm_id = prescriptions.hadm_id WHERE `<table2>`.gender = "M" AND prescriptions.drug = "Rosiglitazone Maleate" | what is the number of patients whose gender is m and drug name is rosiglitazone maleate? |
<table0>[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] } <table1>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[eve... | SELECT STRFTIME( '%j', `<table13>`.dischtime ) - STRFTIME( '%j', `<table13>`.admittime ) FROM `<table13>` WHERE `<table13>`.subject_id = 30789 AND NOT `<table13>`.dischtime IS NULL ORDER BY `<table13>`.admittime DESC LIMIT 1 | what was the length of stay in patient 30789's last hospital stay?
|
<table0>[table_26362472_1] { <col0>[left_office]:[VARCHAR] <col1>[election_number]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 11 | What is the date in which a politician who left office on 1840-10-11 for a politician whose election number was 11? |
<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>... | SELECT COUNT( DISTINCT `<table0>`.subject_id ) FROM `<table0>` WHERE `<table0>`.diagnosis = "ATRIAL SEPTAL DEFECT\MITRAL VALVE REPLACEMENT;REPAIR ATRIAL-SEPTAL DEFECT/SDA" AND `<table0>`.admityear < "2145" | count the number of patients whose primary disease is atrial septal defect\mitral valve replacement;repair atrial-septal defect/sda and admission year is less than 2145? |
<table0>[table_name_51] { <col0>[tv_time]:[VARCHAR] <col1>[date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "december 27, 2003" | What is the TV Time of the game on December 27, 2003? |
<table0>[table_203_551] { <col0>[number]:[goal] <col1>[number]:[date] <col2>[text]:[venue] <col3>[text]:[opponent] <col4>[text]:[score] <col5>[text]:[result] <col6>[text]:[competition] } | SELECT "date" FROM `<table0>` ORDER BY "date" LIMIT 1 | when did d m szalai make his first international goal ?
|
<table0>[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>[observationti... | SELECT `<table8>`.`<table8>`time FROM `<table8>` WHERE `<table8>`.`<table7>`unitstayid IN ( SELECT `<table7>`.`<table7>`unitstayid FROM `<table7>` WHERE `<table7>`.`<table7>`healthsystemstayid IN ( SELECT `<table7>`.`<table7>`healthsystemstayid FROM `<table7>` WHERE `<table7>`.uniquepid = '027-203413' AND `<table7>`.ho... | what was patient 027-203413 first diagnosis time of atrial fibrillation - with hemodynamic compromise on the current hospital visit. |
<table0>[fires] { <col0>[fire_year]:[number] <col1>[discovery_date]:[number] <col2>[discovery_doy]:[number] <col3>[discovery_time]:[text] <col4>[stat_cause_code]:[number] <col5>[stat_cause_descr]:[text] <col6>[cont_date]:[text] <col7>[cont_doy]:[text] <col8>[cont_time]:[text] <col9>[fire_size]:[number] <col10>[fire_siz... | SELECT COUNT( * ) FROM `<table0>` WHERE `<col0>` = 2010 AND `<col5>` LIKE "%Arson%" | How many arson-related fires were there in 2010? |
<table0>[waste_generation] { <col0>[city]:[VARCHAR] <col1>[year]:[INT] } | SELECT AVG( daily_`<table0>` ) FROM `<table0>` WHERE `<col0>` = 'San Francisco' AND `<col1>` = 2020; | Calculate the average daily waste generation rate for the city of San Francisco in the year 2020 |
<table0>[table_name_99] { <col0>[final_score]:[VARCHAR] <col1>[date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "december 30" | What was the final score for the date of December 30?
|
<table0>[table_53588] { <col0>[Week]:[real] <col1>[Date]:[text] <col2>[Opponent]:[text] <col3>[Result]:[text] <col4>[Game]:[site] <col5>[text]:[Attendance] } | SELECT "Result" FROM `<table0>` WHERE "Game site" = 'texas stadium' AND "Attendance" > '46,267' AND "Opponent" = 'pittsburgh steelers' | What was the result of the game played in texas stadium with more than 46,267 in the crowd and against the pittsburgh steelers?
|
<table0>[ports_cargo_region] { <col0>[port_id]:[INT] <col1>[port_name]:[TEXT] <col2>[region]:[TEXT] <col3>[cargo_quantity]:[INT] } | SELECT `<table0>`.region, SUM( `<table0>`.cargo_quantity ) FROM `<table0>` WHERE `<table0>`.region != 'Asia' GROUP BY `<table0>`.region; | What is the total quantity of cargo handled by ports in each region, excluding the Asian region? |
<table0>[table_name_40] { <col0>[year_of_release]:[INTEGER] <col1>[label]:[VARCHAR] } | SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "mca" | What was the last year MCA had a Release?
|
<table0>[deep_sea_trenches] { <col0>[name]:[VARCHAR] <col1>[255]:[region] <col2>[VARCHAR]:[255] <col3>[depth]:[FLOAT] } | SELECT MAX( `<col3>` ) FROM `<table0>` WHERE region = 'Pacific Ocean'; | What is the maximum depth of all deep-sea trenches in the Pacific Ocean? |
<table0>[table_73616] { <col0>[World]:[record] <col1>[text]:[Denis] <col2>[Nizhegorodov]:[RUS] <col3>[text]:[text] <col4>[Cheboksary]:[Russia] <col5>[text]:[2008] } | SELECT "Cheboksary , Russia" FROM `<table0>` WHERE "3:34:14" = '3:41:20' | When 3:41:20 is 3:34:14 what is cheboksary , russia?
|
<table0>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <table1>[admissions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[admittime]:[time] <col4>[disc... | SELECT `<table1>`.admittime FROM `<table1>` WHERE `<table1>`.subject_id = 17694 AND `<table1>`.admission_location = 'transfer from hosp/extram' AND DATETIME( `<table1>`.admittime ) >= DATETIME( CURRENT_TIME( ), '-3 year' ) ORDER BY `<table1>`.admittime DESC LIMIT 1 | when was the last hospital admission that patient 17694 was admitted since 3 years ago via the transfer from hosp/extram? |
<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>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[te... | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN procedures ON `<table3>`.hadm_id = procedures.hadm_id WHERE `<table3>`.insurance = "Medicaid" AND procedures.long_title = "Hemodialysis" | how many patients whose insurance is medicaid and procedure long title is hemodialysis? |
<table0>[teacher_pd] { <col0>[teacher_id]:[INT] <col1>[course_id]:[INT] <col2>[course_date]:[DATE] } | SELECT teacher_id, COUNT( `<col1>` ) as num_courses FROM `<table0>` WHERE `<col2>` >= DATEADD( year, -1, GETDATE( ) ) GROUP BY `<col0>` ORDER BY num_courses DESC; | What is the number of professional development courses each teacher completed in the last year, ordered by the number of courses completed? |
<table0>[table_42280] { <col0>[Year]:[real] <col1>[Chassis]:[text] <col2>[Engine]:[text] <col3>[Start]:[text] <col4>[Finish]:[real] <col5>[Team]:[text] } | SELECT "Chassis" FROM `<table0>` WHERE "Engine" = 'honda' AND "Year" = '2008' | What is the chassis of the Honda Engine from 2008?
|
<table0>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <table1>[aircraft] { <col0>[aircraft_code]:[varchar] <col1>[aircraft_description]:[varchar] <col2>[manufacturer]:[varchar] <col3>[basic_type]:[varchar] <col4>[engines]:[int] <col5>[propulsion]:[varchar] <col6>[wide_bod... | SELECT DISTINCT flight.flight_id FROM `<table15>` AS AIRPORT_SERVICE_0, `<table15>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ( ( ( flight.departure_time BETWEEN 1200 AND 1800 ) AND date_day.day_number = 7 AND date_day.month_number = 7 AND date_day.year = 1991 AND days.day_name ... | i need a flight from DENVER to PITTSBURGH on 7 7 that leaves in the afternoon |
<table0>[table_name_10] { <col0>[finish]:[VARCHAR] <col1>[start]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "13" | What was 13's finish? |
<table0>[Manufacturers] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Headquarter]:[VARCHAR] <col3>[255]:[Founder] <col4>[VARCHAR]:[255] <col5>[Revenue]:[REAL] } <table1>[Products] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Price]:[DECIMAL] <col3>[Manufacturer]:[INTEGER] } | SELECT Name, `<col3>` FROM `<table1>` WHERE `<col2>` BETWEEN 60 AND 120 | For those products with a price between 60 and 120, a pie chart shows the proportion of name and manufacturer.
|
<table0>[table_60189] { <col0>[Election]:[text] <col1>[member]:[text] <col2>[1st]:[Party] <col3>[text]:[Second] <col4>[member]:[text] <col5>[2nd]:[Party] } | SELECT "Election" FROM `<table0>` WHERE "2nd Party" = 'constituency abolished' | What is Election, when 2nd Party is 'Constituency Abolished'? |
<table0>[table_name_63] { <col0>[region]:[VARCHAR] <col1>[districts]:[VARCHAR] <col2>[capital]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 3 AND `<col2>` = "chepén" | What is the region for Chep n with 3 districts? |
<table0>[population] { <col0>[person_id]:[INT] <col1>[age]:[INT] } <table1>[covid_vaccinations] { <col0>[vaccination_id]:[INT] <col1>[person_id]:[INT] <col2>[vaccination_date]:[DATE] } | SELECT ag.age, COUNT( DISTINCT p.person_id ) * 100.0 / ( SELECT COUNT( DISTINCT p.person_id ) FROM `<table0>` p ) AS percentage FROM `<table0>` p JOIN covid_vaccinations cv ON p.person_id = cv.person_id JOIN age_groups ag ON p.age = ag.age_group_id GROUP BY ag.age; | What is the percentage of the population that has received the COVID-19 vaccine by age group? |
<table0>[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] } <table1>[admissions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[admittime]:[... | SELECT `<table15>`.label FROM `<table15>` WHERE `<table15>`.itemid IN ( SELECT `<table11>`.itemid FROM `<table11>` WHERE `<table11>`.icustay_id IN ( SELECT `<table10>`.icustay_id FROM `<table10>` WHERE `<table10>`.hadm_id IN ( SELECT `<table1>`.hadm_id FROM `<table1>` WHERE `<table1>`.subject_id = 51177 ) ) AND STRFTIM... | what was the name of the output the last time patient 51177 had since 08/01/2101?
|
<table0>[Farmers] { <col0>[farmer_id]:[INT] <col1>[state]:[VARCHAR] <col2>[sales]:[FLOAT] } | SELECT SUM( `<col2>` ) FROM `<table0>` WHERE `<col1>` IN ( 'California', 'Texas' ) | List the total sales for farmers in California and Texas. |
<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>[Students] { <col0>[student_id]:[INTEGER] <col1>[date_of_registration]:[DATETIME] <col2>[date_of_latest_logon]:[DATETIM... | SELECT date_test_taken, COUNT( `<col1>` ) FROM `<table3>` WHERE `<col2>` = "Pass" GROUP BY `<col1>` ORDER BY `<col1>` | Find the number of the dates of the tests taken with result 'Pass', sort by the names in asc please. |
<table0>[table_name_76] { <col0>[avg]:[VARCHAR] <col1>[player]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "domenik hixon" | What is Domenik Hixon's average rush?
|
<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>[... | SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN prescriptions ON `<table1>`.hadm_id = prescriptions.hadm_id WHERE `<table1>`.admission_type = "URGENT" AND prescriptions.drug_type = "ADDITIVE" | provide the number of patients whose admission type is urgent and drug type is additive?
|
<table0>[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>[observationti... | SELECT 1 * ( STRFTIME( '%j', CURRENT_TIME( ) ) - STRFTIME( '%j', `<table5>`.`<table5>`time ) ) FROM `<table5>` WHERE `<table5>`.`<table2>`unitstayid IN ( SELECT `<table2>`.`<table2>`unitstayid FROM `<table2>` WHERE `<table2>`.`<table2>`healthsystemstayid IN ( SELECT `<table2>`.`<table2>`healthsystemstayid FROM `<table2... | what is the number of days that have passed since the last time patient 007-15837 received a tube flush/meds intake on the current icu visit? |
<table0>[trams] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[delay] <col2>[INT]:[delay_time] } | SELECT HOUR( delay_time ) AS delay_hour, AVG( delay ) AS avg_delay FROM `<table0>` WHERE delay_time >= '2021-07-01 00:00:00' AND delay_time < '2022-01-01 00:00:00' GROUP BY delay_hour; | Display the hourly breakdown of tram delays for the second half of 2021 |
<table0>[table_2102945_1] { <col0>[episode]:[VARCHAR] <col1>[viewers__in_millions]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE viewers__in_millions_ = "7.4" | When there are 7.4 million viewers how many episodes are there?
|
<table0>[Employees] { <col0>[EmployeeID]:[INT] <col1>[FirstName]:[VARCHAR] <col2>[LastName]:[VARCHAR] <col3>[Department]:[VARCHAR] <col4>[Salary]:[DECIMAL] } | SELECT Department, AVG( `<col4>` ) as 'AvgSalary', COUNT( * ) as 'EmployeeCount' FROM `<table0>` GROUP BY Department; | What is the average salary for each department, along with the number of employees in that department? |
<table0>[person] { <col0>[name]:[text] <col1>[age]:[number] <col2>[city]:[text] <col3>[gender]:[text] <col4>[job]:[text] } <table1>[personfriend] { <col0>[name]:[text] <col1>[friend]:[text] <col2>[year]:[number] } | SELECT `<col1>` FROM `<table0>` WHERE `<col4>` = 'doctor' AND `<col0>` = 'Zach' | What is the age of the doctor named Zach?
|
<table0>[table_203_654] { <col0>[number]:[position] <col1>[number]:[team] <col2>[text]:[points] <col3>[number]:[played] <col4>[number]:[won] <col5>[number]:[drawn] <col6>[number]:[lost] <col7>[number]:[number] <col8>[number]:[difference] } | SELECT COUNT( "team" ) FROM `<table0>` WHERE "points" > 10 | in 1926 brazilian football , how many teams scored above 10 points in the season ?
|
<table0>[table_name_10] { <col0>[nationality]:[VARCHAR] <col1>[college]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "louisiana tech" | What's the nationality of Louisiana Tech?
|
<table0>[table_11888] { <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 "Home team" = 'collingwood' | In the game where the home team is collingwood, what is the score of the away team?
|
<table0>[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] } <table1>[labevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[itemid]:[number] <col4>[... | SELECT `<table13>`.charttime FROM `<table13>` WHERE `<table13>`.icustay_id IN ( SELECT `<table10>`.icustay_id FROM `<table10>` WHERE `<table10>`.hadm_id IN ( SELECT `<table7>`.hadm_id FROM `<table7>` WHERE `<table7>`.subject_id = 1269 ) ) AND DATETIME( `<table13>`.charttime, 'start of year' ) = DATETIME( CURRENT_TIME( ... | when is patient 1269 receiving an intake for the last time on 11/16/last year? |
<table0>[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_... | SELECT EMPLOYEE_ID, `<col10>` FROM `<table0>` WHERE NOT `<col10>` IN ( SELECT `<col10>` FROM `<table1>` WHERE `<col9>` BETWEEN 100 AND 200 ) | For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the correlation between employee_id and department_id in a scatter chart.
|
<table0>[Movie] { <col0>[mID]:[int] <col1>[title]:[text] <col2>[year]:[int] <col3>[director]:[text] } <table1>[Reviewer] { <col0>[rID]:[int] <col1>[name]:[text] } <table2>[Rating] { <col0>[rID]:[int] <col1>[mID]:[int] <col2>[stars]:[int] <col3>[ratingDate]:[date] } | SELECT title, `<col2>` FROM `<table2>` AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY title | Draw a bar chart to compare the stars of each movie by title, and rank by the names in asc.
|
<table0>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table1>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstayid]:[number] <col3>[gender]:[text] <col4>[age]:... | SELECT `<table2>`.culturesite FROM `<table2>` WHERE `<table2>`.`<table1>`unitstayid IN ( SELECT `<table1>`.`<table1>`unitstayid FROM `<table1>` WHERE `<table1>`.`<table1>`healthsystemstayid IN ( SELECT `<table1>`.`<table1>`healthsystemstayid FROM `<table1>` WHERE `<table1>`.uniquepid = '031-24513' ) ) AND STRFTIME( '%y... | tell me the name of the first specimen test that patient 031-24513 until 08/2104 received?
|
<table0>[departments] { <col0>[DEPARTMENT_ID]:[decimal] <col1>[DEPARTMENT_NAME]:[varchar] <col2>[MANAGER_ID]:[decimal] <col3>[LOCATION_ID]:[decimal] } <table1>[countries] { <col0>[COUNTRY_ID]:[varchar] <col1>[COUNTRY_NAME]:[varchar] <col2>[REGION_ID]:[decimal] } <table2>[jobs] { <col0>[JOB_ID]:[varchar] <col1>[JOB_TI... | SELECT SALARY, `<col8>` FROM `<table3>` WHERE `<col7>` BETWEEN 8000 AND 12000 AND `<col8>` <> "null" OR `<col10>` <> 40 | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, what is the relationship between salary and commission_pct ?
|
<table0>[table_19149] { <col0>[Season]:[real] <col1>[Class]:[text] <col2>[Team]:[text] <col3>[Motorcycle]:[text] <col4>[Type]:[text] <col5>[Races]:[real] <col6>[Wins]:[real] <col7>[Podiums]:[real] <col8>[Poles]:[real] <col9>[Fastest]:[Laps] <col10>[real]:[Pts] <col11>[text]:[Position] } | SELECT "Position" FROM `<table0>` WHERE "Team" = 'Skilled Racing Team' | what's the position with team being skilled racing team |
<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>[... | SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN diagnoses ON `<table1>`.hadm_id = diagnoses.hadm_id WHERE `<table1>`.days_stay > "6" AND diagnoses.long_title = "Need for prophylactic vaccination and inoculation against viral hepatitis" | what is the number of patients whose days of hospital stay is greater than 6 and diagnoses long title is need for prophylactic vaccination and inoculation against viral hepatitis? |
<table0>[table_17085981_2] { <col0>[date_of_appointment]:[VARCHAR] <col1>[outgoing_manager]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Jürgen Kohler" | What was the date of appointment when Jürgen Kohler was the outgoing manager? |
<table0>[event] { <col0>[int]:[text] <col1>[Stadium_ID]:[int] <col2>[Year]:[text] } <table1>[record] { <col0>[int]:[Result] <col1>[text]:[Swimmer_ID] <col2>[int]:[Event_ID] } <table2>[swimmer] { <col0>[int]:[name] <col1>[text]:[Nationality] <col2>[text]:[meter_100] <col3>[real]:[meter_200] <col4>[text]:[meter_300] <c... | SELECT name, meter_100 FROM `<table2>` ORDER BY name | Draw a bar chart of name versus meter_100, list by the name in asc. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.