schema stringlengths 20 14.6k | query stringlengths 17 2.58k | question stringlengths 8 1.06k |
|---|---|---|
<table0>[stay] { <col0>[stayid]:[number] <col1>[patient]:[number] <col2>[room]:[number] <col3>[staystart]:[time] <col4>[stayend]:[time] } <table1>[affiliated_with] { <col0>[physician]:[number] <col1>[department]:[number] <col2>[primaryaffiliation]:[boolean] } <table2>[on_call] { <col0>[nurse]:[number] <col1>[blockflo... | SELECT T1.name FROM `<table3>` AS T1 JOIN affiliated_with AS T2 ON T1.employeeid = T2.`<table3>` JOIN department AS T3 ON T2.department = T3.departmentid WHERE T3.name = 'Surgery' INTERSECT SELECT T1.name FROM `<table3>` AS T1 JOIN affiliated_with AS T2 ON T1.employeeid = T2.`<table3>` JOIN department AS T3 ON T2.depar... | Which physicians are affiliated with both Surgery and Psychiatry departments? Tell me their names. |
<table0>[sales_data] { <col0>[subscriber_id]:[INT] <col1>[plan_type]:[VARCHAR] <col2>[revenue]:[FLOAT] } <table1>[subscriber_data] { <col0>[subscriber_id]:[INT] <col1>[plan_type]:[VARCHAR] <col2>[data_usage]:[FLOAT] } | SELECT s.plan_type, SUM( s.revenue ) FROM `<table0>` s JOIN subscriber_data sd ON s.subscriber_id = sd.subscriber_id GROUP BY s.plan_type; | What is the total revenue generated from each mobile plan in the 'sales_data' and 'subscriber_data' tables, grouped by plan type? |
<table0>[table_203_287] { <col0>[number]:[rank] <col1>[number]:[area] <col2>[text]:[date] <col3>[text]:[presenter] <col4>[text]:[seven] <col5>[wonders]:[covered] } | SELECT "area" FROM `<table0>` ORDER BY "date" LIMIT 1 | what is the first area covered ?
|
<table0>[tours] { <col0>[INT]:[name] <col1>[TEXT]:[city] <col2>[TEXT]:[rating] <col3>[FLOAT]:[INSERT] } | SELECT name FROM `<table0>` WHERE city = 'Paris' AND rating = ( SELECT MAX( rating ) FROM `<table0>` WHERE city = 'Paris' ); | What is the name of the top-rated virtual tour in Paris? |
<table0>[table_30276] { <col0>[Series]:[real] <col1>[Season]:[real] <col2>[Title]:[text] <col3>[Directed]:[text] <col4>[Written]:[text] <col5>[Original]:[air] <col6>[date]:[text] <col7>[Production]:[code] <col8>[real]:[viewers] <col9>[millions]:[text] } | SELECT "U.S. viewers ( `<col9>` )" FROM `<table0>` WHERE "Title" = 'Behind the Scenes' | How many million people in the US viewed the episode titled 'Behind the Scenes'?
|
<table0>[table_203_16] { <col0>[number]:[name] <col1>[text]:[took] <col2>[office]:[text] <col3>[left]:[office] <col4>[text]:[party] <col5>[text]:[district] <col6>[residence]:[text] <col7>[notes]:[text] } | SELECT "name" FROM `<table0>` ORDER BY "took office" LIMIT 1 | which representative was the earliest to take office ? |
<table0>[neighborhood] { <col0>[int]:[business_id] <col1>[varchar]:[neighborhood_name] } <table1>[review] { <col0>[rid]:[int] <col1>[business_id]:[varchar] <col2>[user_id]:[varchar] <col3>[rating]:[float] <col4>[text]:[longtext] <col5>[year]:[int] <col6>[month]:[varchar] } <table2>[user] { <col0>[uid]:[int] <col1>[us... | SELECT business.name FROM business, category WHERE business.city = 'Los Angeles' AND category.business_id = business.business_id AND category.category_name = 'dance schools' | Find all dance schools in ' Los Angeles |
<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>`.dod_year <= "2179.0" AND procedures.icd9_code = "3972" | how many patients whose year of death is less than or equal to 2179 and procedure icd9 code is 3972? |
<table0>[table_name_65] { <col0>[played]:[VARCHAR] <col1>[lost]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "5" | Name the played with lost of 5 |
<table0>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <table1>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstayid]:[number] <col3>[gender]:[text] <col4>[age]:[text] <col5>[et... | SELECT MAX( t1.c1 ) FROM ( SELECT SUM( `<table9>`.`<table9>` ) AS c1 FROM `<table9>` WHERE `<table9>`.`<table1>`healthsystemstayid IN ( SELECT `<table1>`.`<table1>`healthsystemstayid FROM `<table1>` WHERE `<table1>`.`<table1>`unitstayid IN ( SELECT `<table0>`.`<table1>`unitstayid FROM `<table0>` WHERE `<table0>`.`<tabl... | what is the maximum total hospital cost to include a procedure called implantation of heart pacemaker - permanent the previous year?
|
<table0>[shariah_financing] { <col0>[financing_id]:[INT] <col1>[financing_date]:[DATE] <col2>[financing_amount]:[INT] <col3>[business_size]:[TEXT] } <table1>[shariah_small_businesses] { <col0>[business_id]:[INT] <col1>[financing_id]:[INT] } | SELECT SUM( sf.financing_amount ) FROM `<table0>` sf JOIN shariah_small_businesses ssb ON sf.financing_id = ssb.financing_id WHERE sf.financing_date >= DATEADD( quarter, -1, CURRENT_DATE( ) ); | What is the total amount of Shariah-compliant financing provided to small businesses in the last quarter? |
<table0>[train_station] { <col0>[Train_ID]:[int] <col1>[Station_ID]:[int] } <table1>[station] { <col0>[Station_ID]:[int] <col1>[text]:[Annual_entry_exit] <col2>[real]:[Annual_interchanges] <col3>[real]:[Total_Passengers] <col4>[real]:[Location] <col5>[text]:[Main_Services] <col6>[text]:[Number_of_Platforms] } <table2... | SELECT Location, SUM( Total_Passengers ) FROM `<table1>` GROUP BY Location ORDER BY SUM( Total_Passengers ) DESC | Visualize a bar chart showing each location's total number of passengers, show by the y-axis from high to low.
|
<table0>[patients] { <col0>[INT]:[name] <col1>[TEXT]:[age] <col2>[INT]:[therapy] <col3>[TEXT]:[therapy_year] <col4>[INT]:[INSERT] } | DELETE FROM `<table0>` WHERE therapy_year = 2018; | Delete the records of patients who received therapy in 2018. |
<table0>[mental_health_facilities] { <col0>[facility_id]:[INT] <col1>[name]:[VARCHAR] <col2>[state]:[VARCHAR] <col3>[mental_health_parity_score]:[INT] } | SELECT AVG( `<col3>` ) FROM `<table0>` WHERE `<col2>` = 'New York'; | What is the average mental health parity score for mental health facilities in New York? |
<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] <col1... | SELECT All_Neutral, `<col0>` FROM `<table0>` ORDER BY `<col0>` | Visualize a bar chart about the distribution of All_Neutral and Team_ID , rank in ascending by the y-axis.
|
<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]:[... | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` WHERE `<table3>`.language = "HAIT" AND `<table3>`.age < "70" | count the number of patients less than 70 years who prefer haitian language. |
<table0>[polar_bears] { <col0>[polar_bear_id]:[INT] <col1>[polar_bear_name]:[VARCHAR] <col2>[age]:[INT] <col3>[weight]:[FLOAT] <col4>[sanctuary]:[VARCHAR] } | SELECT MAX( `<col3>` ) FROM `<table0>` WHERE `<col4>` = 'Arctic Tundra' AND `<col2>` >= 18; | What is the maximum weight of adult polar bears in the 'Arctic Tundra' sanctuary? |
<table0>[orders] { <col0>[order_id]:[VARCHAR] <col1>[date_order_placed]:[VARCHAR] } | SELECT DISTINCT `<col0>` FROM `<table0>` ORDER BY `<col1>` | List the ids of all distinct orders ordered by placed date. |
<table0>[table_73201] { <col0>[real]:[Title] <col1>[text]:[Directed] <col2>[text]:[Written] <col3>[text]:[Original] <col4>[air]:[date] <col5>[text]:[Production] <col6>[code]:[real] <col7>[Television]:[order] } | SELECT "Written by" FROM `<table0>` WHERE "Television order" = 'S01E06' | who wrote s01e06
|
<table0>[country] { <col0>[origin]:[integer] } <table1>[price] { } <table2>[data] { <col0>[integer]:[mpg] <col1>[real]:[cylinders] <col2>[integer]:[displacement] <col3>[real]:[horsepower] <col4>[integer]:[weight] <col5>[integer]:[acceleration] <col6>[real]:[model] <col7>[integer]:[car_name] } <table3>[production] { ... | SELECT T3.country FROM `<table2>` AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T1.car_name = 'chevrolet malibu' | Show the origin country of Chevrolet Malibu. |
<table0>[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... | SELECT DISTINCT instructor.name FROM instructor, `<table0>`, `<table0>`_offering, offering_instructor WHERE `<table0>`.`<table0>`_id = `<table0>`_offering.`<table0>`_id AND `<table0>`.department = 'EECS' AND `<table0>`_offering.offering_id = offering_instructor.offering_id AND instructor.instructor_id = offering_instru... | Are there certain professors who do not teach any classes with labs ?
|
<table0>[table_name_71] { <col0>[voltage]:[VARCHAR] <col1>[turbo]:[VARCHAR] <col2>[cores]:[VARCHAR] <col3>[release_date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col2>` = "2" AND `<col3>` = "september 2010" AND `<col1>` = "5/8" | What is the voltage when there are 2 cores, turbo is 5/8 and the release date is September 2010? |
<table0>[table_name_71] { <col0>[top_25]:[INTEGER] <col1>[top_5]:[INTEGER] } | SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col1>` > 1 | What is the sum of top-25s for events with more than 1 top-5? |
<table0>[Dispensaries] { <col0>[INT]:[name] <col1>[TEXT]:[state] <col2>[TEXT]:[INSERT] } <table1>[Sales] { <col0>[dispensary_id]:[INT] <col1>[strain]:[TEXT] <col2>[quantity]:[INT] <col3>[revenue]:[DECIMAL] } | SELECT `<table0>`.name, SUM( Sales.revenue ) as total_revenue FROM `<table0>` INNER JOIN Sales ON `<table0>`.id = Sales.dispensary_id WHERE strain = 'OG Kush' AND state = 'California' GROUP BY `<table0>`.name ORDER BY total_revenue DESC LIMIT 1; | Identify dispensaries in California with the highest sales revenue for the "OG Kush" strain. |
<table0>[table_204_301] { <col0>[number]:[nationality] <col1>[text]:[name] <col2>[text]:[term] <col3>[deputy]:[judge] <col4>[text]:[reason] <col5>[termination]:[text] } | SELECT "term as a `<col3>` judge" - "term as a `<col3>` judge" FROM `<table0>` WHERE "name" = 'frederik beichmann' | what is the total number of years that frederik beichmann was a deputy judge ?
|
<table0>[table_1143966_1] { <col0>[won]:[VARCHAR] <col1>[standing]:[VARCHAR] <col2>[games]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "2nd OHA" AND `<col2>` = 62 | How many games were won with 2nd oha was standing and there were 62 games?
|
<table0>[table_19290] { <col0>[Celebrity]:[text] <col1>[Famous]:[text] <col2>[Entered]:[text] <col3>[Exited]:[text] <col4>[Finished]:[text] } | SELECT "Finished" FROM `<table0>` WHERE "Celebrity" = 'Tara Palmer-Tomkinson' | What position did Tara Palmer-Tomkinson finish?
|
<table0>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table1>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <... | SELECT COUNT( * ) FROM `<table3>` WHERE `<table3>`.`<table2>`unitstayid IN ( SELECT `<table2>`.`<table2>`unitstayid FROM `<table2>` WHERE `<table2>`.`<table2>`healthsystemstayid IN ( SELECT `<table2>`.`<table2>`healthsystemstayid FROM `<table2>` WHERE `<table2>`.uniquepid = '031-16123' ) ) AND `<table3>`.culturesite = ... | has there been any nasopharynx microbiology test until 2104 for patient 031-16123? |
<table0>[travel_advisories_ext] { <col0>[INT]:[country] <col1>[VARCHAR]:[region] <col2>[VARCHAR]:[travel_warning] <col3>[BOOLEAN]:[advisory_text] <col4>[TEXT]:[year] <col5>[INT]:[INSERT] } | SELECT ta.country, ta.region, t.total_expenditure FROM `<table0>` ta JOIN tourism_spending t ON ta.country = t.country AND t.year = ( SELECT MAX( year ) FROM tourism_spending WHERE country = ta.country ) WHERE ta.travel_warning = true; | List the countries with travel advisories and their respective regions, along with the total expenditure by international visitors for the last available year. |
<table0>[table_name_67] { <col0>[country]:[VARCHAR] <col1>[icao]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "ekch" | What Country has a ICAO of EKCH? |
<table0>[table_name_63] { <col0>[progressive_ticket]:[VARCHAR] <col1>[republican_ticket]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "frank m. williams" | With the Republican ticket of Frank M. Williams who was the Progressive ticket?
|
<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>... | SELECT OwnerUserId AS "user_link", COUNT( * ) AS Count FROM `<table26>` WHERE NOT ClosedDate IS NULL GROUP BY OwnerUserId ORDER BY Count DESC, OwnerUserId LIMIT 100 | Owners of the most closed questions.
|
<table0>[Songs] { <col0>[SongId]:[VARCHAR] <col1>[songid]:[VARCHAR] <col2>[title]:[VARCHAR] } <table1>[Instruments] { <col0>[instrument]:[VARCHAR] <col1>[songid]:[VARCHAR] <col2>[bandmateid]:[VARCHAR] } <table2>[Band] { <col0>[VARCHAR]:[lastname] } <table3>[Performance] { <col0>[bandmate]:[VARCHAR] <col1>[SongId]:[V... | SELECT T4.instrument FROM `<table3>` AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.songid = T1.songid JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Badlands" | What instrument did the musician with last name 'Heilo' use in the song 'Badlands'? |
<table0>[table_name_17] { <col0>[score]:[VARCHAR] <col1>[player]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "tom kite" | What is the score of Player Tom Kite? |
<table0>[ticket_sales] { <col0>[ticket_sale_id]:[INT] <col1>[team_id]:[INT] <col2>[sale_quarter]:[INT] <col3>[sale_year]:[INT] <col4>[quantity]:[INT] <col5>[sale_day]:[VARCHAR] } <table1>[teams] { <col0>[team_id]:[INT] <col1>[team_name]:[VARCHAR] <col2>[255]:[sport_id] <col3>[INT]:[INSERT] <col4>[ticket_sales]:[VALUES... | SELECT t.team_name, sale_day, SUM( `<col4>` ) as total_tickets_sold FROM `<table0>` ts JOIN teams t ON ts.team_id = t.team_id GROUP BY t.team_name, sale_day; | What is the number of tickets sold for each team, split by day of the week? |
<table0>[Department_Stores] { <col0>[dept_store_id]:[INTEGER] <col1>[dept_store_chain_id]:[INTEGER] <col2>[store_name]:[VARCHAR] <col3>[store_address]:[VARCHAR] <col4>[255]:[store_phone] <col5>[VARCHAR]:[store_email] } <table1>[Customer_Orders] { <col0>[order_id]:[INTEGER] <col1>[customer_id]:[INTEGER] <col2>[order_st... | SELECT MAX( `<col3>` ), MIN( `<col3>` ), `<col1>` FROM `<table5>` GROUP BY `<col1>` | For each product type, show the relationship between minimum product price and maximum product price in a scatter chart.
|
<table0>[Satellites] { <col0>[INT]:[name] <col1>[VARCHAR]:[launch_date] <col2>[DATE]:[agency] <col3>[VARCHAR]:[mass] <col4>[FLOAT]:[INSERT] } | SELECT SUM( mass ) FROM `<table0>` WHERE agency = 'StarCorp' AND launch_date < '2010-01-01'; | What is the total mass of satellites launched by 'StarCorp' before 2010? |
<table0>[table_2626495_1] { <col0>[title]:[VARCHAR] <col1>[written_by]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Daphne Field" | what is the title of the episode daphne field wrote? |
<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 T2.Founder, T1.Code FROM `<table1>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T1.Code DESC | For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the average of code , and group by attribute founder, and order in descending by the total number. |
<table0>[table_name_68] { <col0>[tier]:[INTEGER] <col1>[postseason]:[VARCHAR] } | SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "quarterfinalist" | What is the lowest tier for a postseason result of quarterfinalist? |
<table0>[esports_players] { <col0>[player_id]:[INT] <col1>[player_name]:[TEXT] <col2>[hours_played]:[INT] <col3>[game]:[TEXT] } <table1>[games] { <col0>[game_id]:[INT] <col1>[game]:[TEXT] <col2>[genre]:[TEXT] } | SELECT SUM( `<table0>`.hours_played ) FROM `<table0>` JOIN games ON `<table0>`.game = games.game WHERE games.game = 'CS:GO'; | What is the total number of hours played by all esports players in 'CS:GO' tournaments? |
<table0>[table_name_16] { <col0>[opponent]:[VARCHAR] <col1>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "6-2" | When the Score was 6-2, which Opponent was played?
|
<table0>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table1>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table2>[prescriptions] { <col0>[row_id]:[number] <... | SELECT SUM( `<table8>`.amount ) FROM `<table8>` WHERE `<table8>`.icustay_id IN ( SELECT `<table13>`.icustay_id FROM `<table13>` WHERE `<table13>`.hadm_id IN ( SELECT `<table11>`.hadm_id FROM `<table11>` WHERE `<table11>`.subject_id = 27703 ) ) AND `<table8>`.itemid IN ( SELECT `<table7>`.itemid FROM `<table7>` WHERE `<... | give me the total quantity of br milk fs ng that patient 27703 has taken on last month/03. |
<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 COUNT( DISTINCT t2.uniquepid ) FROM ( SELECT t1.uniquepid, t1.`<table6>`time, t1.`<table1>`healthsystemstayid FROM ( SELECT `<table1>`.uniquepid, `<table6>`.`<table6>`time, `<table1>`.`<table1>`healthsystemstayid FROM `<table6>` JOIN `<table1>` ON `<table6>`.`<table1>`unitstayid = `<table1>`.`<table1>`unitstayid... | how many people had died after being diagnosed with hypercoagulable state - antiphospholipid syndrome in the same hospital visit since 2105?
|
<table0>[Concerts] { <col0>[city]:[VARCHAR] <col1>[255]:[genre] <col2>[VARCHAR]:[255] <col3>[attendance]:[INT] } | SELECT AVG( `<col3>` ) FROM `<table0>` WHERE `<col0>` = 'New York' AND genre = 'Jazz'; | What is the average attendance at jazz concerts in New York? |
<table0>[table_name_72] { <col0>[attendance]:[INTEGER] <col1>[date]:[VARCHAR] <col2>[points]:[VARCHAR] } | SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "february 4" AND `<col2>` < 57 | What is the lowest Attendance, when Date is 'February 4', and when Points is less than 57?
|
<table0>[departments] { <col0>[DEPARTMENT_ID]:[decimal] <col1>[DEPARTMENT_NAME]:[varchar] <col2>[MANAGER_ID]:[decimal] <col3>[LOCATION_ID]:[decimal] } <table1>[job_history] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[START_DATE]:[date] <col2>[END_DATE]:[date] <col3>[JOB_ID]:[varchar] <col4>[DEPARTMENT_ID]:[decimal] } <tab... | SELECT HIRE_DATE, AVG( `<col0>` ) FROM `<table2>` WHERE `<col5>` < '2002-06-21' | For those employees who was hired before 2002-06-21, find hire_date and the average of employee_id bin hire_date by time, and visualize them by a bar chart. |
<table0>[table_23248940_9] { <col0>[score]:[VARCHAR] <col1>[game]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 50 | How did the game number 50 end? |
<table0>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table1>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[itemid]:[number] <col5>[char... | SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` WHERE `<table2>`.hadm_id IN ( SELECT `<table4>`.hadm_id FROM `<table4>` WHERE `<table4>`.itemid IN ( SELECT `<table13>`.itemid FROM `<table13>` WHERE `<table13>`.label = 'rbc, ascites' ) AND DATETIME( `<table4>`.charttime ) <= DATETIME( CURRENT_TIME( ), '-1... | count the number of patients who had been tested until 1 year ago for rbc, ascites.
|
<table0>[table_name_63] { <col0>[year]:[VARCHAR] <col1>[league]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "usisl indoor" | What years did the Nashville Metros have Usisl Indoor League? |
<table0>[table_name_69] { <col0>[region]:[VARCHAR] <col1>[name]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "tv vtv" | What is the region for tv vtv? |
<table0>[table_11926114_1] { <col0>[chinese_title]:[VARCHAR] <col1>[average]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 31 | What is the Chinese name that has a 31 average? |
<table0>[NYT_Investigative] { <col0>[INT]:[name] <col1>[VARCHAR]:[age] <col2>[INT]:[job] } <table1>[LAT_Investigative] { <col0>[INT]:[name] <col1>[VARCHAR]:[age] <col2>[INT]:[job] } | SELECT ny.age FROM `<table0>` ny JOIN LAT_Investigative lat ON ny.name = lat.name WHERE ny.job = 'investigative journalist' AND lat.job = 'investigative journalist'; | What are the ages of investigative journalists in 'New York Times' and 'Los Angeles Times'? |
<table0>[table_name_11] { <col0>[english_title]:[VARCHAR] <col1>[chinese__simplified]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE chinese__simplified_ = "你 朋友" | What is 你 朋友's English title? |
<table0>[table_name_9] { <col0>[per_capita_income]:[VARCHAR] <col1>[county]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "charles" | What is the per capital income for Charles county?
|
<table0>[CommunityCourtCases] { <col0>[CaseID]:[INT] <col1>[District]:[VARCHAR] <col2>[HearingDate]:[DATE] } | SELECT COUNT( * ) FROM CommunityCourtCases; | What is the total number of cases heard in Community Courts across all districts? |
<table0>[player_award_vote] { <col0>[award_id]:[text] <col1>[year]:[number] <col2>[league_id]:[text] <col3>[player_id]:[text] <col4>[points_won]:[number] <col5>[points_max]:[number] <col6>[votes_first]:[text] } <table1>[hall_of_fame] { <col0>[player_id]:[text] <col1>[yearid]:[number] <col2>[votedby]:[text] <col3>[ball... | SELECT T1.player_id, T1.award_id, MIN( T1.year - T2.birth_year ) FROM `<table3>` AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id GROUP BY T1.award_id | For every award, who is the youngest winner? |
<table0>[table_name_31] { <col0>[socket]:[VARCHAR] <col1>[sspec_number]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "sr0pk( e1 )" | Name the socket of sSpec number of sr0pk(e1)? |
<table0>[daily_transactions] { <col0>[transaction_date]:[DATE] <col1>[transaction_amount]:[FLOAT] } | SELECT transaction_date, AVG( transaction_amount ) OVER ( ORDER BY transaction_date ROWS BETWEEN 2 PRECEDING AND CURRENT ROW ) AS moving_average FROM daily_transactions; | What is the moving average of transaction amounts for each day in the 'daily_transactions' table? |
<table0>[OnlineStore] { <col0>[INT]:[date] <col1>[DATE]:[revenue] <col2>[DECIMAL]:[INSERT] } | SELECT SUM( revenue ) FROM `<table0>` WHERE date BETWEEN DATE_SUB( CURRENT_DATE, INTERVAL 365 DAY ) AND CURRENT_DATE; | Calculate the total revenue for the museum's online store for the last year |
<table0>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } <table1>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>... | SELECT 24 * ( STRFTIME( '%j', CURRENT_TIME( ) ) - STRFTIME( '%j', `<table8>`.`<table8>`time ) ) FROM `<table8>` WHERE `<table8>`.`<table2>`unitstayid IN ( SELECT `<table2>`.`<table2>`unitstayid FROM `<table2>` WHERE `<table2>`.`<table2>`healthsystemstayid IN ( SELECT `<table2>`.`<table2>`healthsystemstayid FROM `<table... | how many hours it has been since the first time patient 011-55642 was diagnosed with acute respiratory failure during their current hospital visit?
|
<table0>[table_name_57] { <col0>[date]:[VARCHAR] <col1>[home]:[VARCHAR] <col2>[record]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "chicago black hawks" AND `<col2>` = "0–1" | When is Home of chicago black hawks has a Record of 0–1? |
<table0>[table_203_195] { <col0>[number]:[pump] <col1>[type]:[source] <col2>[text]:[typical] <col3>[use]:[text] <col4>[u00b0c]:[heated] <col5>[screed]:[floor] <col6>[number]:[u00b0c] <col7>[heated]:[screed] <col8>[floor]:[number] <col9>[u00b0c]:[heated] <col10>[timber]:[floor] <col11>[number]:[u00b0c] <col12>[radiator]... | SELECT COUNT( "pump `<col1>` and source" ) FROM `<table0>` WHERE "35 \u00b0c\n( e.g. `<col7>` `<col5>` `<col8>` )" > 5.0 | what number of pump types have a 35 c -lrb- e.g. heated screed floor -rrb- greater than 5.0 ?
|
<table0>[FuelingStations] { <col0>[station_id]:[INT] <col1>[station_type]:[VARCHAR] <col2>[PRIMARY]:[KEY] } | DELETE FROM `<table0>` WHERE `<col1>` = 'Hydrogen'; | Delete records in the 'FuelingStations' table where 'station_type' is 'Hydrogen' |
<table0>[order_items] { <col0>[order_id]:[number] <col1>[product_id]:[number] <col2>[order_quantity]:[text] } <table1>[customers] { <col0>[customer_id]:[number] <col1>[payment_method]:[text] <col2>[customer_name]:[text] <col3>[date_became_customer]:[time] <col4>[other_customer_details]:[text] } <table2>[customer_cont... | SELECT SUM( t2.order_quantity ) FROM `<table4>` AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = "Cancelled" | Find the total quantity of products associated with the orders in the 'Cancelled' status. |
<table0>[farmers] { <col0>[farmer_id]:[INT] <col1>[name]:[TEXT] <col2>[location]:[TEXT] <col3>[crop_yield]:[INT] <col4>[year]:[INT] } | SELECT AVG( `<col3>` ) FROM `<table0>` WHERE `<col4>` = 2020 AND `<col2>` LIKE 'rural_development%'; | What was the average crop yield in 2020 for farmers in the 'rural_development' schema? |
<table0>[table_221653_1] { <col0>[platelet_count]:[VARCHAR] <col1>[partial_thromboplastin_time]:[VARCHAR] <col2>[bleeding_time]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Unaffected" AND `<col2>` = "Unaffected" | What is the platelet count when partial thromboplastin time and bleeding time are unaffected? |
<table0>[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] } <table1>[fare_basis] { <col0>[fare_basis_code]:[text] <col... | SELECT DISTINCT fare.fare_id FROM `<table8>` AS AIRPORT_SERVICE_0, `<table8>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE ( ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.ci... | what is the fare going from ATLANTA to BOSTON one way on 11 7 |
<table0>[table_name_47] { <col0>[height_in_ft]:[VARCHAR] <col1>[years_for_rockets]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "1999-2004" | Tell me the height in ft for 1999-2004 |
<table0>[Donors] { <col0>[DonorID]:[INT] <col1>[DonorName]:[VARCHAR] <col2>[100]:[DonationAmount] <col3>[DECIMAL]:[DonationDate] <col4>[DATE]:[DonorState] } | SELECT MAX( DonationAmount ) FROM `<table0>` WHERE DonorState = 'New York' AND YEAR( DonationDate ) = 2020; | What's the maximum donation amount made by donors from New York in the year 2020? |
<table0>[table_name_50] { <col0>[place]:[VARCHAR] <col1>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 71 - 70 - 73 - 71 = 285 | What place had a score of 71-70-73-71=285? |
<table0>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table1>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body... | SELECT ROW_NUMBER( ) OVER ( ORDER BY Reputation DESC ) AS "#", Id AS "user_link", Reputation, Location FROM `<table12>` WHERE ( LOWER( Location ) LIKE ( '%indonesia%' ) ) AND NOT ( LOWER( Location ) LIKE '%bali%' ) AND LENGTH( Location ) > 1 ORDER BY Location LIMIT 100 | User List: Top N - Indonesia - with false positive exclusions.
|
<table0>[Streaming] { <col0>[country]:[VARCHAR] <col1>[year]:[INT] <col2>[genre]:[VARCHAR] <col3>[streams]:[INT] } | SELECT SUM( `<col3>` ) FROM `<table0>` WHERE `<col0>` = 'USA' AND `<col1>` = 2021 AND `<col2>` = 'Hip Hop'; | What is the sum of streams for Hip Hop songs in the USA in 2021? |
<table0>[table_36328] { <col0>[Rank]:[text] <col1>[Runs]:[text] <col2>[Opponent]:[text] <col3>[Venue]:[text] <col4>[Season]:[text] } | SELECT "Opponent" FROM `<table0>` WHERE "Venue" = 'launceston cricket club ground, launceston' AND "Season" = '1853/54' | Who was the opponent that played at Launceston Cricket Club Ground, launceston during the season of 1853/54?
|
<table0>[table_11570261_1] { <col0>[year]:[INTEGER] <col1>[winning_score]:[VARCHAR] } | SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = −8( 71 - 63 - 69 - 69 = 272 ) | what is the minimum year where winning score is 8 (71-63-69-69=272)
|
<table0>[providers] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[name] <col2>[VARCHAR]:[100] <col3>[city]:[VARCHAR] <col4>[specialty]:[VARCHAR] } | DELETE FROM `<table0>` WHERE id = 12345; | Delete the record for the provider with ID 12345 from the 'providers' table |
<table0>[retailers] { <col0>[INT]:[name] <col1>[VARCHAR]:[country] <col2>[VARCHAR]:[INSERT] } <table1>[circular_economy] { <col0>[INT]:[retailer_id] <col1>[INT]:[recycled_materials] <col2>[BOOLEAN]:[INSERT] } | SELECT r.name, COUNT( CE.recycled_materials ) as num_retailers FROM `<table1>` CE JOIN retailers r ON CE.retailer_id = r.id WHERE r.country = 'Kenya' AND CE.recycled_materials = true GROUP BY r.name; | How many retailers in Kenya offer recycled materials? |
<table0>[solana_assets] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[name] <col2>[VARCHAR]:[255] <col3>[network]:[VARCHAR] <col4>[255]:[value] <col5>[DECIMAL]:[INSERT] } | SELECT SUM( value ) FROM `<table0>` WHERE `<col3>` = 'Solana'; | What's the total value of all digital assets on the Solana network? |
<table0>[Projects] { <col0>[Project_ID]:[INTEGER] <col1>[Project_Details]:[VARCHAR] } <table1>[Ref_Budget_Codes] { <col0>[Budget_Type_Code]:[CHAR] <col1>[Budget_Type_Description]:[VARCHAR] } <table2>[Ref_Document_Types] { <col0>[Document_Type_Code]:[CHAR] <col1>[Document_Type_Name]:[VARCHAR] <col2>[255]:[Document_Typ... | SELECT Budget_Type_Code, COUNT( * ) FROM `<table5>` GROUP BY `<col1>` ORDER BY COUNT( * ) DESC | what are the different budget type codes, and how many documents are there for each?, I want to list by the total number in desc please. |
<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 `<table4>`.subject_id ) FROM `<table4>` WHERE `<table4>`.gender = "F" AND `<table4>`.admission_location = "TRSF WITHIN THIS FACILITY" | how many female patients had inpatient hospital admission?
|
<table0>[table_name_21] { <col0>[season]:[VARCHAR] <col1>[pts]:[VARCHAR] <col2>[pos]:[VARCHAR] <col3>[pld]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col2>` = "1st" AND `<col3>` = "33" AND `<col1>` = "58" | What season had 1st position, 33 pld, and 58 points? |
<table0>[Farmers] { <col0>[INT]:[name] <col1>[VARCHAR]:[age] <col2>[INT]:[country] <col3>[VARCHAR]:[INSERT] } <table1>[Crops] { <col0>[INT]:[name] <col1>[VARCHAR]:[growth_stage] <col2>[VARCHAR]:[Farm_id] <col3>[INT]:[INSERT] } <table2>[Irrigation] { <col0>[INT]:[Farm_id] <col1>[INT]:[irrigation_type] <col2>[VARCHAR]:... | SELECT f.name FROM `<table0>` f JOIN Crops c ON f.id = c.Farm_id LEFT JOIN Irrigation i ON f.id = i.Farm_id WHERE c.growth_stage = 'Harvest' AND i.irrigation_type IS NULL; | Identify the names of farmers who grow crops with a growth stage of 'Harvest' but do not use Drip irrigation. |
<table0>[West_Materials] { <col0>[location]:[VARCHAR] <col1>[material]:[VARCHAR] <col2>[cost]:[FLOAT] <col3>[order_date]:[DATE] } | SELECT location, material, SUM( cost ) OVER ( PARTITION BY EXTRACT( MONTH FROM order_date ) ) as total_cost FROM West_Materials; | What is the total cost of construction materials in the West, partitioned by month? |
<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 diagnoses ON `<table0>`.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON `<table0>`.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "99662" AND prescriptions.route = "NG" | what is the number of patients whose diagnoses icd9 code is 99662 and drug route is ng?
|
<table0>[table_62735] { <col0>[text]:[Height] <col1>[text]:[Weight] <col2>[text]:[Spike] <col3>[text]:[2008] <col4>[club]:[text] } | SELECT "Name" FROM `<table0>` WHERE "2008 club" = 'apure' | Who was the 2008 club Apure? |
<table0>[table_name_61] { <col0>[heat]:[INTEGER] <col1>[lane]:[VARCHAR] <col2>[nationality]:[VARCHAR] <col3>[name]:[VARCHAR] } | SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col2>` = "china" AND `<col3>` = "zhang lin" AND `<col1>` > 6 | What's China's heat for Zhang Lin in a lane after 6?
|
<table0>[table_name_75] { <col0>[yellow_cards]:[INTEGER] <col1>[season]:[VARCHAR] } | SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "1999/2000" | Which Yellow Cards has a Season of 1999/2000? |
<table0>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[Belong... | SELECT u.Id AS "user_link", SUM( CASE WHEN p.PostTypeId = 1 THEN p.Score ELSE 0 END ) AS "question_score", SUM( CASE WHEN p.PostTypeId = 1 THEN 1 ELSE 0 END ) AS "question_count", SUM( CASE WHEN p.PostTypeId = 2 THEN p.Score ELSE 0 END ) AS "answer_score", SUM( CASE WHEN p.PostTypeId = 2 THEN 1 ELSE 0 END ) AS "answer_... | User with number and score for questions and answer.
|
<table0>[heritage_sites] { <col0>[INT]:[site_name] <col1>[TEXT]:[community_engagement] <col2>[FLOAT]:[INSERT] } | SELECT site_name, community_engagement FROM heritage_sites; | List all heritage sites along with their community engagement scores. |
<table0>[table_11964154_11] { <col0>[high_rebounds]:[VARCHAR] <col1>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "L 84–102 ( OT )" | Who had the high rebounds when the score was l 84–102 (ot)? |
<table0>[animals] { <col0>[INT]:[name] <col1>[VARCHAR]:[255] <col2>[population]:[INT] <col3>[endangered]:[BOOLEAN] <col4>[region]:[VARCHAR] <col5>[255]:[INSERT] } | SELECT SUM( `<col2>` ) FROM `<table0>` WHERE `<col3>` = true AND `<col4>` = 'Africa'; | What is the total population of endangered animals in Africa? |
<table0>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[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>[disc... | SELECT DISTINCT `<table5>`.`<table5>` FROM `<table5>` WHERE `<table5>`.event_type = '`<table11>`' AND `<table5>`.event_id IN ( SELECT `<table11>`.row_id FROM `<table11>` WHERE `<table11>`.drug = 'nystatin-triamcinolone cream' ) | what is the pricing for nystatin-triamcinolone cream?
|
<table0>[Employees] { <col0>[INT]:[Department] <col1>[TEXT]:[YearsAtOrg] <col2>[FLOAT]:[INSERT] } | SELECT COUNT( * ) FROM `<table0>` WHERE Department = 'Accessibility Services' AND YearsAtOrg > 5; | Count the number of employees working in 'Accessibility Services' who have been with the organization for over 5 years. |
<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] } <... | SELECT `<table0>`.`<table0>`resulttime FROM `<table0>` WHERE `<table0>`.`<table5>`unitstayid IN ( SELECT `<table5>`.`<table5>`unitstayid FROM `<table5>` WHERE `<table5>`.`<table5>`healthsystemstayid IN ( SELECT `<table5>`.`<table5>`healthsystemstayid FROM `<table5>` WHERE `<table5>`.uniquepid = '005-73237' ) ) AND `<ta... | what was the last time that patient 005-73237 had the maximum value of platelets x 1000 since 11/2104?
|
<table0>[TemperatureRecords] { <col0>[INT]:[Mission] <col1>[VARCHAR]:[Temperature] <col2>[INT]:[INSERT] } | SELECT Mission, MAX( Temperature ) FROM `<table0>` GROUP BY Mission | What is the maximum temperature recorded during each space mission? |
<table0>[table_name_38] { <col0>[score]:[VARCHAR] <col1>[tie_no]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "4" | what is score of a team with tie of 4?
|
<table0>[table_name_72] { <col0>[event]:[VARCHAR] <col1>[score]:[INTEGER] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` > 673 | Which event had a score of over 673 points?
|
<table0>[vehicle_sales] { <col0>[vehicle_make]:[VARCHAR] <col1>[255]:[city] <col2>[VARCHAR]:[255] <col3>[sales_count]:[INT] } | INSERT INTO vehicle_sales ( vehicle_make, city, sales_count ) VALUES ( 'Mahindra', 'Mumbai', 45 ); | Insert a new row into the 'vehicle_sales' table with the following values: 'Mahindra', 'Mumbai', 45 |
<table0>[weather] { <col0>[date]:[TEXT] <col1>[max_temperature_f]:[INTEGER] <col2>[mean_temperature_f]:[INTEGER] <col3>[min_temperature_f]:[INTEGER] <col4>[max_dew_point_f]:[INTEGER] <col5>[mean_dew_point_f]:[INTEGER] <col6>[min_dew_point_f]:[INTEGER] <col7>[max_humidity]:[INTEGER] <col8>[mean_humidity]:[INTEGER] <col9... | SELECT date, COUNT( `<col0>` ) FROM `<table0>` WHERE `<col6>` < ( SELECT MIN( `<col6>` ) FROM `<table0>` WHERE `<col23>` = 94107 ) | For dates had a minimum dew point smaller than any day in zip code 94107, show the total number of such days for each weekday using a bar chart.
|
<table0>[table_name_97] { <col0>[name]:[VARCHAR] <col1>[type]:[VARCHAR] <col2>[moving_to]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "loan" AND `<col2>` = "apollon kalamaria" | Which Name has a Type of loan, and a Moving to of apollon kalamaria? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.