schema stringlengths 20 14.6k | query stringlengths 17 2.58k | question stringlengths 8 1.06k |
|---|---|---|
<table0>[table_11960407_5] { <col0>[date]:[VARCHAR] <col1>[game]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 50 | What is the date of Game 50? |
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type... | SELECT AVG( `<table3>`.age ) FROM `<table3>` WHERE `<table3>`.gender = "F" AND `<table3>`.discharge_location = "SHORT TERM HOSPITAL" | calculate the average age of female patients who had short term hospital discharge.
|
<table0>[table_20193855_2] { <col0>[book_title]:[VARCHAR] <col1>[publisher]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Black Car Publishing" | What is the title of the book when the publisher is black car publishing?
|
<table0>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table2>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[Expir... | SELECT SUM( c.Score ) FROM `<table9>` AS c WHERE c.UserId = '##UserId##' | Total comment score for a user. |
<table0>[landfills] { <col0>[name]:[TEXT] <col1>[country]:[TEXT] <col2>[capacity]:[INTEGER] } | SELECT SUM( `<col2>` ) FROM `<table0>` WHERE `<col1>` = 'Japan'; | What is the total capacity of all landfills in Japan? |
<table0>[awards_players] { <col0>[playerID]:[text] <col1>[award]:[text] <col2>[year]:[integer] <col3>[lgID]:[text] <col4>[note]:[text] <col5>[pos]:[text] } <table1>[coaches] { <col0>[coachID]:[text] <col1>[year]:[integer] <col2>[tmID]:[text] <col3>[lgID]:[text] <col4>[stint]:[integer] <col5>[won]:[integer] <col6>[lost... | SELECT CAST( SUM( IIF( T2.steals IS NOT NULL AND T1.tmID = 'LAL', 1, 0 ) ) AS REAL ) * 100 / COUNT( T1.tmID ) FROM `<table5>` AS T1 INNER JOIN players_`<table5>` AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year | How many percent of points were scored by NBA players who belonged to 'LAL' team and had performed steals movement. |
<table0>[chemical_production] { <col0>[region]:[VARCHAR] <col1>[chemical]:[VARCHAR] <col2>[quantity]:[INT] } <table1>[environmental_impact] { <col0>[chemical]:[VARCHAR] <col1>[impact_score]:[INT] } | SELECT cp.chemical, cp.quantity FROM `<table0>` cp JOIN environmental_impact ei ON cp.chemical = ei.chemical WHERE cp.region = 'South America' AND ei.impact_score > 65; | Find the names and quantities of chemical substances that are both produced in the South America region and have an impact score greater than 65. |
<table0>[Ingredients] { <col0>[IngredientID]:[INT] <col1>[TEXT]:[IsVegan] <col2>[BOOLEAN]:[SupplierID] } <table1>[Suppliers] { <col0>[SupplierID]:[INT] } | SELECT DISTINCT `<table1>`.Name FROM `<table1>` INNER JOIN Ingredients ON `<table1>`.SupplierID = Ingredients.SupplierID WHERE IsVegan = TRUE; | List all suppliers providing ingredients for a vegan-only menu. |
<table0>[table_66745] { <col0>[Supplier]:[text] <col1>[Basic]:[shape] <col2>[text]:[Keys] <col3>[modes]:[text] <col4>[Wrist]:[pad] <col5>[text]:[Thumb] <col6>[stick]:[text] <col7>[Backlit]:[text] } | SELECT "Keys ( x `<col3>` )" FROM `<table0>` WHERE "Supplier" = 'wolfking' | Which keys (x modes) have a Supplier of wolfking?
|
<table0>[ENROLL] { <col0>[CLASS_CODE]:[varchar] <col1>[STU_NUM]:[int] <col2>[ENROLL_GRADE]:[varchar] } <table1>[PROFESSOR] { <col0>[EMP_NUM]:[int] <col1>[DEPT_CODE]:[varchar] <col2>[PROF_OFFICE]:[varchar] <col3>[PROF_EXTENSION]:[varchar] <col4>[PROF_HIGH_DEGREE]:[varchar] } <table2>[STUDENT] { <col0>[STU_NUM]:[int] <... | SELECT CRS_CODE, COUNT( * ) FROM `<table3>` GROUP BY `<col1>` ORDER BY COUNT( * ) DESC | How many sections does each course has Visualize by bar chart, and rank y axis in descending order. |
<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 COUNT( * ) FROM `<table6>` WHERE `<table6>`.`<table1>`unitstayid IN ( SELECT `<table1>`.`<table1>`unitstayid FROM `<table1>` WHERE `<table1>`.`<table1>`healthsystemstayid IN ( SELECT `<table1>`.`<table1>`healthsystemstayid FROM `<table1>` WHERE `<table1>`.uniquepid = '012-63986' ) ) AND DATETIME( `<table6>`.drug... | count the number of drugs a month before patient 012-63986 was prescribed. |
<table0>[mines] { <col0>[INT]:[location] <col1>[VARCHAR]:[Gadolinium_prod] <col2>[FLOAT]:[datetime] <col3>[DATETIME]:[INSERT] } | SELECT a.location, AVG( a.Gadolinium_prod ) FROM `<table0>` a CROSS JOIN `<table0>` b GROUP BY a.location ORDER BY AVG( a.Gadolinium_prod ) DESC LIMIT 5; | Identify the top 5 mining locations with the highest average Gadolinium production in 2020, using a cross join. |
<table0>[Buildings_2] { <col0>[INT]:[country] <col1>[VARCHAR]:[city] <col2>[VARCHAR]:[efficiency_score] <col3>[INT]:[INSERT] } | SELECT country, 100.0 * COUNT( * ) FILTER ( WHERE efficiency_score > 70 ) OVER ( PARTITION BY country ) / COUNT( * ) OVER ( PARTITION BY country ) AS percentage FROM Buildings_2; | What is the percentage of buildings that have an energy efficiency score above 70, for each country? |
<table0>[public_parks] { <col0>[name]:[VARCHAR] <col1>[255]:[state] <col2>[VARCHAR]:[255] <col3>[established_year]:[INT] } | SELECT COUNT( * ) FROM `<table0>` WHERE state = 'NY' AND `<col3>` > 2010; | What is the total number of public parks in the state of New York that were established after the year 2010? |
<table0>[table_name_27] { <col0>[crowd]:[INTEGER] <col1>[away_team]:[VARCHAR] } | SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "north melbourne" | How many people were in the crowd when the away team was north melbourne?
|
<table0>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[te... | SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN procedures ON `<table4>`.hadm_id = procedures.hadm_id WHERE `<table4>`.admission_type = "ELECTIVE" AND procedures.icd9_code = "9229" | give the number of patients whose admission type is elective and procedure icd9 code is 9229.
|
<table0>[hotels] { <col0>[hotel_id]:[INT] <col1>[hotel_name]:[TEXT] } <table1>[bookings] { <col0>[booking_id]:[INT] <col1>[hotel_id]:[INT] <col2>[booking_channel]:[TEXT] } | SELECT `<table0>`.hotel_name, COUNT( bookings.booking_id ) FROM `<table0>` INNER JOIN bookings ON `<table0>`.hotel_id = bookings.hotel_id WHERE bookings.booking_channel = 'OTA' GROUP BY `<table0>`.hotel_name; | What is the number of bookings made through OTA channels for each hotel? |
<table0>[table_name_63] { <col0>[score]:[VARCHAR] <col1>[set_3]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "29β27" | What was the overall score when the score of set 3 was 29 27? |
<table0>[ethical_ai] { <col0>[country]:[VARCHAR] <col1>[score]:[INT] } | SELECT country, AVG( `<col1>` ) as avg_score FROM `<table0>` GROUP BY `<col0>` ORDER BY avg_score DESC; | What is the average ethical AI score for each country, ordered by the highest average score? |
<table0>[Products] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Price]:[DECIMAL] <col3>[Manufacturer]:[INTEGER] } <table1>[Manufacturers] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Headquarter]:[VARCHAR] <col3>[255]:[Founder] <col4>[VARCHAR]:[255] <col5>[Revenue]:[REAL] } | SELECT T1.Name, T1.Code FROM `<table0>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Code | For those records from the products and each product's manufacturer, show me about the distribution of name and code , and group by attribute founder in a bar chart, sort y-axis in ascending order.
|
<table0>[tickets] { <col0>[INT]:[salesperson_id] <col1>[INT]:[quantity] <col2>[INT]:[city] <col3>[VARCHAR]:[INSERT] } | DELETE FROM `<table0>` WHERE quantity < 50; | Delete all records from the tickets table where the quantity is less than 50. |
<table0>[table_24510] { <col0>[Series]:[real] <col1>[Title]:[text] <col2>[Story]:[real] <col3>[Artist]:[text] <col4>[Strip]:[numbers] <col5>[text]:[Number] <col6>[strips]:[text] <col7>[Dates]:[original] <col8>[publication]:[strip] } | SELECT "Series #" FROM `<table0>` WHERE "Title" = 'The Golden Frog' | What is the series number for the Golden Frog?
|
<table0>[Mental_Health_Parity_Policies] { <col0>[Region]:[VARCHAR] <col1>[255]:[Topic] <col2>[VARCHAR]:[255] <col3>[Enactment_Date]:[DATE] } | SELECT Topic, `<col3>` FROM `<table0>` WHERE `<col0>` = 'East' UNION SELECT Topic, `<col3>` FROM `<table0>` WHERE `<col0>` = 'West Coast'; | List the mental health parity policy topics for the East and West Coast regions and their respective policy enactment dates. |
<table0>[table_204_171] { <col0>[number]:[wager] <col1>[text]:[winner] <col2>[text]:[loser] <col3>[text]:[location] <col4>[text]:[date] } | SELECT COUNT( * ) FROM `<table0>` WHERE "winner" = 'gran cochisse' | how many times has gran cochisse been a winner ?
|
<table0>[table_204_402] { <col0>[number]:[rank] <col1>[number]:[player] <col2>[text]:[text] <col3>[text]:[transfer] <col4>[fee]:[u20ac] <col5>[million]:[number] <col6>[year]:[number] } | SELECT ABS( ( SELECT "transfer fee\n( \u20ac `<col5>` )" FROM `<table0>` WHERE "rank" = 5 ) - ( SELECT "transfer fee\n( \u20ac `<col5>` )" FROM `<table0>` WHERE "rank" = 11 ) ) | what is the difference between rank 5 and rank 11 transfer fee |
<table0>[table_78047] { <col0>[Stage]:[text] <col1>[Winner]:[text] <col2>[General]:[classification] <col3>[text]:[Points] <col4>[classification]:[text] <col5>[Trofeo]:[Fast] <col6>[Team]:[text] } | SELECT "Trofeo Fast Team" FROM `<table0>` WHERE "Stage" = '10' | who was the trofeo fast team in stage 10?
|
<table0>[products] { <col0>[product_id]:[INT] <col1>[product_name]:[TEXT] <col2>[is_ethically_sourced]:[BOOLEAN] <col3>[price]:[DECIMAL] } | SELECT AVG( `<col3>` ) FROM `<table0>` WHERE `<col2>` = TRUE; | What is the average price of all products that are ethically sourced? |
<table0>[table_204_541] { <col0>[number]:[name] <col1>[text]:[area] <col2>[text]:[height] <col3>[text]:[floors] <col4>[number]:[year] } | SELECT "name" FROM `<table0>` WHERE "height" = 48 | of the buildings , which is only 48 meters tall ? |
<table0>[table_name_20] { <col0>[airport]:[VARCHAR] } | SELECT AVG( 2008 ) FROM `<table0>` WHERE `<col0>` = "hurghada international airport" | Which 2008 has an Airport of hurghada international airport? |
<table0>[biotech_startups] { <col0>[INT]:[name] <col1>[VARCHAR]:[budget] <col2>[DECIMAL]:[region] <col3>[VARCHAR]:[INSERT] } | SELECT SUM( budget ) FROM `<table0>` WHERE region = 'Brazil'; | What is the total funding received by biotech startups in Brazil? |
<table0>[decentralized_applications] { <col0>[INT]:[name] <col1>[VARCHAR]:[number_of_transactions] <col2>[INT]:[INSERT] } | SELECT *, RANK( ) OVER ( ORDER BY number_of_transactions DESC ) as rank FROM decentralized_applications; | Rank the decentralized applications by the total number of transactions, and assign a rank of 1 to the decentralized application with the highest number of transactions. |
<table0>[table_204_262] { <col0>[number]:[rank] <col1>[number]:[athlete] <col2>[text]:[time] <col3>[text]:[notes] <col4>[text]:[text] } | SELECT COUNT( "athlete" ) FROM `<table0>` WHERE "time" < '5:56.21' | how many athletes have a time below 5:56:21 ?
|
<table0>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <table1>[labevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[itemid]:[number] <col4>[charttime]:[tim... | SELECT COUNT( * ) > 0 FROM `<table13>` WHERE `<table13>`.icustay_id IN ( SELECT `<table16>`.icustay_id FROM `<table16>` WHERE `<table16>`.hadm_id IN ( SELECT `<table11>`.hadm_id FROM `<table11>` WHERE `<table11>`.subject_id = 18159 ) ) AND `<table13>`.itemid IN ( SELECT `<table7>`.itemid FROM `<table7>` WHERE `<table7>... | is the heart rate of patient 18159 was normal this month. |
<table0>[table_32958] { <col0>[Institution]:[text] <col1>[Government]:[real] <col2>[Aided]:[real] <col3>[Unaided]:[real] <col4>[Total]:[real] } | SELECT MIN( "Total" ) FROM `<table0>` WHERE "Institution" = 'higher secondary school' AND "Aided" > '14' | Which higher secondary school listing has the lowest total and an Aided amount larger than 14?
|
<table0>[table_name_90] { <col0>[name]:[VARCHAR] <col1>[height]:[VARCHAR] <col2>[year]:[VARCHAR] <col3>[home_town]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col2>` = "freshman" AND `<col3>` = "los angeles, ca" AND `<col1>` = "6β4" | What is the Name with a Year with freshman, and a Home Town with los angeles, ca, and a Height of 6β4? |
<table0>[days] { <col0>[days_code]:[varchar] <col1>[day_name]:[varchar] } <table1>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table2>[month] { <col0>[month_number]:[int] <col1>[month_name]:[text] } <table3>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int]... | SELECT DISTINCT flight.arrival_time, flight.departure_time FROM `<table18>` AS AIRPORT_SERVICE_0, `<table18>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND flight.flight_number = 269 AND flight.to_airport = AIRP... | i'd like to travel from BOSTON to BALTIMORE on us air 269 please tell me the times |
<table0>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table1>[ReviewTaskStates] {... | SELECT DATEFROMPARTS( YEAR( CreationDate ), MONTH( CreationDate ), 1 ) AS YearMonth, ( CAST( SUM( CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END ) AS FLOAT ) / NULLIF( CAST( SUM( CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END ) AS FLOAT ), 0 ) ) AS Ratio FROM `<table7>` WHERE CreationDate > '01-01-2015' AND CreationDate < '12-... | Evolution of the up-/downvote ratio by year and month. Look at the Graph, to see the evolution of the upvote/downvote ratio. |
<table0>[table_2477085_1] { <col0>[production]:[VARCHAR] <col1>[alpina_model]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "B10 4,6" | Name the production for alpina model being b10 4,6 |
<table0>[unique_products] { <col0>[supplier_id]:[INT] <col1>[product_id]:[INT] } | SELECT suppliers.supplier_name, COUNT( DISTINCT unique_products.product_id ) FROM suppliers JOIN unique_products ON suppliers.supplier_id = unique_products.supplier_id GROUP BY suppliers.supplier_id; | Get the number of unique products sold by each supplier? |
<table0>[table_name_49] { <col0>[date]:[VARCHAR] <col1>[score_f_a]:[VARCHAR] <col2>[opponents]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "2β0" AND `<col2>` = "walsall" | Score FβA of 2β0, and a Opponents of walsall has what date? |
<table0>[table_79991] { <col0>[Game]:[real] <col1>[Date]:[text] <col2>[Score]:[text] <col3>[Location]:[text] <col4>[Time]:[text] <col5>[Attendance]:[real] } | SELECT MIN( "Attendance" ) FROM `<table0>` WHERE "Time" = '2:13' | What was the Attendance when the Time was 2:13?
|
<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 Team_ID, `<col4>` FROM `<table0>` GROUP BY `<col9>` | Visualize the relationship between Team_ID and ACC_Percent , and group by attribute All_Home.
|
<table0>[table_26842217_8] { <col0>[date]:[VARCHAR] <col1>[site]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Sanford Stadium β’ Athens, GA" | If the site is sanford stadium β’ athens, ga, what is the date? |
<table0>[table_name_75] { <col0>[date]:[VARCHAR] <col1>[location_attendance]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "wachovia center" | When did they play at the wachovia center? |
<table0>[exhibition_record] { <col0>[Exhibition_ID]:[int] <col1>[Date]:[text] <col2>[Attendance]:[int] } <table1>[exhibition] { <col0>[Exhibition_ID]:[int] <col1>[Year]:[int] <col2>[Theme]:[text] <col3>[Artist_ID]:[int] <col4>[Ticket_Price]:[real] } <table2>[artist] { <col0>[Artist_ID]:[int] <col1>[text]:[Country] <c... | SELECT Country, AVG( Age ) FROM `<table2>` GROUP BY Country ORDER BY AVG( Age ) | What are the average ages of artists by countries? Visualize the result with a histogram, and I want to display in asc by the total number. |
<table0>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table1>[student] { <col0>[student_id]:[int] <col1>[lastname]:[varchar] <col2>[firstname]:[varchar] <col3>[program_id]:[int] <col4>[declare_major]:[varchar] <col5>[total_credi... | SELECT DISTINCT student.firstname, student.lastname FROM `<table5>` INNER JOIN `<table5>`_offering ON `<table5>`.`<table5>`_id = `<table5>`_offering.`<table5>`_id INNER JOIN gsi ON gsi.`<table5>`_offering_id = `<table5>`_offering.offering_id INNER JOIN student ON student.student_id = gsi.student_id INNER JOIN semester ... | Last semester , the GSIs for MUSED 490 were who ?
|
<table0>[CREATE] { <col0>[SCHEMA]:[peace_operations] } <table1>[asean_operations] { <col0>[operation_name]:[VARCHAR] <col1>[year]:[INT] <col2>[organization]:[VARCHAR] <col3>[INSERT]:[peace_operations] } | SELECT AVG( year ) FROM peace_operations.asean_operations WHERE organization = 'ASEAN' AND year BETWEEN 2015 AND 2022 GROUP BY organization; | What is the average number of peacekeeping operations conducted per year by ASEAN countries between 2015 and 2022? |
<table0>[ReviewTaskTypes] { <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]:[... | SELECT PostId AS "post_link", Id AS "comment_link", 'text', 'creationdate' FROM `<table17>` WHERE Text LIKE '%##SearchString##%' ORDER BY CreationDate DESC | Search for text in comments (with parameters). |
<table0>[agri_innovation] { <col0>[INT]:[project] <col1>[TEXT]:[location] <col2>[TEXT]:[INSERT] } | SELECT COUNT( * ) FROM `<table0>` WHERE location = 'Europe'; | What is the number of agricultural innovation projects in 'Europe'? |
<table0>[CybersecurityIncidents] { <col0>[INT]:[Month] <col1>[VARCHAR]:[Incidents] <col2>[INT]:[Year] <col3>[INT]:[INSERT] } | SELECT AVG( Incidents ) FROM `<table0>` WHERE Year = 2020 GROUP BY Month; | What is the average number of cybersecurity incidents per month in 2020? |
<table0>[PostTypes] { <col0>[number]:[text] } <table1>[PostHistoryTypes] { <col0>[number]:[text] } <table2>[VoteTypes] { <col0>[number]:[text] } <table3>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[nu... | SELECT ROW_NUMBER( ) OVER ( ORDER BY Reputation DESC ) AS "#", Id AS "user_link", Reputation FROM `<table11>` WHERE ( LOWER( Location ) LIKE '%malaysia%' ) ORDER BY Reputation DESC | Search Malaysia Users by Reputation. |
<table0>[table_5461] { <col0>[Car]:[plate] <col1>[starting]:[1937] <col2>[text]:[Voivodeship] <col3>[city]:[text] <col4>[Capital]:[text] <col5>[Area]:[1930] <col6>[000skm]:[text] <col7>[Population]:[1931] <col8>[000s]:[text] } | SELECT "s `<col0>` plate ( `<col1>` 1937 )" FROM `<table0>` WHERE "Population ( 1931 ) in 1,000s" = '2,460.9' | Population (1931) in 1,000s of 2,460.9 what is the car plate (starting 1937)?
|
<table0>[icustays] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[first_careunit]:[text] <col5>[last_careunit]:[text] <col6>[first_wardid]:[number] <col7>[last_wardid]:[number] <col8>[intime]:[time] <col9>[outtime]:[time] } <table1>[d_icd_procedures] {... | SELECT `<table2>`.charttime FROM `<table2>` WHERE `<table2>`.hadm_id IN ( SELECT `<table3>`.hadm_id FROM `<table3>` WHERE `<table3>`.subject_id = 70234 ) AND `<table2>`.spec_type_desc = 'blood culture' AND STRFTIME( '%y-%m', `<table2>`.charttime ) >= '2105-02' ORDER BY `<table2>`.charttime LIMIT 1 | when did patient 70234 receive the first microbiological blood culture test since 02/2105? |
<table0>[participations] { <col0>[initiative_id]:[INT] <col1>[launch_date]:[DATE] <col2>[num_participants]:[INT] } | SELECT AVG( `<col2>` ) FROM `<table0>` WHERE EXTRACT( QUARTER FROM `<col1>` ) = 1; | What is the average number of public participations for initiatives launched in Q1? |
<table0>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[te... | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN lab ON `<table3>`.hadm_id = lab.hadm_id WHERE `<table3>`.admission_location = "CLINIC REFERRAL/PREMATURE" AND lab.itemid = "50998" | how many office admitted patients have lab test item id 50998?
|
<table0>[table_23315] { <col0>[Verbs]:[text] <col1>[text]:[u00fa] <col2>[text]:[Vos] <col3>[text]:[u00c9l] <col4>[Ella]:[Usted] <col5>[text]:[Nosotros] <col6>[Nosotras]:[text] <col7>[Vosotros]:[Vosotras] <col8>[text]:[Ellos] <col9>[Ellas]:[Ustedes] } | SELECT COUNT( "Verbs" ) FROM `<table0>` WHERE "Yo" = 'sienta' | how many verbs have the yo form as sienta?
|
<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>` INNER JOIN prescriptions ON `<table3>`.hadm_id = prescriptions.hadm_id WHERE `<table3>`.days_stay > "30" AND prescriptions.drug = "HYDROmorphone ( Dilaudid )" | provide the number of patients who had hydromorphone (dilaudid) prescription and stayed in hospital for more than 30 days. |
<table0>[table_30120633_1] { <col0>[civil_parish]:[VARCHAR] <col1>[townland]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Ballymurphy North" | What is Ballymurphy North's civil parish?
|
<table0>[vessels] { <col0>[INT]:[name] <col1>[TEXT]:[type] <col2>[TEXT]:[cargo_capacity] <col3>[REAL]:[INSERT] } | SELECT id, name, type, cargo_capacity FROM `<table0>` WHERE type = 'Tanker' AND cargo_capacity > ( SELECT AVG( cargo_capacity ) FROM `<table0>` WHERE type = 'Tanker' ); | Which tanker vessels have a higher cargo capacity than the average for tanker vessels? |
<table0>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table1>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>[temperatu... | SELECT t3.drugname FROM ( SELECT t2.drugname, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT patient.uniquepid, `<table3>`.`<table3>`time, patient.patienthealthsystemstayid FROM `<table3>` JOIN patient ON `<table3>`.patientunitstayid = patient.patientunitstayid WHERE `<table3>`.`<table3>`name = 'fa... | what is the four most frequent drugs that were prescribed during the same hospital encounter to failure to wean female patients of age 40s after they have been diagnosed with failure to wean since 2104?
|
<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, `<col1>` FROM `<table1>` ORDER BY `<col1>` DESC | A bar chart shows the distribution of All_Neutral and School_ID , list in descending by the y axis. |
<table0>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table1>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[Creati... | SELECT CONCAT( YEAR( P.CreationDate ), '-', MONTH( P.CreationDate ) ) AS YearMonth, 'MySQL' AS TagName, COUNT( * ) AS PostCount FROM `<table1>` AS P INNER JOIN PostTags AS PT ON ( P.Id = PT.PostId ) INNER JOIN Tags AS T ON ( PT.TagId = T.Id ) WHERE T.TagName LIKE 'mysql%' GROUP BY YEAR( P.CreationDate ), MONTH( P.Creat... | SO - Total Posts by Database Server Per Month - MySQL.
|
<table0>[table_2522473_1] { <col0>[home_ground]:[VARCHAR] <col1>[seasons]:[VARCHAR] <col2>[home_city]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 27 AND `<col2>` = "Trondheim" | What is the home ground for the team whose home city is Trondheim with 27 seasons?
|
<table0>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table1>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Co... | SELECT * FROM `<table26>` WHERE Location = 'Oberlin, OH' OR AboutMe LIKE '%Oberlin%' | People with a connection to Oberlin OH.
|
<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 lab ON `<table0>`.hadm_id = lab.hadm_id WHERE `<table0>`.days_stay > "11" AND lab.fluid = "Cerebrospinal Fluid ( CSF )" | give me the number of patients whose days of hospital stay is greater than 11 and lab test fluid is cerebrospinal fluid (csf)?
|
<table0>[table_name_28] { <col0>[type]:[VARCHAR] <col1>[principal_activities]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "health services" | Which Type has a Principal activities of health services? |
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[... | SELECT `<table1>`.marital_status FROM `<table1>` WHERE `<table1>`.name = "Jerry Deberry" | what is marital status of subject name jerry deberry?
|
<table0>[table_33823] { <col0>[Province]:[text] <col1>[Swimsuit]:[real] <col2>[Evening]:[Gown] <col3>[real]:[Interview] <col4>[real]:[Average] } | SELECT AVG( "Evening Gown" ) FROM `<table0>` WHERE "Swimsuit" < '7.99' AND "Interview" > '7.98' | WHich Evening Gown has a Swimsuit smaller than 7.99 and a Interview larger than 7.98?
|
<table0>[table_24353141_1] { <col0>[original_1st_us_tour_cast]:[VARCHAR] <col1>[original_tokyo___seoul_tour_cast]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Thomas Hettrick" | While the original toyko/seoul tour cast included thomas hettrick, who was in the original 1st us tour cast? |
<table0>[table_1889619_5] { <col0>[total_footage_remaining_from_missing_episodes__mm]:[VARCHAR] <col1>[story_no]:[VARCHAR] <col2>[source]:[VARCHAR] } | SELECT `<col0>` AS :ss_ FROM `<table0>` WHERE `<col1>` = "018" AND `<col2>` = "Private individual" | When a private individual is the source and 018 is the story number what is the total footage remaining from missing episodes (mm:ss)? |
<table0>[IoTDevices] { <col0>[region]:[VARCHAR] <col1>[255]:[device_id] <col2>[INT]:[firmware_version] <col3>[VARCHAR]:[255] } | SELECT ( COUNT( * ) * 100.0 / ( SELECT COUNT( * ) FROM `<table0>` WHERE `<col0>` = 'Europe' ) ) AS Percentage FROM `<table0>` WHERE `<col0>` = 'Europe' AND firmware_version LIKE '1.%'; | Identify the percentage of IoT devices with firmware version 1.x.x in the 'Europe' region. |
<table0>[co2_emissions_2022] { <col0>[date]:[DATE] <col1>[co2_emissions]:[DECIMAL] } | SELECT DATE_TRUNC( 'month', `<col0>` ) AS month, SUM( `<col1>` ) AS total_co2_emissions FROM `<table0>` WHERE `<col0>` >= '2022-01-01' AND `<col0>` < '2023-01-01' GROUP BY month; | What is the total CO2 emissions by month in 2022? |
<table0>[table_58182] { <col0>[Nationality]:[text] <col1>[Position]:[text] <col2>[Tottenham]:[Hotspur] <col3>[career]:[text] <col4>[Club]:[Apps] <col5>[text]:[Goals] } | SELECT "Goals" FROM `<table0>` WHERE "Nationality" = 'england' AND "Position" = 'mf' AND "Club Apps" = '170' | How many goals did the player from England who played the position of mf and had 170 club apps had?
|
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_... | SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` WHERE `<table4>`.gender = "F" AND `<table4>`.admission_location = "PHYS REFERRAL/NORMAL DELI" | How many female patient are with admission location phys referral/normal deli?
|
<table0>[table_23294081_10] { <col0>[number]:[VARCHAR] } | SELECT COUNT( _number ) FROM `<table0>` WHERE no = 214 | How many episodes were series episode 214? |
<table0>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table1>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <t... | SELECT 1 * ( STRFTIME( '%j', CURRENT_TIME( ) ) - STRFTIME( '%j', `<table12>`.charttime ) ) FROM `<table12>` WHERE `<table12>`.itemid IN ( SELECT `<table15>`.itemid FROM `<table15>` WHERE `<table15>`.label = 'glucose' ) AND `<table12>`.hadm_id IN ( SELECT `<table10>`.hadm_id FROM `<table10>` WHERE `<table10>`.subject_id... | how many days has it been from the last time patient 31854 received a glucose lab test on this hospital encounter?
|
<table0>[departments] { <col0>[DEPARTMENT_ID]:[decimal] <col1>[DEPARTMENT_NAME]:[varchar] <col2>[MANAGER_ID]:[decimal] <col3>[LOCATION_ID]:[decimal] } <table1>[employees] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[FIRST_NAME]:[varchar] <col2>[LAST_NAME]:[varchar] <col3>[EMAIL]:[varchar] <col4>[PHONE_NUMBER]:[varchar] <col... | SELECT HIRE_DATE, AVG( `<col7>` ) FROM `<table1>` WHERE `<col1>` LIKE '%D%' OR `<col1>` LIKE '%S%' | For all employees who have the letters D or S in their first name, return a bar chart about the distribution of hire_date and the average of salary bin hire_date by weekday.
|
<table0>[minerals_extracted] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[mine_site_id] <col2>[INT]:[mineral] <col3>[VARCHAR]:[255] <col4>[quantity]:[INT] <col5>[extraction_year]:[INT] <col6>[FOREIGN]:[KEY] <col7>[mine_site_id]:[REFERENCES] } <table1>[environmental_impact] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[mine_site_id] <c... | SELECT AVG( e.CO2_emission ) as avg_co2 FROM `<table1>` e JOIN minerals_extracted m ON e.mine_site_id = m.mine_site_id WHERE m.mineral = 'gold' AND m.quantity > 1000 AND m.extraction_year = 2021; | What is the average CO2 emission for gold mines that extracted more than 1000 units of gold in 2021? |
<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 t1.`<table3>`name FROM ( SELECT `<table3>`.`<table3>`name, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM `<table3>` WHERE `<table3>`.`<table8>`unitstayid IN ( SELECT `<table8>`.`<table8>`unitstayid FROM `<table8>` WHERE `<table8>`.age BETWEEN 40 AND 49 ) AND STRFTIME( '%y', `<table3>`.`<table3>`resu... | among those with age 40s until 2102, what are the top three most frequent lab tests?
|
<table0>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:... | SELECT COUNT( * ) FROM `<table24>` | Total number of posts by months. |
<table0>[table_29241] { <col0>[City]:[text] <col1>[Population]:[real] <col2>[Registered]:[voters] <col3>[text]:[Democratic] <col4>[text]:[Republican] <col5>[text]:[u2013R] <col6>[spread]:[text] <col7>[text]:[party] <col8>[preference]:[text] } | SELECT "No party preference" FROM `<table0>` WHERE "Democratic" = '24.8%' | What is the percentage of 'no party preference' where the democratic percentage is 24.8%?
|
<table0>[Documents_with_Expenses] { <col0>[Document_ID]:[INTEGER] <col1>[Budget_Type_Code]:[CHAR] <col2>[Document_Details]:[VARCHAR] } <table1>[Projects] { <col0>[Project_ID]:[INTEGER] <col1>[Project_Details]:[VARCHAR] } <table2>[Ref_Budget_Codes] { <col0>[Budget_Type_Code]:[CHAR] <col1>[Budget_Type_Description]:[VAR... | SELECT T1.Project_Details, T1.Project_ID FROM `<table1>` AS T1 JOIN Documents AS T2 ON T1.Project_ID = T2.Project_ID ORDER BY T1.Project_ID DESC | What is the project id and detail for the project with at least two documents Plot them as bar chart, and order by the y axis from high to low. |
<table0>[dives] { <col0>[dive_id]:[INT] <col1>[diver_id]:[INT] <col2>[location]:[VARCHAR] <col3>[depth]:[FLOAT] <col4>[duration]:[INT] } | SELECT location, MAX( `<col3>` ) as max_depth FROM `<table0>` GROUP BY `<col2>` ORDER BY max_depth DESC LIMIT 1; | What is the deepest dive location and the maximum depth (in meters) reached at that location in the 'dives' table? |
<table0>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table1>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>[temperature]:[number] <col3>[sao2]:[number] <col4>[heartrate]:[... | SELECT AVG( `<table1>`.heartrate ) FROM `<table1>` WHERE `<table1>`.`<table3>`unitstayid IN ( SELECT `<table3>`.`<table3>`unitstayid FROM `<table3>` WHERE `<table3>`.`<table3>`healthsystemstayid IN ( SELECT `<table3>`.`<table3>`healthsystemstayid FROM `<table3>` WHERE `<table3>`.uniquepid = '012-29497' AND NOT `<table3... | indicate the daily average amount of heartrate for patient 012-29497 during their first hospital visit. |
<table0>[incident_counts] { <col0>[INT]:[category] <col1>[VARCHAR]:[255] <col2>[incident_count]:[INT] <col3>[incident_date]:[DATE] } | SELECT SUM( `<col2>` ) FROM `<table0>` WHERE category = 'Unpatched Systems' AND `<col3>` >= DATEADD( month, -1, GETDATE( ) ); | What is the total number of security incidents in the 'Unpatched Systems' category in the last month? |
<table0>[table_47820] { <col0>[Week]:[real] <col1>[Date]:[text] <col2>[Opponent]:[text] <col3>[Result]:[text] <col4>[Attendance]:[real] } | SELECT "Date" FROM `<table0>` WHERE "Attendance" > '41,863' AND "Week" = '9' | What is the date of the game on week 9 with attendance greater than 41,863?
|
<table0>[Categories] { <col0>[CategoryID]:[integer] <col1>[CategoryName]:[text] <col2>[Description]:[text] } <table1>[Customers] { <col0>[CustomerID]:[integer] <col1>[CustomerName]:[text] <col2>[ContactName]:[text] <col3>[Address]:[text] <col4>[City]:[text] <col5>[PostalCode]:[text] <col6>[Country]:[text] } <table2>[... | SELECT T3.CategoryName FROM `<table4>` AS T1 INNER JOIN Products AS T2 ON T1.SupplierID = T2.SupplierID INNER JOIN Categories AS T3 ON T2.CategoryID = T3.CategoryID WHERE T2.UnitsInStock > 100 AND T1.CompanyName = 'Exotic Liquids' | List all category name of Exotic Liquids 's product with units in stock over 100. |
<table0>[admissions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[admittime]:[time] <col4>[dischtime]:[time] <col5>[admission_type]:[text] <col6>[admission_location]:[text] <col7>[discharge_location]:[text] <col8>[insurance]:[text] <col9>[language]:[text] <col10>[marital_status]... | SELECT DISTINCT `<table10>`.`<table10>` FROM `<table10>` WHERE `<table10>`.event_type = '`<table13>`' AND `<table10>`.event_id IN ( SELECT `<table13>`.row_id FROM `<table13>` WHERE `<table13>`.icd9_code = ( SELECT `<table12>`.icd9_code FROM `<table12>` WHERE `<table12>`.short_title = 'lap creat esoph sphinct' ) ) | how much does it cost for a procedure called lap creat esoph sphinct? |
<table0>[table_23347] { <col0>[Rank]:[real] <col1>[City]:[text] <col2>[1890]:[census] <col3>[text]:[1910] <col4>[census]:[real] <col5>[1920]:[census] <col6>[real]:[1930] <col7>[census]:[real] <col8>[1940]:[census] } | SELECT COUNT( "Rank" ) FROM `<table0>` WHERE "1940 census" = '400000' | How many cities had a census of 400000 in 1940?
|
<table0>[person_info] { <col0>[CSD]:[text] <col1>[CSRQ]:[time] <col2>[GJDM]:[text] <col3>[GJMC]:[text] <col4>[JGDM]:[text] <col5>[JGMC]:[text] <col6>[MZDM]:[text] <col7>[MZMC]:[text] <col8>[RYBH]:[text] <col9>[XBDM]:[number] <col10>[XBMC]:[text] <col11>[XLDM]:[text] <col12>[XLMC]:[text] <col13>[text]:[ZYLBDM] <col14>[t... | SELECT wdmzjzjlb.ZYZDBM, wdmzjzjlb.ZYZDMC FROM `<table0>` JOIN hz_info JOIN wdmzjzjlb ON `<table0>`.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX WHERE `<table0>`.XM = 'θεζ¦' UNION SELECT bdmzjzjlb.ZYZDBM, bdmzjzjlb.ZYZDMC FROM `<table0>` JOIN hz_... | δΉεοΌζ£θ
θεζ¦ηδ½ι’θ―ζζ
ε΅ε¦δ½οΌ
|
<table0>[financial_institutions] { <col0>[name]:[TEXT] <col1>[location]:[TEXT] <col2>[debt]:[NUMERIC] <col3>[offers_wellbeing]:[BOOLEAN] } | SELECT SUM( `<col2>` ) FROM `<table0>` WHERE `<col3>` = TRUE AND `<col1>` LIKE 'Sub-Saharan% Africa'; | What is the total debt of financial institutions in Sub-Saharan Africa that offer financial wellbeing programs? |
<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 ACC_Road, COUNT( `<col6>` ) FROM `<table0>` GROUP BY `<col6>` ORDER BY `<col6>` DESC | Bar chart x axis acc road y axis how many acc road, and could you sort from high to low by the names?
|
<table0>[table_name_93] { <col0>[induction]:[VARCHAR] <col1>[years]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "1975β1976" | What is the inductioin for 1975 1976?
|
<table0>[table_name_23] { <col0>[time_retired]:[VARCHAR] <col1>[laps]:[INTEGER] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` < 4 | what is the time/retired when the laps is less than 4?
|
<table0>[table_16819] { <col0>[Model]:[name] <col1>[text]:[Power] <col2>[real]:[Torque] <col3>[rpm]:[text] <col4>[Displacement]:[u00b3] <col5>[real]:[Engine] <col6>[code]:[text] <col7>[Comment]:[text] } | SELECT COUNT( "Power ( ps )" ) FROM `<table0>` WHERE "Torque ( Nm@rpm )" = '240@2200-5000' | how many power (ps) with torque (nm@rpm) being 240@2200-5000
|
<table0>[countries] { <col0>[COUNTRY_ID]:[varchar] <col1>[COUNTRY_NAME]:[varchar] <col2>[REGION_ID]:[decimal] } <table1>[employees] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[FIRST_NAME]:[varchar] <col2>[LAST_NAME]:[varchar] <col3>[EMAIL]:[varchar] <col4>[PHONE_NUMBER]:[varchar] <col5>[HIRE_DATE]:[date] <col6>[JOB_ID]:[va... | SELECT JOB_ID, SUM( `<col9>` ) FROM `<table1>` WHERE `<col1>` LIKE '%D%' OR `<col1>` LIKE '%S%' GROUP BY `<col6>` | For all employees who have the letters D or S in their first name, return a bar chart about the distribution of job_id and the sum of manager_id , and group by attribute job_id. |
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type... | SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN lab ON `<table4>`.hadm_id = lab.hadm_id WHERE `<table4>`.insurance = "Private" AND lab.label = "C3" | how many patients whose insurance is private and lab test name is c3? |
<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 `<table3>`.subject_id ) FROM `<table3>` WHERE `<table3>`.admission_location = "TRSF WITHIN THIS FACILITY" AND `<table3>`.dob_year < "1887" | what is the number of patients whose admission location is trsf within this facility and year of birth is less than 1887? |
<table0>[table_73189] { <col0>[Series]:[real] <col1>[Episode]:[real] <col2>[Title]:[text] <col3>[Directed]:[text] <col4>[Written]:[text] <col5>[Original]:[airdate] } | SELECT "Episode #" FROM `<table0>` WHERE "Series #" = '17' | What is the episode number for series 17?
|
<table0>[table_name_90] { <col0>[years]:[VARCHAR] <col1>[area]:[VARCHAR] <col2>[authority]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "upper hutt" AND `<col2>` = "private" | What years is the private school in upper hutt?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.