schema stringlengths 20 14.6k | query stringlengths 17 2.58k | question stringlengths 8 1.06k |
|---|---|---|
<table0>[soccer_stadiums] { <col0>[stadium_name]:[TEXT] <col1>[location]:[TEXT] <col2>[capacity]:[INT] <col3>[games_hosted]:[INT] } <table1>[soccer_attendance] { <col0>[stadium_name]:[TEXT] <col1>[date]:[TEXT] <col2>[fans_attended]:[INT] } | SELECT s.location, SUM( a.fans_attended ) FROM `<table0>` s JOIN soccer_attendance a ON s.stadium_name = a.stadium_name WHERE s.location IN ( 'England', 'Spain', 'Germany' ) GROUP BY s.location; | What is the total number of fans that attended soccer games in the top 3 European countries in 2021? |
<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 prescriptions ON `<table0>`.hadm_id = prescriptions.hadm_id WHERE `<table0>`.admission_type = "NEWBORN" AND prescriptions.route = "ORAL" | how many newborn patients had an oral drug route? |
<table0>[table_17157367_1] { <col0>[model]:[VARCHAR] <col1>[method]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "HA" | what is the model where the method is ha? |
<table0>[game_sessions] { <col0>[INT]:[user_id] <col1>[INT]:[game_name] <col2>[VARCHAR]:[start_time] <col3>[DATETIME]:[end_time] } | SELECT genres.genre, AVG( TIMESTAMPDIFF( SECOND, start_time, end_time ) ) as avg_session_length FROM `<table0>` JOIN ( SELECT DISTINCT game_name, genre FROM `<table0>` JOIN games ON `<table0>`.game_name = games.name ) genres ON `<table0>`.game_name = genres.game_name GROUP BY genres.genre ORDER BY avg_session_length DE... | What is the average session length for each game, sorted by genre? |
<table0>[Customer_Policies] { <col0>[Policy_ID]:[INTEGER] <col1>[Customer_ID]:[INTEGER] <col2>[Policy_Type_Code]:[CHAR] <col3>[Start_Date]:[DATE] <col4>[End_Date]:[DATE] } <table1>[Customers] { <col0>[Customer_ID]:[INTEGER] <col1>[Customer_Details]:[VARCHAR] } <table2>[Settlements] { <col0>[Settlement_ID]:[INTEGER] <... | SELECT Date_Payment_Made, COUNT( Date_Payment_Made ) FROM `<table4>` WHERE `<col2>` = 'Visa' | For those payments processed with Visa, bin the payment day into the Day of week interval and count them for a bar chart. |
<table0>[table_name_53] { <col0>[venue]:[VARCHAR] <col1>[result]:[VARCHAR] <col2>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "5-1" AND `<col2>` = "3-0" | Which Venue has a Result of 5-1, and a Score of 3-0? |
<table0>[table_44964] { <col0>[text]:[Built] <col1>[text]:[Listed] <col2>[text]:[Location] <col3>[text]:[County] } | SELECT "Listed" FROM `<table0>` WHERE "County" = 'canyon' | When was the historic place listed that's in canyon county?
|
<table0>[table_name_24] { <col0>[date]:[VARCHAR] <col1>[winner]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "tom kite ( 10 )" | What is the date where the winner was Tom Kite (10)? |
<table0>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModer... | WITH DownVoteCount AS ( SELECT DownVoteCount = CAST( SUM( DownVotes ) AS FLOAT ) FROM `<table9>` ), DownVoteWeight AS ( SELECT DownVoteWeight = ROUND( DownVotes / ( SELECT DownVoteCount FROM DownVoteCount ) * 100, 4 ) FROM `<table9>` WHERE `<table9>`.DownVotes > 0 ) SELECT DownVoteWeight, NumberOf`<table9>` = COUNT( Do... | Number of users vs percentage of down votes (graph). |
<table0>[patients] { <col0>[INT]:[name] <col1>[TEXT]:[age] <col2>[INT]:[disease] <col3>[TEXT]:[country] <col4>[TEXT]:[INSERT] } | SELECT country, COUNT( * ) FROM `<table0>` WHERE disease = 'Malaria' AND country IN ( 'Kenya', 'Tanzania' ) GROUP BY country; | How many patients have been treated for Malaria in each country in Africa? |
<table0>[Aircraft] { <col0>[AircraftID]:[INT] <col1>[VARCHAR]:[Manufacturer] <col2>[VARCHAR]:[Passengers] <col3>[INT]:[INSERT] } | SELECT MAX( Passengers ) FROM `<table0>` WHERE Manufacturer = 'Airbus'; | What is the maximum number of passengers for Airbus aircraft? |
<table0>[WastewaterTreatmentPlants] { <col0>[PlantID]:[INT] <col1>[PlantName]:[VARCHAR] <col2>[Location]:[VARCHAR] <col3>[Capacity]:[FLOAT] } | DELETE FROM `<table0>` WHERE `<col0>` > 1000; | Delete records of wastewater treatment plants with a "PlantID" greater than 1000. |
<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 Price, `<col3>` FROM `<table1>` WHERE `<col2>` BETWEEN 60 AND 120 | For those products with a price between 60 and 120, return a scatter chart about the correlation between price and manufacturer . |
<table0>[table_name_22] { <col0>[attendance]:[INTEGER] <col1>[week]:[VARCHAR] <col2>[date]:[VARCHAR] } | SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` < 6 AND `<col2>` = "october 14, 2001" | What is the average attendance at week earlier than 6 on October 14, 2001?
|
<table0>[table_name_75] { <col0>[rank]:[INTEGER] <col1>[name]:[VARCHAR] <col2>[birth]:[VARCHAR] } | SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "he yingqin" AND `<col2>` < 1890 | What rank is He Yingqin who was born before 1890? |
<table0>[table_26464] { <col0>[Confederation]:[text] <col1>[Teams]:[started] <col2>[text]:[Teams] <col3>[secured]:[qualification] <col4>[text]:[Teams] <col5>[qualify]:[text] <col6>[Teams]:[eliminated] <col7>[text]:[Remaining] <col8>[places]:[finals] <col9>[text]:[Total] <col10>[places]:[finals] <col11>[text]:[Qualifyin... | SELECT "Qualifying `<col14>` date" FROM `<table0>` WHERE "Qualifying `<col12>` date" = 'Qualifying `<col12>` date' | What is the qualifying end date when the qualifying start date is qualifying start date?
|
<table0>[table_204_114] { <col0>[number]:[pos] <col1>[text]:[rider] <col2>[text]:[manufacturer] <col3>[text]:[time] <col4>[retired]:[text] <col5>[grid]:[number] <col6>[points]:[number] } | SELECT ABS( ( SELECT "points" FROM `<table0>` WHERE "rider" = 'erwan nigon' ) - ( SELECT "points" FROM `<table0>` WHERE "rider" = 'dirk heidolf' ) ) | what is the difference in points scored between erwan nigon and dirk heidolf ?
|
<table0>[table_41955] { <col0>[Tournament]:[text] <col1>[1993]:[text] <col2>[1994]:[text] <col3>[1995]:[text] <col4>[1996]:[text] <col5>[1997]:[text] <col6>[1998]:[text] <col7>[1999]:[text] <col8>[2000]:[text] <col9>[2001]:[text] <col10>[2002]:[text] <col11>[2003]:[text] <col12>[2004]:[text] <col13>[2005]:[text] <col14... | SELECT "2009" FROM `<table0>` WHERE "2008" = '1r' AND "Tournament" = 'french open' | What is 2009, when 2008 is 1R, and when Tournament is French Open?
|
<table0>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table1>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>[temperature]:[number] <col3>[sao2]:[number] <col4>[heart... | SELECT `<table6>`.drugstarttime FROM `<table6>` WHERE `<table6>`.`<table4>`unitstayid IN ( SELECT `<table4>`.`<table4>`unitstayid FROM `<table4>` WHERE `<table4>`.`<table4>`healthsystemstayid IN ( SELECT `<table4>`.`<table4>`healthsystemstayid FROM `<table4>` WHERE `<table4>`.uniquepid = '030-31704' ) ) AND `<table6>`.... | when was the first prescription time for ondansetron 2 mg/1 ml 2ml sdv inj for patient 030-31704 in 07/2102? |
<table0>[table_name_12] { <col0>[game]:[INTEGER] <col1>[record]:[VARCHAR] } | SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "45-16" | Which game had a record of 45-16?
|
<table0>[tickets] { <col0>[ticket_id]:[INT] <col1>[game_id]:[INT] <col2>[quantity]:[INT] <col3>[price]:[DECIMAL] <col4>[team]:[VARCHAR] } | SELECT AVG( `<table0>`.price ) FROM `<table0>` WHERE `<table0>`.team IN ( 'Cubs', 'Red Sox' ) GROUP BY `<table0>`.team HAVING `<table0>`.team IN ( 'Cubs', 'Red Sox' ); | What is the average ticket price for baseball games in Chicago and Boston? |
<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>`.dob, `<table3>`.gender FROM `<table3>` WHERE `<table3>`.name = "Bessie Giordano" | what is date of birth and gender of subject name bessie giordano?
|
<table0>[Transactions] { <col0>[INT]:[DApp_id] <col1>[INT]:[smart_contract_hash] <col2>[VARCHAR]:[volume] <col3>[DECIMAL]:[date] } | SELECT category, MAX( volume ) FROM `<table0>` JOIN DApps ON `<table0>`.DApp_id = DApps.id GROUP BY category; | What is the maximum transaction volume for each category in the 'Transactions' table? |
<table0>[renewable_energy] { <col0>[country]:[VARCHAR] <col1>[year]:[INT] <col2>[solar_generation]:[FLOAT] <col3>[wind_generation]:[FLOAT] <col4>[hydro_generation]:[FLOAT] } | INSERT INTO renewable_energy ( country, year, solar_generation, wind_generation, hydro_generation ) VALUES ( 'Australia', 2021, 25.6, 12.8, 38.9 ), ( 'India', 2021, 45.3, 32.1, 118.4 ), ( 'Brazil', 2021, 18.7, 14.6, 321.5 ); | Insert new records for renewable energy generation in 2021 for Australia, India, and Brazil |
<table0>[table_name_62] { <col0>[american]:[VARCHAR] <col1>[british]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "ə" | What is the American version of the British ə? |
<table0>[d_icd_procedures] { <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>[microbiologyevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[h... | SELECT `<table3>`.label FROM `<table3>` WHERE `<table3>`.itemid IN ( SELECT t1.itemid FROM ( SELECT `<table16>`.itemid, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM `<table16>` WHERE STRFTIME( '%y', `<table16>`.charttime ) = '2102' GROUP BY `<table16>`.itemid ) AS t1 WHERE t1.c1 <= 4 ) | what is the four, the most frequent input event in 2102? |
<table0>[height_info] { <col0>[height_id]:[integer] <col1>[height_in_cm]:[integer] <col2>[height_in_inch]:[text] } <table1>[weight_info] { <col0>[weight_id]:[integer] <col1>[weight_in_kg]:[integer] <col2>[weight_in_lbs]:[integer] } <table2>[PlayerInfo] { <col0>[ELITEID]:[integer] <col1>[PlayerName]:[text] <col2>[birt... | SELECT COUNT( T1.ELITEID ) FROM `<table2>` AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T2.height_in_inch > '6''2"' AND T1.nation = 'Sweden' | Among the players with a height of over 6'2" inches, how many of them were born in Sweden? |
<table0>[Tours] { <col0>[INT]:[name] <col1>[TEXT]:[country] <col2>[TEXT]:[type] <col3>[TEXT]:[revenue] <col4>[INT]:[INSERT] } | SELECT country, SUM( revenue ) AS total_revenue FROM `<table0>` GROUP BY country ORDER BY total_revenue DESC LIMIT 3; | Find the top 3 countries with the highest revenue from cultural heritage tours? |
<table0>[table_name_62] { <col0>[played]:[INTEGER] <col1>[points]:[VARCHAR] <col2>[drawn]:[VARCHAR] <col3>[lost]:[VARCHAR] } | SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col2>` > 0 AND `<col3>` < 3 AND `<col1>` < 27 | What is the highest played with more than 0 draws, less than 3 losses, and less than 27 points? |
<table0>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <table1>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } <ta... | SELECT ( SELECT `<table8>`.heartrate FROM `<table8>` WHERE `<table8>`.`<table2>`unitstayid IN ( SELECT `<table2>`.`<table2>`unitstayid FROM `<table2>` WHERE `<table2>`.`<table2>`healthsystemstayid IN ( SELECT `<table2>`.`<table2>`healthsystemstayid FROM `<table2>` WHERE `<table2>`.uniquepid = '021-95970' ) AND `<table2... | is heartrate of patient 021-95970 last measured on the current icu visit greater than second to last measured on the current icu visit? |
<table0>[covid_cases] { <col0>[INT]:[state] <col1>[TEXT]:[cases] <col2>[INT]:[INSERT] } | SELECT state, cases FROM `<table0>` ORDER BY cases DESC LIMIT 3; | Find the top 3 states with the most COVID-19 cases. |
<table0>[table_75457] { <col0>[Round]:[text] <col1>[Date]:[text] <col2>[Matches]:[real] <col3>[Clubs]:[text] <col4>[New]:[entries] <col5>[round]:[text] <col6>[Prize]:[money] } | SELECT "Clubs" FROM `<table0>` WHERE "Matches" = '46' | What are the clubs with 46 matches?
|
<table0>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[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] ... | WITH revisions_cte AS ( SELECT DISTINCT p.Id AS pid, ph1.Id AS phId FROM `<table17>` AS ph1 INNER JOIN Posts AS p ON ph1.PostId = p.Id WHERE ph1.`<table17>`TypeId IN ( 3, 6, 9 ) AND ph1.Text LIKE '%<##tagName?abstract-algebra##>%' AND NOT ( p.Tags LIKE '%<##tagName##>%' ) ), firstrev_cte AS ( SELECT pid, MIN( ph2.Id ) ... | Number of removals of the given tag per month.
|
<table0>[AutoShanghai] { <col0>[INT]:[VARCHAR] <col1>[100]:[Horsepower] <col2>[FLOAT]:[INSERT] } | SELECT AVG( Horsepower ) FROM `<table0>` WHERE Name LIKE '%Auto Shanghai 2021%' | What is the average horsepower of vehicles participating in the Auto Shanghai 2021? |
<table0>[table_26593762_3] { <col0>[incoming_manager]:[VARCHAR] <col1>[team]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Burnley" | How many incoming managers did Burnley have?
|
<table0>[table_4277] { <col0>[Season]:[real] <col1>[Date]:[text] <col2>[Location]:[text] <col3>[Discipline]:[text] <col4>[Position]:[real] <col5>[FIS]:[points] } | SELECT "Date" FROM `<table0>` WHERE "Location" = 'S. Valentino Alla Muta , Italia' | Name the date for s. valentino alla muta , italia |
<table0>[table_name_7] { <col0>[high_assists]:[VARCHAR] <col1>[game]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 3 | What was the highest assists for game 3? |
<table0>[table_name_2] { <col0>[top_25]:[INTEGER] <col1>[wins]:[INTEGER] } | SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` < 0 | What is the lowest Top-25 with Wins less than 0? |
<table0>[table_14346353_1] { <col0>[directed_by]:[VARCHAR] <col1>[teleplay_by]:[VARCHAR] <col2>[series__number]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "David Simon" AND `<col2>` = 4 | Who directed series #4 that was teleplayed by David Simon?
|
<table0>[Player] { <col0>[pName]:[VARCHAR] } | SELECT DISTINCT `<col0>` FROM `<table0>` WHERE `<col0>` LIKE '%a%' | Find the players whose names contain letter 'a'. |
<table0>[table_name_51] { <col0>[name]:[VARCHAR] <col1>[points]:[INTEGER] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` > 167.5 | Who has points larger than 167.5? |
<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 Posts.Id, Posts.Id AS "post_link", Posts.Title, Users.DisplayName, Posts.Score, Posts.ViewCount, Posts.CreationDate, Posts.LastEditDate, Posts.DeletionDate, Posts.ClosedDate FROM Posts, Users WHERE Posts.PostTypeId = 1 AND Posts.OwnerUserId = Users.Id AND ( LOWER( Posts.Title ) LIKE '%' + '##Keyword1:String##' +... | The titles of all questions. |
<table0>[CREATE] { <col0>[SCHEMA]:[fitness] } <table1>[users] { <col0>[INT]:[user_name] <col1>[VARCHAR]:[255] <col2>[state]:[VARCHAR] } <table2>[workouts] { <col0>[INT]:[user_id] <col1>[INT]:[workout_date] <col2>[DATE]:[avg_heart_rate] } | SELECT users.state, AVG( workouts.avg_heart_rate ) FROM fitness.users INNER JOIN fitness.workouts ON users.id = workouts.user_id GROUP BY users.state; | What is the average heart rate for users in each state? |
<table0>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModer... | SELECT ROW_NUMBER( ) OVER ( ORDER BY COUNT( * ) DESC ) AS rank, UserId AS "user_link", COUNT( * ) AS badges FROM `<table12>` WHERE Name = 'Necromancer' AND `<col2>` < '##Date?2015-04-14##' GROUP BY UserId ORDER BY `<table12>` DESC LIMIT 300 | Users with most Necromancer badges at 2015-04-14.
|
<table0>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[PostTypes] { <col0>[number]:[text] } <table2>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[... | SELECT Title, Id, PostTypeId FROM `<table2>` WHERE CreationDate BETWEEN '2014-07-01' AND '2014-07-31' | Limiting Posts by Date (Tutorial).
|
<table0>[smart_contracts] { <col0>[contract_address]:[VARCHAR] <col1>[user_address]:[VARCHAR] } | SELECT `<col1>` FROM `<table0>` WHERE `<col0>` = '0xdef...'; | List all users associated with a specific smart contract '0xdef...'. |
<table0>[procedures] { <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... | SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN procedures ON `<table4>`.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "3799" | count the number of patients whose procedure icd9 code is 3799? |
<table0>[table_11604804_5] { <col0>[founded]:[VARCHAR] <col1>[color]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Navy Blue" | What was the founding of navy blue? |
<table0>[table_name_4] { <col0>[tournament]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE 2012 = "a" AND 2010 = "q2" | What tournament had an A in 2012 and Q2 in 2010?
|
<table0>[authors] { <col0>[au_id]:[text] <col1>[au_lname]:[text] <col2>[au_fname]:[text] <col3>[phone]:[text] <col4>[address]:[text] <col5>[city]:[text] <col6>[state]:[text] <col7>[zip]:[text] <col8>[contract]:[text] } <table1>[jobs] { <col0>[job_id]:[integer] <col1>[job_desc]:[text] <col2>[min_lvl]:[integer] <col3>[m... | SELECT T3.stor_id, T2.title FROM `<table9>` AS T1 INNER JOIN titles AS T2 ON T1.title_id = T2.title_id INNER JOIN stores AS T3 ON T3.stor_id = T1.stor_id WHERE T3.stor_id = ( SELECT `<col0>` FROM `<table9>` GROUP BY `<col0>` ORDER BY SUM( `<col3>` ) DESC LIMIT 1 ) GROUP BY T3.stor_id, T2.title ORDER BY SUM( T1.qty ) AS... | Name the store with the highest quantity in sales? What is the least quantity title from the store's sale? |
<table0>[table_name_11] { <col0>[attendance]:[VARCHAR] <col1>[home_team]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "arsenal" | What was the attendance for Arsenal? |
<table0>[table_45219] { <col0>[Tournament]:[text] <col1>[2002]:[text] <col2>[2004]:[text] <col3>[2005]:[text] <col4>[2006]:[text] } | SELECT "2002" FROM `<table0>` WHERE "2004" = 'a' AND "2005" = '1r' | What shows for 2002 when the 2004 is A, and the 2005 is 1r?
|
<table0>[table_name_34] { <col0>[duration]:[VARCHAR] <col1>[start]:[VARCHAR] <col2>[stage]:[VARCHAR] <col3>[difficulty]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col2>` > 13 AND `<col3>` = "middle" AND `<col1>` = "son bou" | How long does the one that stars with son bou of middle difficulty, and on a stage number larger than 13 last? |
<table0>[table_name_64] { <col0>[race]:[INTEGER] <col1>[flap]:[VARCHAR] <col2>[podium]:[VARCHAR] <col3>[pole]:[VARCHAR] } | SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col2>` = 4 AND `<col3>` = 5 AND `<col1>` > 3 | How many races had 4 podiums, 5 poles and more than 3 Flaps?
|
<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>[la... | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN diagnoses ON `<table3>`.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON `<table3>`.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Obesity, unspecified" AND prescriptions.route = "PR" | provide the number of patients whose diagnoses long title is obesity, unspecified and drug route is pr?
|
<table0>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table1>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table2>[Votes] { <col0>[numbe... | SELECT c.UserId AS "user_link", c.CreationDate, c.Id AS "comment_link", c.PostId AS "post_link", c.Text FROM ( Comments AS c JOIN Posts AS p ON c.PostId = p.Id ) WHERE ( p.PostTypeId = 1 ) AND ( p.Tags LIKE '%<##tagName?gn.general-topology##>%' ) ORDER BY CreationDate DESC LIMIT 500 | Most recent comments on questions in a given tag. |
<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]:[t... | SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` INNER JOIN prescriptions ON `<table2>`.hadm_id = prescriptions.hadm_id WHERE `<table2>`.ethnicity = "BLACK/AFRICAN AMERICAN" AND prescriptions.drug = "Dextrose 50%" | count the number of patients whose ethnicity is black/african american and drug name is dextrose 50%? |
<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>[ReviewTaskResults] ... | SELECT t.RANK, t."user", t.Location, t.Reputation FROM ( SELECT Id, ROW_NUMBER( ) OVER ( ORDER BY Reputation DESC ) AS "rank", DisplayName AS "user", 'location', 'reputation' FROM `<table27>` WHERE LOWER( Location ) LIKE '%philippines%' ) AS t ORDER BY t.Reputation DESC | The top one in the philippines. |
<table0>[table_name_72] { <col0>[stadium]:[VARCHAR] <col1>[location]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "carrick-on-shannon" | What Gaelic Athletic Association stadium is located in Carrick-on-Shannon? |
<table0>[patients] { <col0>[patient_id]:[INT] <col1>[patient_name]:[VARCHAR] <col2>[condition]:[VARCHAR] <col3>[country]:[VARCHAR] <col4>[birth_date]:[DATE] } | SELECT MIN( YEAR( GETDATE( ) ) - YEAR( `<col4>` ) ) FROM `<table0>` WHERE `<table0>`.country = 'Japan' AND `<table0>`.condition LIKE '%Eating Disorder%'; | What is the minimum age of patients diagnosed with eating disorders in Japan? |
<table0>[table_58736] { <col0>[Year]:[real] <col1>[Entrant]:[text] <col2>[Chassis]:[text] <col3>[Engine]:[text] <col4>[Pts]:[text] } | SELECT SUM( "Year" ) FROM `<table0>` WHERE "Pts." = '54 ( 73 )' | What year has 54 (73) points?
|
<table0>[habitats] { <col0>[INT]:[name] <col1>[TEXT]:[animal_id] <col2>[INT]:[size_km2] <col3>[FLOAT]:[INSERT] } | SELECT a.species, AVG( h.size_km2 ) as avg_size FROM animals a JOIN habitats h ON a.id = h.animal_id GROUP BY a.species; | What is the average size of protected habitats for each animal species? |
<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>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4... | SELECT `<table13>`.charttime FROM `<table13>` WHERE `<table13>`.hadm_id IN ( SELECT `<table16>`.hadm_id FROM `<table16>` WHERE `<table16>`.subject_id = 97733 ) AND DATETIME( `<table13>`.charttime, 'start of month' ) = DATETIME( CURRENT_TIME( ), 'start of month', '-0 month' ) ORDER BY `<table13>`.charttime DESC LIMIT 1 | when patient 97733 last received a microbiology test during this month? |
<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_Neutral, `<col4>` FROM `<table1>` ORDER BY `<col4>` DESC | A bar chart shows the distribution of All_Neutral and ACC_Percent , display from high to low by the ACC_Percent.
|
<table0>[table_name_50] { <col0>[player]:[VARCHAR] <col1>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 70 - 69 - 70 = 209 | Who had a score of 70-69-70=209? |
<table0>[table_name_54] { <col0>[manufacturer]:[VARCHAR] <col1>[laps]:[VARCHAR] <col2>[grid]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` < 20 AND `<col2>` = 21 | What kind of Manufacturer has a Laps smaller than 20 and a Grid of 21 |
<table0>[virtual_tours] { <col0>[tour_id]:[INT] <col1>[site_name]:[VARCHAR] <col2>[255]:[country] <col3>[VARCHAR]:[255] <col4>[visits]:[INT] } | SELECT site_name, COUNT( * ) as num_tours FROM `<table0>` WHERE country = 'Italy' GROUP BY site_name; | List the number of virtual tours for each cultural heritage site in Italy. |
<table0>[table_12013] { <col0>[Rider]:[text] <col1>[Horse]:[text] <col2>[Faults]:[text] <col3>[Round]:[Points] <col4>[text]:[Total] } | SELECT "Horse" FROM `<table0>` WHERE "Faults" = '9' AND "Total" = '46.36' | Tell me the horse when the faults are 9 and the total is 46.36
|
<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>[regions] { <col0>[REGION_ID]:[decimal] <col1>[REGION_NAME]:[varchar] } <table2>[job_history] { <col0>[EMPLO... | SELECT EMPLOYEE_ID, `<col7>` FROM `<table5>` WHERE NOT `<col0>` IN ( SELECT `<col0>` FROM `<table2>` ) | For those employees who did not have any job in the past, a scatter chart shows the correlation between employee_id and salary . |
<table0>[table_name_40] { } | SELECT 2011 FROM `<table0>` WHERE 2012 = "2r" AND 2010 = "2r" AND 2009 = "2r" | Tell me the 2011 with 2012 of 2r
|
<table0>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table1>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table2>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3... | SELECT COUNT( * ) FROM `<table2>` WHERE Tags LIKE '%python%' AND AcceptedAnswerId IS NULL | How many posts with 'python' tag have no accepted answer. |
<table0>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table1>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[t... | SELECT t1.`<table6>`name FROM ( SELECT `<table6>`.`<table6>`name, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM `<table6>` WHERE `<table6>`.`<table5>`unitstayid IN ( SELECT `<table5>`.`<table5>`unitstayid FROM `<table5>` WHERE `<table5>`.age BETWEEN 50 AND 59 ) AND DATETIME( `<table6>`.`<table6>`resulttime... | what were the three most common lab tests performed during this year for patients aged 50s? |
<table0>[departments] { <col0>[DEPARTMENT_ID]:[decimal] <col1>[DEPARTMENT_NAME]:[varchar] <col2>[MANAGER_ID]:[decimal] <col3>[LOCATION_ID]:[decimal] } <table1>[locations] { <col0>[LOCATION_ID]:[decimal] <col1>[STREET_ADDRESS]:[varchar] <col2>[POSTAL_CODE]:[varchar] <col3>[CITY]:[varchar] <col4>[STATE_PROVINCE]:[varcha... | SELECT JOB_ID, SUM( `<col9>` ) FROM `<table3>` WHERE `<col1>` LIKE '%D%' OR `<col1>` LIKE '%S%' GROUP BY `<col6>` ORDER BY SUM( `<col9>` ) DESC | For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of job_id and the sum of manager_id , and group by attribute job_id, list by the y axis in descending. |
<table0>[table_66773] { <col0>[Episode]:[text] <col1>[aired]:[text] <col2>[Entrepreneur]:[text] <col3>[Company]:[product] <col4>[name]:[text] <col5>[Money]:[requested] <col6>[u00a3]:[text] <col7>[Investing]:[Dragon] } | SELECT "Company or product name" FROM `<table0>` WHERE "Episode" = 'episode 3' AND "Investing Dragon( s )" = 'deborah meaden' | What is the name of the Company or Product that is Episode 3 and is suppoted by Investing Dragon Deborah Meaden?
|
<table0>[table_name_94] { <col0>[high_assists]:[VARCHAR] <col1>[game]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 1 | What was the number of high assists for game 1?
|
<table0>[table_name_40] { <col0>[station_number]:[VARCHAR] <col1>[location]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "dogsthorpe" | What is the station number of the station at Dogsthorpe? |
<table0>[Rooms] { <col0>[RoomId]:[TEXT] <col1>[roomName]:[TEXT] <col2>[beds]:[INTEGER] <col3>[bedType]:[TEXT] <col4>[maxOccupancy]:[INTEGER] <col5>[basePrice]:[INTEGER] <col6>[decor]:[TEXT] } <table1>[Reservations] { <col0>[Code]:[INTEGER] <col1>[Room]:[TEXT] <col2>[CheckIn]:[TEXT] <col3>[CheckOut]:[TEXT] <col4>[Rate]... | SELECT roomName, COUNT( roomName ) FROM `<table1>` AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE `<col6>` LIKE '%ROY%' GROUP BY roomName | A bar chart for finding the number of the name of rooms booked by some customers whose first name contains ROY. |
<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>[prescr... | SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN diagnoses ON `<table4>`.hadm_id = diagnoses.hadm_id WHERE `<table4>`.age < "50" AND diagnoses.long_title = "Acute vascular insufficiency of intestine" | what is the number of patients with acute vascular insufficiency of intestine who are less than 50 years of age?
|
<table0>[table_26614365_1] { <col0>[central]:[VARCHAR] <col1>[english]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "robbers" | What is the central word for 'robbers'?
|
<table0>[table_name_82] { <col0>[surface]:[VARCHAR] <col1>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "4–6, 6–3, 6–1" | On what surface was the match played with a score of 4–6, 6–3, 6–1? |
<table0>[patients] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[age] <col2>[INT]:[gender] <col3>[VARCHAR]:[country] } | SELECT age, gender FROM `<table0>` WHERE country = 'Italy' AND id IN ( SELECT patient_id FROM therapy_sessions WHERE therapy_type = 'online therapy' ); | What are the demographics of patients who received online therapy in Italy? |
<table0>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table1>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosist... | SELECT SUM( `<table6>`.cellvaluenumeric ) FROM `<table6>` WHERE `<table6>`.`<table2>`unitstayid IN ( SELECT `<table2>`.`<table2>`unitstayid FROM `<table2>` WHERE `<table2>`.`<table2>`healthsystemstayid IN ( SELECT `<table2>`.`<table2>`healthsystemstayid FROM `<table2>` WHERE `<table2>`.uniquepid = '009-8833' ) ) AND `<... | what is the total urine output amount for patient 009-8833? |
<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>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3... | SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN procedures ON `<table4>`.hadm_id = procedures.hadm_id WHERE `<table4>`.days_stay > "6" AND procedures.long_title = "Cardiopulmonary resuscitation, not otherwise specified" | How many patients who had cardiopulmonary resustication not otherwise specified and had to stay in the hospital for more than 2 days? |
<table0>[table_19523142_5] { <col0>[group_11]:[VARCHAR] <col1>[group_12]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Persipal Palu" | Who played in group 11 when Persipal Palu played in group 12? |
<table0>[norwegian_dams] { <col0>[INT]:[name] <col1>[TEXT]:[country] <col2>[TEXT]:[energy_efficiency_rating] <col3>[FLOAT]:[INSERT] } | SELECT AVG( energy_efficiency_rating ) FROM `<table0>` WHERE country = 'Norway'; | What is the average energy efficiency rating of hydroelectric dams in Norway? |
<table0>[table_225880_1] { <col0>[winning_score]:[VARCHAR] <col1>[championship]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "PGA championship" | Name the winning score for pga championship |
<table0>[playstore] { <col0>[App]:[text] <col1>[Category]:[text] <col2>[Rating]:[real] <col3>[Reviews]:[integer] <col4>[Size]:[text] <col5>[Installs]:[text] <col6>[Type]:[text] <col7>[Price]:[text] <col8>[Content]:[Rating] <col9>[text]:[Genres] } <table1>[user_reviews] { <col0>[App]:[text] <col1>[Translated_Review]:[t... | SELECT Genres FROM `<table0>` WHERE `<col5>` = '1,000,000,000+' GROUP BY Genres | List out genre that have downloads more than 1000000000. |
<table0>[table_66631] { <col0>[Position]:[real] <col1>[text]:[Played] <col2>[real]:[Drawn] <col3>[real]:[Lost] <col4>[real]:[Points] } | SELECT SUM( "Drawn" ) FROM `<table0>` WHERE "Lost" > '8' AND "Points" < '7' | Which Drawn has a Lost larger than 8, and Points smaller than 7?
|
<table0>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table1>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table2>[PostHistoryTypes] { <col0>[number]:[t... | SELECT Name, AVG( CAST( DATEDIFF( DAY, CreationDate, DeletionDate ) AS FLOAT ) ) FROM `<table25>` INNER JOIN ReviewTaskTypes ON `<table25>`.ReviewTaskTypeId = ReviewTaskTypes.Id WHERE CreationDate BETWEEN '##DateFrom:string##' AND '##DateTill:string##' AND NOT DeletionDate IS NULL GROUP BY Name | Average review time per task type.
|
<table0>[table_train_67] { <col0>[int]:[corticosteroid_therapy] <col1>[bool]:[viral_infection] <col2>[bool]:[active_infection] <col3>[bool]:[hiv_infection] <col4>[bool]:[neutropenia] <col5>[int]:[receiving_prednisolone] <col6>[int]:[age] <col7>[float]:[NOUSE] } | SELECT * FROM `<table0>` WHERE hiv_infection = 1 | presence of hiv infection
|
<table0>[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]... | SELECT DISTINCT flight.flight_id FROM `<table21>` AS AIRPORT_SERVICE_0, `<table21>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_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.city_name = 'ATLANTA' AND DAYS_0.day_name = ... | first flights and fares from PITTSBURGH to ATLANTA on a THURSDAY
|
<table0>[CaseAttorney] { <col0>[CaseID]:[INT] <col1>[AttorneyID]:[INT] <col2>[Outcome]:[VARCHAR] } | SELECT DISTINCT `<table0>`.AttorneyID FROM `<table0>` WHERE `<table0>`.Outcome = 'Favorable'; | Which attorneys have worked on cases with a specific outcome? |
<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 COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` WHERE `<table2>`.marital_status = "WIDOWED" AND `<table2>`.age < "89" | what is the number of patients whose marital status is widowed and age is less than 89? |
<table0>[security_incidents] { <col0>[INT]:[department] <col1>[VARCHAR]:[date] <col2>[DATE]:[time_to_resolve] <col3>[INT]:[INSERT] } | SELECT department, AVG( time_to_resolve ) as avg_time_to_resolve FROM `<table0>` WHERE date BETWEEN '2022-01-01' AND '2022-06-30' GROUP BY department; | What is the average time to resolve a security incident in each department for the last 6 months? |
<table0>[table_287] { <col0>[Delegate]:[text] <col1>[Interview]:[text] <col2>[Swimsuit]:[text] <col3>[Evening]:[Gown] <col4>[text]:[Average] } | SELECT "Interview" FROM `<table0>` WHERE "Delegate" = 'Peru' | Name the interview for peru delegate
|
<table0>[table_1341604_10] { <col0>[result]:[VARCHAR] <col1>[district]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Florida 14" | how many result with district being florida 14 |
<table0>[BusStations] { <col0>[INT]:[borough] <col1>[VARCHAR]:[255] <col2>[station_name]:[VARCHAR] } <table1>[TrainStations] { <col0>[INT]:[district] <col1>[VARCHAR]:[255] <col2>[station_name]:[VARCHAR] } <table2>[TramStations] { <col0>[INT]:[district] <col1>[VARCHAR]:[255] <col2>[station_name]:[VARCHAR] } | SELECT 'Bus' as transportation, borough, COUNT( * ) as station_count FROM `<table0>` GROUP BY borough UNION ALL SELECT 'Train', district, COUNT( * ) FROM `<table1>` GROUP BY district UNION ALL SELECT 'Tram', district, COUNT( * ) FROM `<table2>` GROUP BY district UNION ALL SELECT 'Total', '', COUNT( * ) FROM `<table0>` ... | Find the number of bus, train and tram stations in each borough or district, and the total number of stations. |
<table0>[table_18847692_2] { <col0>[record]:[VARCHAR] <col1>[opponent]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Washington Redskins" | What is the record when the opponent is washington redskins? |
<table0>[table_name_49] { <col0>[ihsaa_class]:[VARCHAR] <col1>[location]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "columbia city" | Which IHSAA Class has a Location of columbia city? |
<table0>[table_name_89] { <col0>[laps]:[INTEGER] <col1>[time_retired]:[VARCHAR] } | SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "+48.325" | What is the average number of laps that were made when the race took a time of +48.325? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.