schema stringlengths 20 14.6k | query stringlengths 17 2.58k | question stringlengths 8 1.06k |
|---|---|---|
<table0>[table_204_489] { <col0>[number]:[rank] <col1>[number]:[name] <col2>[text]:[height] <col3>[text]:[floors] <col4>[number]:[year] <col5>[number]:[notes] } | SELECT "name" FROM `<table0>` ORDER BY "height" DESC LIMIT 1 | what is the tallest building in bosie , idaho ? |
<table0>[table_name_66] { <col0>[pick__number]:[INTEGER] <col1>[name]:[VARCHAR] <col2>[round]:[VARCHAR] } | SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "deji karim" AND `<col2>` < 6 | What was the pick number for Deji Karim, in a round lower than 6? |
<table0>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table1>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culture... | SELECT ( SELECT `<table2>`.systemicdiastolic FROM `<table2>` WHERE `<table2>`.`<table5>`unitstayid IN ( SELECT `<table5>`.`<table5>`unitstayid FROM `<table5>` WHERE `<table5>`.`<table5>`healthsystemstayid IN ( SELECT `<table5>`.`<table5>`healthsystemstayid FROM `<table5>` WHERE `<table5>`.uniquepid = '028-56914' ) AND ... | is systemicdiastolic of patient 028-56914 second measured on the last icu visit greater than the first value measured on the last icu visit? |
<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 lab ON `<table4>`.hadm_id = lab.hadm_id WHERE `<table4>`.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND lab.itemid = "51214" | provide the number of patients whose ethnicity is hispanic/latino - puerto rican and item id is 51214? |
<table0>[table_name_92] { <col0>[week]:[VARCHAR] <col1>[away_team]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "auckland" | In what week was the away team Auckland?
|
<table0>[table_name_65] { <col0>[club]:[VARCHAR] <col1>[try_bonus]:[VARCHAR] <col2>[drawn]:[VARCHAR] <col3>[lost]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col2>` = "1" AND `<col3>` = "11" AND `<col1>` = "7" | Which club had 1, draw, 11 lost, and a try bonus of 7? |
<table0>[mobile_subscribers] { <col0>[subscriber_id]:[INT] <col1>[region]:[VARCHAR] <col2>[compliant]:[BOOLEAN] } | SELECT `<col1>` FROM `<table0>` WHERE `<col2>` = false; | List the regions where mobile subscribers are not compliant with regulatory data retention policies. |
<table0>[table_name_4] { <col0>[Field]:[VARCHAR] <col1>[player]:[VARCHAR] <col2>[goals]:[VARCHAR] <col3>[tries]:[VARCHAR] <col4>[points]:[VARCHAR] } | SELECT COUNT( `<col0>` ) AS `<col2>` FROM `<table0>` WHERE `<col3>` > 4 AND `<col4>` > 32 AND `<col2>` = 0 AND `<col1>` = "denan kemp" | What is the total number of field goals of Denan Kemp, who has more than 4 tries, more than 32 points, and 0 goals?
|
<table0>[table_name_36] { <col0>[visiting_team]:[VARCHAR] <col1>[date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "october 18" | What visiting team played on October 18? |
<table0>[table_203_254] { <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 "team" FROM `<table0>` WHERE "position" = 1 | who finished first ? |
<table0>[orders] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[supplier_id] <col2>[INT]:[material_id] <col3>[INT]:[quantity] <col4>[INT]:[order_date] <col5>[DATE]:[INSERT] } <table1>[ethical_certifications] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[supplier_id] <col2>[INT]:[certification_name] <col3>[VARCHAR]:[255] <col4>[certifica... | SELECT o.supplier_id, SUM( o.quantity ) as total_quantity, o.order_date FROM `<table0>` o LEFT JOIN ethical_certifications ec ON o.supplier_id = ec.supplier_id WHERE ec.supplier_id IS NULL GROUP BY o.supplier_id, o.order_date; | Calculate the total quantity of orders for each supplier on each date, excluding orders from suppliers with ethical certification. |
<table0>[table_14615] { <col0>[Year]:[real] <col1>[Entrant]:[text] <col2>[Chassis]:[text] <col3>[Engine]:[text] <col4>[Points]:[real] } | SELECT "Entrant" FROM `<table0>` WHERE "Year" < '1953' AND "Chassis" = 'moore' | What entrant drove a car with a Moore chassis prior to 1953?
|
<table0>[country] { <col0>[integer]:[country_name] } <table1>[ranking_system] { <col0>[integer]:[system_name] } <table2>[ranking_criteria] { <col0>[integer]:[ranking_system_id] <col1>[integer]:[criteria_name] } <table3>[university] { <col0>[integer]:[country_id] <col1>[integer]:[university_name] } <table4>[universi... | SELECT T2.country_name FROM `<table3>` AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T1.`<table3>`_name = 'Harvard University' | In which nation is Harvard University located? |
<table0>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table1>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentim... | 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 ) >= '2101' GROUP BY `<table5>`.`<table5>`name ) AS t1 WHERE t1.c1 <= 5 | since 2101, what are the top five most common procedures? |
<table0>[table_26335] { <col0>[Player]:[text] <col1>[text]:[Min] <col2>[Avg]:[text] <col3>[FGA]:[text] <col4>[Pct]:[text] <col5>[3FG]:[FGA] <col6>[text]:[3FG] <col7>[Pct]:[text] <col8>[FTA]:[text] <col9>[Pct]:[text] <col10>[Reb]:[real] <col11>[Ast]:[real] <col12>[Blk]:[real] <col13>[Stl]:[real] <col14>[Pts]:[real] <col... | SELECT "FG-FGA" FROM `<table0>` WHERE "FT-FTA" = '16-21' | what is the score in fg-fga if in ft-fta is 16-21
|
<table0>[table_23394920_1] { <col0>[power_kw]:[VARCHAR] <col1>[callsign]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "DXZB-TV" | When dxzb-tv is the call sign what is the power kw? |
<table0>[Player] { <col0>[pID]:[numeric] <col1>[pName]:[varchar] <col2>[yCard]:[varchar] } <table1>[Tryout] { <col0>[pID]:[numeric] <col1>[cName]:[varchar] <col2>[pPos]:[varchar] <col3>[decision]:[varchar] } <table2>[College] { <col0>[cName]:[varchar] <col1>[state]:[varchar] <col2>[enr]:[numeric] } | SELECT state, MIN( `<col2>` ) FROM `<table2>` GROUP BY `<col1>` | A pie chart for the proportion of the smallest enrollment in each state. |
<table0>[biodiversity] { <col0>[INT]:[species] <col1>[VARCHAR]:[255] <col2>[population]:[INT] } | SELECT MAX( `<col2>` ) FROM `<table0>` WHERE `<col2>` > 10000; | What is the maximum population of species in the 'biodiversity' table for those with a population greater than 10000? |
<table0>[airport] { <col0>[airport_code]:[varchar] <col1>[airport_name]:[text] <col2>[airport_location]:[text] <col3>[state_code]:[varchar] <col4>[country_name]:[varchar] <col5>[time_zone_code]:[varchar] <col6>[minimum_connect_time]:[int] } <table1>[airport_service] { <col0>[city_code]:[varchar] <col1>[airport_code]:[... | SELECT DISTINCT flight.flight_id FROM `<table1>` AS AIRPORT_SERVICE_0, `<table1>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND ... | show me flights from ATLANTA to WASHINGTON |
<table0>[table_name_75] { <col0>[year_of_release]:[VARCHAR] <col1>[title]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "what goes around comes around" | What is the total year of release of the title what goes around comes around? |
<table0>[canadian_provinces] { <col0>[province_name]:[TEXT] <col1>[province_abbr]:[TEXT] } <table1>[organic_farmland] { <col0>[country]:[TEXT] <col1>[province]:[TEXT] <col2>[area]:[INTEGER] <col3>[year]:[INTEGER] } | SELECT province, SUM( `<col2>` ) FROM `<table1>` JOIN canadian_provinces ON `<table1>`.province = canadian_provinces.province_abbr WHERE `<col3>` = 2016 GROUP BY province; | Find the total area of organic farmland in each province of Canada in 2016. |
<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>`.marital_status = "MARRIED" AND prescriptions.route = "PB" | provide the number of patients whose marital status is married and drug route is pb? |
<table0>[advisor] { <col0>[s_ID]:[varchar] <col1>[i_ID]:[varchar] } <table1>[student] { <col0>[varchar]:[name] <col1>[varchar]:[dept_name] <col2>[varchar]:[tot_cred] } <table2>[classroom] { <col0>[building]:[varchar] <col1>[room_number]:[varchar] <col2>[capacity]:[numeric] } <table3>[teaches] { <col0>[varchar]:[cour... | SELECT title, COUNT( `<col1>` ) FROM `<table10>` AS T1 JOIN teaches AS T2 ON T1.`<table10>`_id = T2.`<table10>`_id JOIN instructor AS T3 ON T2.ID = T3.ID WHERE year = 2008 GROUP BY `<col1>` ORDER BY COUNT( `<col1>` ) DESC | How many instructors for every course in 2008? Show me a bar chart grouping by course title, and rank by the y axis in desc. |
<table0>[Person] { <col0>[name]:[varchar] <col1>[age]:[INTEGER] <col2>[city]:[TEXT] <col3>[gender]:[TEXT] <col4>[job]:[TEXT] } <table1>[PersonFriend] { <col0>[name]:[varchar] <col1>[friend]:[varchar] <col2>[year]:[INTEGER] } | SELECT friend, `<col1>` FROM `<table0>` AS T1 JOIN `<table0>`Friend AS T2 ON T1.name = T2.friend WHERE T1.age > ( SELECT AVG( `<col1>` ) FROM `<table0>` ) ORDER BY `<col1>` DESC | Who has friends that are older than the average age? Print their friends and their ages as well using a bar chart, and display by the Y-axis from high to low.
|
<table0>[Multimodal_Data] { <col0>[INT]:[City] <col1>[VARCHAR]:[Mode] <col2>[VARCHAR]:[Month] <col3>[VARCHAR]:[INSERT] } | SELECT ( COUNT( * ) * 100.0 / ( SELECT COUNT( * ) FROM `<table0>` WHERE City = 'Chicago' AND Month = 'June' ) ) FROM `<table0>` WHERE City = 'Chicago' AND Month = 'June' AND Mode IN ( 'Bus', 'Train' ); | What is the percentage of multimodal trips in the city of Chicago in the month of June? |
<table0>[table_name_24] { <col0>[laps]:[VARCHAR] <col1>[grid]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = 19 | What is the total laps for grid 19? |
<table0>[table_23483182_1] { <col0>[directed_by]:[VARCHAR] <col1>[production_code]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 414 | Who directed 414?
|
<table0>[activities_america] { <col0>[activity_id]:[INT] <col1>[activity_name]:[VARCHAR] <col2>[255]:[region] <col3>[VARCHAR]:[255] } | SELECT COUNT( * ) FROM `<table0>` WHERE region = 'America'; | What is the total number of sustainable tourism activities in the American region? |
<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 AVG( `<table5>`.systemicmean ) FROM `<table5>` WHERE `<table5>`.`<table2>`unitstayid IN ( SELECT `<table2>`.`<table2>`unitstayid FROM `<table2>` WHERE `<table2>`.`<table2>`healthsystemstayid IN ( SELECT `<table2>`.`<table2>`healthsystemstayid FROM `<table2>` WHERE `<table2>`.uniquepid = '035-11687' ) ) AND NOT `... | what was patient 035-11687's average systemicmean, on this month/19?
|
<table0>[MentalHealthScores] { <col0>[Patient_ID]:[INT] <col1>[Region]:[VARCHAR] <col2>[Parity_Score]:[INT] } | SELECT m.Region, SUM( m.Parity_Score ) as Total_Score FROM `<table0>` m GROUP BY m.Region; | What is the total mental health parity score for patients in each region? |
<table0>[table_name_5] { <col0>[score]:[VARCHAR] <col1>[record]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "37–26–9" | What was the score of the game with a record of 37 26 9? |
<table0>[table_train_69] { <col0>[int]:[systolic_blood_pressure_sbp] <col1>[int]:[language] <col2>[string]:[valvular_dysfunction] <col3>[bool]:[heart_disease] <col4>[bool]:[temperature] <col5>[float]:[sepsis] <col6>[bool]:[heart_rate] <col7>[int]:[lipid_metabolism] <col8>[bool]:[organ_failure] <col9>[bool]:[NOUSE] } | SELECT * FROM `<table0>` WHERE sepsis = 1 AND organ_failure = 1 | sepsis accompanied by organ dysfunction represented by an increase in the sequential organ failure assessment ( sofa ) score of 2 points or more.
|
<table0>[table_22078906_2] { <col0>[title]:[VARCHAR] <col1>[directed_by]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "William Webb" | What is the title of the episode directed by William Webb? |
<table0>[table_name_81] { <col0>[days]:[VARCHAR] <col1>[hours]:[VARCHAR] <col2>[minutes]:[VARCHAR] <col3>[dates]:[VARCHAR] } | SELECT days, _hours, _minutes FROM `<table0>` WHERE `<col3>` = "21 – 26 october" | What is the Days, hours, minutes for 21 26 October?
|
<table0>[wrestler] { <col0>[VARCHAR]:[Days_held] } | SELECT Name FROM `<table0>` ORDER BY Days_held LIMIT 1 | What is the name of the wrestler with the fewest days held? |
<table0>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table1>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9co... | SELECT SUM( `<table8>`.cellvaluenumeric ) FROM `<table8>` WHERE `<table8>`.`<table6>`unitstayid IN ( SELECT `<table6>`.`<table6>`unitstayid FROM `<table6>` WHERE `<table6>`.`<table6>`healthsystemstayid IN ( SELECT `<table6>`.`<table6>`healthsystemstayid FROM `<table6>` WHERE `<table6>`.uniquepid = '027-81062' ) ) AND `... | what was the total amount of input that patient 027-81062 received since 1038 days ago? |
<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 `<table4>`.subject_id ) FROM `<table4>` WHERE `<table4>`.age < "27" AND `<table4>`.days_stay > "16" | how many patients under the age of 27 stayed in the hospital for more than 16 days? |
<table0>[table_27998152_1] { <col0>[previous_club]:[VARCHAR] <col1>[name]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Ben Williams" | for the ben williams name what was the previous club
|
<table0>[table_57359] { <col0>[Player]:[text] <col1>[Car]:[real] <col2>[Yards]:[text] <col3>[Avg]:[text] <col4>[real]:[Long] } | SELECT "Avg." FROM `<table0>` WHERE "Yards" = '1' | Tell me the average for 1 yards
|
<table0>[Student] { <col0>[StuID]:[number] <col1>[LName]:[text] <col2>[Fname]:[text] <col3>[Age]:[number] <col4>[Sex]:[text] <col5>[Major]:[number] <col6>[Advisor]:[number] <col7>[city_code]:[text] } <table1>[Club] { <col0>[ClubID]:[number] <col1>[ClubName]:[text] <col2>[ClubDesc]:[text] <col3>[ClubLocation]:[text] }... | SELECT count( DISTINCT t2.position ) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = "Bootup Baltimore" | Count the number of different positions in the club "Bootup Baltimore". |
<table0>[table_39788] { <col0>[Stake]:[text] <col1>[Organized]:[text] <col2>[Number]:[Wards] <col3>[Branches]:[Arkansas] <col4>[real]:[Stake] <col5>[President]:[text] <col6>[Occupation]:[text] } | SELECT "Organized" FROM `<table0>` WHERE "Stake President" = 'henry john platt' | What is the organized section when the stake president was henry john platt? |
<table0>[table_26614365_5] { <col0>[galician___reintegrationist]:[VARCHAR] <col1>[galician___official]:[VARCHAR] } | SELECT galician___reintegrationist__ FROM `<table0>` WHERE galician___official__ = "Bo día / Bos días" | What is the Galician (reintegrationist) word of the Galician (Official) is bo día / bos días? |
<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>` WHERE `<table3>`.admission_location = "PHYS REFERRAL/NORMAL DELI" AND `<table3>`.diagnosis = "ANGIOEDEMA" | provide the number of patients whose admission location is phys referral/normal deli and primary disease is angioedema? |
<table0>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table1>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table2>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[numb... | SELECT t1.drug FROM ( SELECT `<table10>`.drug, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM `<table10>` WHERE `<table10>`.hadm_id IN ( SELECT `<table12>`.hadm_id FROM `<table12>` WHERE `<table12>`.age BETWEEN 40 AND 49 ) AND DATETIME( `<table10>`.startdate ) <= DATETIME( CURRENT_TIME( ), '-4 year' ) GROUP... | what are the four most frequently prescribed drug for patients of age 40s until 4 years ago?
|
<table0>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table1>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } <table2>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table3>[time... | SELECT DISTINCT `<table10>`_code FROM `<table10>` WHERE `<table10>`_code = '72S' | what is the seating capacity of a 72S |
<table0>[table_name_61] { <col0>[result]:[VARCHAR] <col1>[competition]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "friendly" | What was the result of the Competition of friendly? |
<table0>[machines] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[name] <col2>[VARCHAR]:[255] <col3>[type]:[VARCHAR] <col4>[255]:[status] <col5>[VARCHAR]:[255] } | CREATE VIEW operational_`<table0>` AS SELECT * FROM `<table0>` WHERE status = 'Operational'; | Create a view named 'operational_machines' that retrieves all machines with status 'Operational' |
<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 `<table2>`.subject_id ) FROM `<table2>` INNER JOIN lab ON `<table2>`.hadm_id = lab.hadm_id WHERE `<table2>`.dob_year < "2168" AND lab.itemid = "51375" | What is the total number of patients with item id 51375, who were born before the year 2168. |
<table0>[table_name_54] { <col0>[time]:[VARCHAR] <col1>[nationality]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "russia" | What is the time for Russia? |
<table0>[table_204_568] { <col0>[number]:[pennant] <col1>[text]:[name] <col2>[text]:[hull] <col3>[builder]:[text] <col4>[ordered]:[text] <col5>[laid]:[text] <col6>[launched]:[text] <col7>[accepted]:[service] <col8>[text]:[commissioned] <col9>[text]:[est] <col10>[building]:[cost] <col11>[text]:[fate] } | SELECT "pennant" FROM `<table0>` WHERE id = ( SELECT id FROM `<table0>` WHERE "pennant" = 'f172' ) + 1 | what is the next pennant after f172 ? |
<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 Id AS "user_link" FROM `<table4>` WHERE AboutMe LIKE '%wishlist%' OR AboutMe LIKE '%patron%' | users with amazon wishlist or patreon links. https://meta.stackexchange.com/questions/315146/donation-button-or-giving-rewards-instead-of-bounty |
<table0>[table_53929] { <col0>[text]:[text] <col1>[text]:[text] } | SELECT "8:30" FROM `<table0>` WHERE "9:00" = 'one tree hill ( reruns )' | what is on a 8:30 when at 9:00 it is one tree hill (reruns)? |
<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 `<table4>`.startdate FROM `<table4>` WHERE `<table4>`.hadm_id IN ( SELECT `<table16>`.hadm_id FROM `<table16>` WHERE `<table16>`.subject_id = 27362 AND NOT `<table16>`.dischtime IS NULL ORDER BY `<table16>`.admittime DESC LIMIT 1 ) AND `<table4>`.route = 'irr' ORDER BY `<table4>`.startdate LIMIT 1 | when was patient 27362 first prescribed the medication via the irr route in the last hospital visit?
|
<table0>[certificate] { <col0>[eid]:[number] <col1>[aid]:[number] } <table1>[flight] { <col0>[flno]:[number] <col1>[origin]:[varchar2] <col2>[destination]:[varchar2] <col3>[distance]:[number] <col4>[departure_date]:[date] <col5>[arrival_date]:[date] <col6>[price]:[number] <col7>[aid]:[number] } <table2>[aircraft] { <... | SELECT name, COUNT( * ) FROM `<table1>` AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid ORDER BY name | Show aircraft names and number of flights for each aircraft, and show from low to high by the X.
|
<table0>[table_name_86] { <col0>[goals]:[VARCHAR] <col1>[date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "3/10/97" | What were the goals on 3/10/97? |
<table0>[regions] { <col0>[REGION_ID]:[decimal] <col1>[REGION_NAME]:[varchar] } <table1>[countries] { <col0>[COUNTRY_ID]:[varchar] <col1>[COUNTRY_NAME]:[varchar] <col2>[REGION_ID]:[decimal] } <table2>[locations] { <col0>[LOCATION_ID]:[decimal] <col1>[STREET_ADDRESS]:[varchar] <col2>[POSTAL_CODE]:[varchar] <col3>[CITY... | SELECT FIRST_NAME, `<col8>` FROM `<table3>` WHERE NOT `<col10>` IN ( SELECT `<col10>` FROM `<table5>` 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 distribution of first_name and commission_pct in a bar chart. |
<table0>[table_name_44] { <col0>[co_drivers]:[VARCHAR] <col1>[laps]:[VARCHAR] <col2>[tyres]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` < 282 AND `<col2>` = "p" | Which co-driver has fewer than 282 laps and type P tyres? |
<table0>[marine_species] { <col0>[INT]:[name] <col1>[VARCHAR]:[region] <col2>[VARCHAR]:[avg_depth] <col3>[DECIMAL]:[INSERT] } <table1>[ocean_depth_scale] { <col0>[INT]:[name] <col1>[VARCHAR]:[value] } | SELECT AVG( `<table0>`.avg_depth ) FROM `<table0>` INNER JOIN ocean_depth_scale ON `<table0>`.avg_depth = ocean_depth_scale.value WHERE ocean_depth_scale.name = 'Meters'; | What is the average depth of the ocean habitats for marine species in the Southern Ocean? |
<table0>[app_all] { <col0>[app_id]:[integer] } <table1>[app_events] { <col0>[event_id]:[integer] <col1>[app_id]:[integer] <col2>[is_installed]:[integer] <col3>[is_active]:[integer] } <table2>[app_events_relevant] { <col0>[event_id]:[integer] <col1>[app_id]:[integer] <col2>[is_installed]:[integer] <col3>[is_active]:[i... | SELECT DISTINCT T1.phone_brand, T1.device_model FROM `<table10>` AS T1 INNER JOIN events AS T2 ON T2.device_id = T1.device_id WHERE T2.longitude = 80 AND T2.latitude = 44 | Provide the phone brands and models of the users who were at the coordinates of (80,44). |
<table0>[ai_safety_incident_costs] { <col0>[incident_id]:[INTEGER] <col1>[incident_cost]:[FLOAT] <col2>[region]:[TEXT] } | SELECT region, AVG( `<col1>` ) FROM `<table0>` WHERE `<col2>` = 'Oceania' GROUP BY region; | Calculate the average AI safety incident cost in Oceania. |
<table0>[table_name_52] { <col0>[goal_difference]:[INTEGER] <col1>[points]:[VARCHAR] <col2>[wins]:[VARCHAR] } | SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "33-5" AND `<col2>` < 12 | What is the highest goal difference that the club with 33-5 points and less than 12 wins? |
<table0>[Employees] { <col0>[EmployeeID]:[int] <col1>[Department]:[varchar] <col2>[Gender]:[varchar] <col3>[Race]:[varchar] <col4>[Ethnicity]:[varchar] <col5>[Position]:[varchar] } | SELECT 'Percentage of Women in Leadership' as Metric, 100.0 * COUNT( DISTINCT CASE WHEN e.Gender = 'Female' AND e.Position IN ( 'Manager', 'Director', 'VP', 'CxO' ) THEN e.EmployeeID END ) / COUNT( DISTINCT e.EmployeeID ) as Percentage FROM `<table0>` e UNION ALL SELECT 'Percentage of Underrepresented Racial and Ethnic... | What is the percentage of women and underrepresented racial and ethnic groups in the leadership team? |
<table0>[outputevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] <col6>[value]:[number] } <table1>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table2>[prescriptio... | SELECT COUNT( DISTINCT `<table16>`.subject_id ) FROM `<table16>` WHERE `<table16>`.hadm_id IN ( SELECT `<table2>`.hadm_id FROM `<table2>` WHERE `<table2>`.drug = 'neo*desitin creamy' AND DATETIME( `<table2>`.startdate ) >= DATETIME( CURRENT_TIME( ), '-1 year' ) ) | how many patients have been prescribed with neo*desitin creamy since 1 year ago? |
<table0>[cultural_sites] { <col0>[site_id]:[INT] <col1>[site_name]:[TEXT] <col2>[country]:[TEXT] } <table1>[virtual_visitors] { <col0>[site_id]:[INT] <col1>[year]:[INT] <col2>[quarter]:[INT] <col3>[visitors]:[INT] } | SELECT site_name, MAX( visitors ) FROM ( SELECT site_name, year, quarter, SUM( visitors ) AS visitors FROM `<table0>` INNER JOIN virtual_visitors ON `<table0>`.site_id = virtual_visitors.site_id WHERE `<col2>` = 'Japan' AND year = 2022 AND quarter = 2 GROUP BY site_name, year, quarter ) AS t GROUP BY site_name; | Which cultural heritage sites in Japan had the most virtual visitors in Q2 of 2022? |
<table0>[t_kc22] { <col0>[number]:[CHA_ITEM_LEV] <col1>[number]:[DATA_ID] <col2>[text]:[DIRE_TYPE] <col3>[number]:[DOSE_FORM] <col4>[text]:[DOSE_UNIT] <col5>[text]:[EACH_DOSAGE] <col6>[text]:[EXP_OCC_DATE] <col7>[time]:[FLX_MED_ORG_ID] <col8>[text]:[FXBZ] <col9>[number]:[HOSP_DOC_CD] <col10>[text]:[HOSP_DOC_NM] <col11>... | SELECT `<table2>`.OUT_DIAG_DOC_CD, `<table2>`.OUT_DIAG_DOC_NM FROM `<table2>` WHERE `<table2>`.PERSON_NM = '鲁光亮' GROUP BY `<table2>`.OUT_DIAG_DOC_CD ORDER BY COUNT( * ) DESC | 鲁光亮为团伙成员,他最常去的几个医生排序是什么样的?
|
<table0>[table_name_73] { <col0>[silver]:[INTEGER] <col1>[rank]:[VARCHAR] <col2>[bronze]:[VARCHAR] } | SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "12" AND `<col2>` > 0 | What is the lowest number of silvers for countries in rank 12 with more than 0 bronze? |
<table0>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table1>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table2>[flight_fare] { <col0>[flight_id]:[int] <col1>[fare_id]:[int]... | SELECT DISTINCT fare.fare_id FROM `<table5>` AS AIRPORT_SERVICE_0, `<table5>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WA... | what 's the cheapest round trip fare between BOSTON and WASHINGTON |
<table0>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table1>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstay... | SELECT `<table5>`.observationtime FROM `<table5>` WHERE `<table5>`.`<table1>`unitstayid IN ( SELECT `<table1>`.`<table1>`unitstayid FROM `<table1>` WHERE `<table1>`.`<table1>`healthsystemstayid IN ( SELECT `<table1>`.`<table1>`healthsystemstayid FROM `<table1>` WHERE `<table1>`.uniquepid = '018-119251' ) ) AND `<table5... | when was last time the systemicdiastolic of patient 018-119251 was greater than 41.0 on 04/15/this year?
|
<table0>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>... | SELECT `<table1>`.expire_flag, `<table1>`.admission_location FROM `<table1>` WHERE `<table1>`.subject_id = "42067" | for patient id 42067, specify the location of admission and death status |
<table0>[table_5048] { <col0>[Year]:[text] <col1>[Title]:[text] <col2>[Role]:[text] <col3>[Producer]:[text] <col4>[Director]:[text] } | SELECT "Title" FROM `<table0>` WHERE "Role" = 'mylene' | What Title has a Role of Mylene?
|
<table0>[wells] { <col0>[well_id]:[INT] <col1>[well_name]:[VARCHAR] <col2>[country]:[VARCHAR] <col3>[production]:[FLOAT] } <table1>[countries] { <col0>[country_id]:[INT] <col1>[country_name]:[VARCHAR] <col2>[region]:[VARCHAR] } | SELECT AVG( `<table0>`.production ) AS avg_production, `<table0>`.country FROM `<table0>` INNER JOIN countries ON `<table0>`.country = countries.country_name GROUP BY `<table0>`.country ORDER BY avg_production LIMIT 1; | Which country has the lowest average production per well? |
<table0>[data_types_summary] { <col0>[dept_name]:[TEXT] <col1>[column_name]:[TEXT] <col2>[data_type]:[TEXT] <col3>[record_count]:[INTEGER] } | SELECT column_name, data_type, SUM( `<col3>` ) FROM `<table0>` GROUP BY column_name, data_type; | What is the total number of records for each data type across all departments? |
<table0>[table_name_31] { <col0>[gold]:[INTEGER] <col1>[total]:[VARCHAR] <col2>[nation]:[VARCHAR] <col3>[rank]:[VARCHAR] <col4>[silver]:[VARCHAR] } | SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col3>` < 5 AND `<col4>` = 1 AND `<col2>` = "poland" AND `<col1>` > 1 | What is the least number of Gold for a Rank smaller than 5, and 1 silver medal for Poland with more than 1 medal in total?
|
<table0>[table_33021] { <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 team" FROM `<table0>` WHERE "Away `<col2>` score" = '6.17 ( 53 )' | Which Away team has a score of 6.17 (53)? |
<table0>[customers] { <col0>[customer_id]:[number] <col1>[customer_details]:[text] } <table1>[customer_policies] { <col0>[policy_id]:[number] <col1>[customer_id]:[number] <col2>[policy_type_code]:[text] <col3>[start_date]:[time] <col4>[end_date]:[time] } <table2>[settlements] { <col0>[settlement_id]:[number] <col1>[c... | SELECT T1.customer_details, T1.customer_id FROM `<table0>` AS T1 JOIN customer_policies AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT( * ) >= 2 EXCEPT SELECT T1.customer_details, T1.customer_id FROM `<table0>` AS T1 JOIN customer_policies AS T2 ON T1.customer_id = T2.customer_id JOIN cla... | Give me the the customer details and id for the customers who had two or more policies but did not file any claims.
|
<table0>[inventory] { <col0>[product_id]:[INT] <col1>[product_name]:[VARCHAR] <col2>[weight]:[FLOAT] } | SELECT SUM( `<col2>` ) FROM `<table0>` WHERE `<col1>` = 'Apples'; | What is the total weight of apples in the inventory? |
<table0>[mobile_plans] { <col0>[plan_id]:[INT] <col1>[plan_name]:[VARCHAR] <col2>[data_limit]:[INT] <col3>[price]:[DECIMAL] <col4>[contract_length]:[INT] <col5>[created_at]:[TIMESTAMP] } | UPDATE mobile_plans SET data_limit = 75000 WHERE plan_id = 2001; | Update the data limit for a mobile plan in the mobile_plans table |
<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, `<col7>` FROM `<table2>` WHERE NOT `<col10>` IN ( SELECT `<col10>` FROM `<table0>` WHERE `<col9>` BETWEEN 100 AND 200 ) | For those employees who do not work in departments with managers that have ids between 100 and 200, return a line chart about the change of salary over hire_date . |
<table0>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[itemid]:[number] <col5>[charttime]:[time] <col6>[valuenum]:[number] <col7>[valueuom]:[text] } <table1>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm... | SELECT COUNT( * ) FROM `<table12>` WHERE `<table12>`.icustay_id IN ( SELECT `<table10>`.icustay_id FROM `<table10>` WHERE `<table10>`.hadm_id IN ( SELECT `<table15>`.hadm_id FROM `<table15>` WHERE `<table15>`.subject_id = 92788 ) ) AND `<table12>`.itemid IN ( SELECT `<table2>`.itemid FROM `<table2>` WHERE `<table2>`.la... | count the number of times patient 92788 had produced cardiac output since 06/16/2105.
|
<table0>[table_204_160] { <col0>[number]:[rank] <col1>[number]:[name] <col2>[text]:[nationality] <col3>[text]:[time] <col4>[text]:[notes] } | SELECT "nationality" FROM `<table0>` ORDER BY "rank" DESC LIMIT 1 | from what country did the last place compete for ?
|
<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 T1.Price, T2.Revenue FROM `<table1>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Name | For those records from the products and each product's manufacturer, visualize the relationship between price and revenue , and group by attribute name.
|
<table0>[Dragon_Defenders] { <col0>[player_id]:[INT] <col1>[player_name]:[VARCHAR] <col2>[score]:[INT] <col3>[join_date]:[DATE] } | SELECT MAX( `<col2>` ) FROM `<table0>` WHERE `<col3>` > '2020-12-31'; | What is the maximum score achieved by players who joined after 2020-12-31 in the game 'Dragon Defenders'? |
<table0>[table_204_971] { <col0>[number]:[number] <col1>[date]:[text] <col2>[tournament]:[text] <col3>[round]:[text] <col4>[ground]:[text] <col5>[opponent]:[text] <col6>[score]:[text] <col7>[attendance]:[number] <col8>[dinamo]:[scorers] <col9>[text]:[report] } | SELECT SUM( "attendance" ) FROM `<table0>` WHERE "date" = 3 | how many people attended the club 's games in the month of march ?
|
<table0>[city] { <col0>[city_id]:[integer] <col1>[city_name]:[text] <col2>[state]:[text] <col3>[population]:[integer] <col4>[area]:[real] } <table1>[customer] { <col0>[cust_id]:[integer] <col1>[cust_name]:[text] <col2>[annual_revenue]:[integer] <col3>[cust_type]:[text] <col4>[address]:[text] <col5>[city]:[text] <col6>... | SELECT COUNT( * ) FROM `<table1>` WHERE `<col3>` = 'manufacturer' | How many customers are manufacturer? |
<table0>[screen_mode] { <col0>[Graphics_mode]:[real] <col1>[Char_cells]:[text] <col2>[Pixels]:[text] <col3>[Hardware_colours]:[real] <col4>[used_kb]:[real] <col5>[map]:[text] <col6>[Type]:[text] } <table1>[chip_model] { <col0>[Model_name]:[text] <col1>[Launch_year]:[real] <col2>[RAM_MiB]:[real] <col3>[ROM_MiB]:[real] ... | SELECT Company_name, COUNT( Company_name ) FROM `<table0>` AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.`<table0>` WHERE T1.Type = "Graphics" GROUP BY Company_name | Compare the number of chips from different company names for the phone whose screen mode type is 'Graphics' with a bar chart. |
<table0>[avg_acidification] { <col0>[measurement_id]:[INTEGER] <col1>[acidification_level]:[FLOAT] } | SELECT AVG( acidification_level ) FROM avg_acidification; | What is the average ocean acidification level? |
<table0>[table_name_95] { <col0>[team]:[VARCHAR] <col1>[player]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "jim garcia category:articles with hcards" | What team is Jim Garcia category:Articles with Hcards on? |
<table0>[gsi] { <col0>[course_offering_id]:[int] <col1>[student_id]:[int] } <table1>[course_tags_count] { <col0>[course_id]:[int] <col1>[clear_grading]:[int] <col2>[pop_quiz]:[int] <col3>[group_projects]:[int] <col4>[inspirational]:[int] <col5>[long_lectures]:[int] <col6>[extra_credit]:[int] <col7>[few_tests]:[int] <c... | SELECT DISTINCT department, name, `<col3>` FROM `<table12>` WHERE ( `<col7>` LIKE '%Evolution and Extinction%' OR `<col1>` LIKE '%Evolution and Extinction%' ) AND `<col2>` = 'EECS' | With regards to classes , are there any about Evolution and Extinction ? |
<table0>[donors] { <col0>[INT]:[name] <col1>[TEXT]:[country] } <table1>[donations] { <col0>[INT]:[donor_id] <col1>[INT]:[organization_id] } <table2>[organizations] { <col0>[INT]:[name] <col1>[TEXT]:[cause_area] <col2>[TEXT]:[country] } <table3>[countries] { <col0>[INT]:[name] <col1>[TEXT]:[continent] } | SELECT c.continent, COUNT( DISTINCT d.id ) as num_unique_`<table0>` FROM `<table0>` d INNER JOIN donations ON d.id = donations.donor_id INNER JOIN organizations o ON donations.organization_id = o.id INNER JOIN countries ON d.country = countries.name WHERE o.cause_area = 'human rights' GROUP BY c.continent; | How many unique donors have made donations to organizations focused on human rights, categorized by continent? |
<table0>[table_name_37] { <col0>[republican_ticket]:[VARCHAR] <col1>[american_labor_ticket]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "spencer c. young" | What name is on the Republican ticket when the American Labor ticket was spencer c. young?
|
<table0>[table_204_287] { <col0>[number]:[outcome] <col1>[text]:[number] <col2>[date]:[number] <col3>[championship]:[text] <col4>[surface]:[text] <col5>[opponent]:[final] <col6>[text]:[score] <col7>[final]:[text] } | SELECT COUNT( * ) FROM `<table0>` WHERE "surface" = 'clay' | how many courts are clay ?
|
<table0>[table_16145] { <col0>[real]:[text] <col1>[Pole]:[Position] <col2>[text]:[Fastest] <col3>[Lap]:[text] <col4>[Winning]:[driver] <col5>[text]:[Winning] <col6>[team]:[text] <col7>[Report]:[text] } | SELECT "Fastest Lap" FROM `<table0>` WHERE "Name" = 'Datsun Twin 200' | What was Datsun Twin 200's fastest lap?
|
<table0>[table_77289] { <col0>[Round]:[real] <col1>[Pick]:[real] <col2>[Player]:[text] <col3>[Position]:[text] <col4>[School]:[text] } | SELECT "Player" FROM `<table0>` WHERE "Pick" = '147' | Who was the player who was pick number 147?
|
<table0>[table_name_96] { <col0>[region]:[VARCHAR] <col1>[location]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "49.7462°n 117.1419°w" | what is the region when the location is 49.7462°n 117.1419°w? |
<table0>[rare_earth_supply_chain] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[year] <col2>[INT]:[country] <col3>[VARCHAR]:[255] <col4>[element]:[VARCHAR] <col5>[255]:[supplier_name] <col6>[VARCHAR]:[255] <col7>[transparency_score]:[INT] } | WITH removed_record AS ( DELETE FROM `<table0>` WHERE year = 2020 AND country = 'Myanmar' AND `<col4>` = 'Dysprosium' AND supplier_name = 'Supplier A' ) SELECT * FROM `<table0>` WHERE year = 2020 AND country = 'Myanmar' AND `<col4>` = 'Dysprosium'; | Delete the rare_earth_supply_chain record for Myanmar's dysprosium supply chain |
<table0>[table_2220] { <col0>[Team]:[text] <col1>[Location]:[text] <col2>[Head]:[Coach] <col3>[text]:[Team] <col4>[Captain]:[text] <col5>[Venue]:[text] <col6>[Capacity]:[real] <col7>[Position]:[2008] } | SELECT "Head Coach" FROM `<table0>` WHERE "Venue" = 'Lokomotiv' | Who is the head coach of the team who's venue is Lokomotiv?
|
<table0>[swimmer] { <col0>[int]:[name] <col1>[text]:[Nationality] <col2>[text]:[meter_100] <col3>[real]:[meter_200] <col4>[text]:[meter_300] <col5>[text]:[meter_400] <col6>[text]:[meter_500] <col7>[text]:[meter_600] <col8>[text]:[meter_700] <col9>[text]:[Time] } <table1>[record] { <col0>[int]:[Result] <col1>[text]:[Sw... | SELECT meter_200, SUM( ID ) FROM `<table0>` GROUP BY meter_200 | Show total number of id from each meter 200 |
<table0>[table_60630] { <col0>[Race]:[Title] <col1>[text]:[Circuit] <col2>[text]:[City] <col3>[State]:[text] <col4>[Date]:[text] <col5>[Winner]:[text] } | SELECT "Winner" FROM `<table0>` WHERE "Circuit" = 'eastern creek raceway' | Who was the winner for the circuit Eastern Creek Raceway?
|
<table0>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table1>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table2>[fare] { <col0>[fare_id]:[int] <col1>[from_airport]:[varchar] <col2>[to_airport]:[varchar] <col3>[fare_basis_code]... | SELECT DISTINCT fare.fare_id FROM `<table20>` AS AIRPORT_SERVICE_0, `<table20>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.c... | what is the fare on the THRIFT economy flight from BOSTON to SAN FRANCISCO
|
<table0>[table_5024] { <col0>[Rank]:[real] <col1>[text]:[Nationality] <col2>[text]:[1st] <col3>[real]:[2nd] <col4>[real]:[Points] <col5>[real]:[Overall] <col6>[points]:[Rank] } | SELECT MIN( "Rank" ) FROM `<table0>` WHERE "Nationality" = 'slo' AND "1st ( m )" > '125' | Which Rank is the lowest one that has a Nationality of slo, and a 1st (m) larger than 125?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.