schema
stringlengths
20
14.6k
query
stringlengths
17
2.58k
question
stringlengths
8
1.06k
<table0>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table1>[flight_stop] { <col0>[flight_id]:[int] <col1>[stop_number]:[int] <col2>[stop_days]:[text] <col3>[stop_airport]:[text] <col4>[arrival_time]:[in...
SELECT DISTINCT aircraft.basic_type FROM aircraft, equipment_sequence, flight WHERE equipment_sequence.aircraft_code = aircraft.aircraft_code AND flight.aircraft_code_sequence = equipment_sequence.aircraft_code_sequence AND flight.airline_code = 'CP'
show me the type of aircraft that CP uses
<table0>[table_204_854] { <col0>[number]:[number] <col1>[wrestlers]:[text] <col2>[reign]:[number] <col3>[date]:[text] <col4>[days]:[nheld] <col5>[number]:[location] <col6>[text]:[notes] }
SELECT COUNT( "wrestlers" ) FROM `<table0>` WHERE "notes" IS NULL
how many wrestlers do not have any notes ?
<table0>[biodiversity] { <col0>[INT]:[species] <col1>[VARCHAR]:[255] <col2>[population]:[INT] }
SELECT COUNT( DISTINCT species ) FROM biodiversity;
How many species are recorded in the 'biodiversity' table?
<table0>[basketball_match] { <col0>[Team_ID]:[int] <col1>[School_ID]:[int] <col2>[Team_Name]:[text] <col3>[ACC_Regular_Season]:[text] <col4>[ACC_Percent]:[text] <col5>[ACC_Home]:[text] <col6>[ACC_Road]:[text] <col7>[All_Games]:[text] <col8>[All_Games_Percent]:[int] <col9>[All_Home]:[text] <col10>[All_Road]:[text] <col1...
SELECT All_Home, AVG( `<col0>` ) FROM `<table0>` GROUP BY `<col9>` ORDER BY `<col9>`
Return a bar chart about the distribution of All_Home and the average of Team_ID , and group by attribute All_Home, and could you sort by the X in asc?
<table0>[DRILLING_HISTORY] { <col0>[WELL_NAME]:[VARCHAR] <col1>[255]:[DRILL_DATE] }
SELECT WELL_NAME, DRILL_DATE FROM DRILLING_HISTORY;
What are the names and drilling dates of all wells in the 'DRILLING_HISTORY' table?
<table0>[table_203_710] { <col0>[number]:[genre] <col1>[text]:[year] <col2>[number]:[title] <col3>[text]:[episode] <col4>[text]:[role] <col5>[text]:[notes] }
SELECT COUNT( * ) FROM `<table0>` WHERE "genre" = 'short film'
how many short film roles has he acted in ?
<table0>[CountryRegion] { <col0>[CountryRegionCode]:[text] <col1>[text]:[ModifiedDate] } <table1>[Culture] { <col0>[CultureID]:[text] <col1>[text]:[ModifiedDate] } <table2>[Currency] { <col0>[CurrencyCode]:[text] <col1>[text]:[ModifiedDate] } <table3>[CountryRegionCurrency] { <col0>[CountryRegionCode]:[text] <col1>[...
SELECT COUNT( * ) FROM `<table45>` AS T1 INNER JOIN BillOfMaterials AS T2 ON T1.LocationID = T2.ProductAssemblyID INNER JOIN WorkOrder AS T3 ON T3.WorkOrderID = T1.WorkOrderID WHERE T1.LocationID = 40
What is the stocked quantity of products manufactured from location ID 40?
<table0>[table_1342359_15] { <col0>[first_elected]:[VARCHAR] <col1>[district]:[VARCHAR] }
SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Kansas 3"
how many first elected with district is kansas 3
<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>`.days_stay > "5" AND prescriptions.drug_type = "BASE"
provide the number of patients whose days of hospital stay is greater than 5 and drug type is base?
<table0>[marine_protected_areas] { <col0>[INT]:[name] <col1>[VARCHAR]:[255] <col2>[location]:[VARCHAR] <col3>[255]:[size_km] <col4>[FLOAT]:[INSERT] }
SELECT SUM( size_km ) FROM `<table0>` WHERE `<col2>` LIKE '%Caribbean%';
Find the total number of marine protected areas in the Caribbean.
<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 a.Id AS "post_link" FROM `<table7>` AS q INNER JOIN `<table7>` AS a ON a.ParentId = q.Id LEFT OUTER JOIN Comments AS c ON c.PostId = q.Id AND c.CreationDate < a.CreationDate WHERE a.Score >= 7 AND a.CommentCount = 0 AND q.CommentCount > 0 AND a.CreationDate >= '2017-12-13' AND c.Id IS NULL
Possible Silencium candidates, with comments on the Q after posting the A.
<table0>[farm_competition] { <col0>[Competition_ID]:[int] <col1>[Year]:[int] <col2>[Theme]:[text] <col3>[Host_city_ID]:[int] <col4>[Hosts]:[text] } <table1>[competition_record] { <col0>[Competition_ID]:[int] <col1>[Farm_ID]:[int] <col2>[Rank]:[int] } <table2>[farm] { <col0>[Farm_ID]:[int] <col1>[Year]:[int] <col2>[To...
SELECT Year, COUNT( Year ) FROM `<table3>` AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_`<table3>`_ID GROUP BY `<col1>` ORDER BY Year DESC
Use a group line chart to show how many competitions are held in each year, group by official name and bin by year, could you sort by the x axis in desc?
<table0>[table_name_90] { <col0>[score]:[INTEGER] <col1>[country]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "sweden"
What is Sweden's lowest score?
<table0>[table_name_54] { <col0>[away_team]:[VARCHAR] <col1>[venue]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "glenferrie oval"
Which away team is based at glenferrie oval?
<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 `<table3>`.subject_id ) FROM `<table3>` INNER JOIN prescriptions ON `<table3>`.hadm_id = prescriptions.hadm_id WHERE `<table3>`.gender = "M" AND prescriptions.drug = "Protamine Sulfate"
how many patients whose gender is m and drug name is protamine sulfate?
<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>`.days_stay FROM `<table1>` WHERE `<table1>`.name = "Robert Clayton"
what is days of hospital stay of subject name robert clayton?
<table0>[table_1341930_40] { <col0>[candidates]:[VARCHAR] <col1>[incumbent]:[VARCHAR] }
SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "L. Mendel Rivers"
Name the candidates for l. mendel rivers
<table0>[table_204_74] { <col0>[number]:[number] <col1>[title]:[text] <col2>[producers]:[text] <col3>[guest]:[performers] <col4>[text]:[length] }
SELECT MAX( "length" ) FROM `<table0>`
how long is the longest track on the album ?
<table0>[table_name_5] { <col0>[total]:[INTEGER] <col1>[rank]:[VARCHAR] <col2>[bronze]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "11" AND `<col2>` < 1
When the rank is 11, and bronze a smaller than 1 what is the lowest total?
<table0>[cardano_dapps] { <col0>[dapp_name]:[VARCHAR] <col1>[network]:[VARCHAR] <col2>[smart_contracts]:[INT] }
SELECT dapp_name, network, smart_contracts, RANK( ) OVER ( ORDER BY `<col2>` DESC ) as rank FROM `<table0>` WHERE `<col1>` = 'Cardano';
List the dapps that have deployed the most smart contracts in the 'Cardano' network.
<table0>[table_name_86] { <col0>[icao]:[VARCHAR] <col1>[airport]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "antalya airport"
What is the ICAO for Antalya Airport?
<table0>[MiningOperations] { <col0>[OperationID]:[INT] <col1>[MineName]:[VARCHAR] <col2>[Location]:[VARCHAR] <col3>[WaterUsage]:[INT] }
SELECT MIN( `<col3>` ) FROM `<table0>` WHERE `<col2>` LIKE 'Asia%';
What is the minimum water usage for mining operations in Asia?
<table0>[table_1277350_1] { <col0>[thursday_iuppiter__jupiter]:[VARCHAR] <col1>[friday_venus__venus]:[VARCHAR] }
SELECT thursday_iuppiter__jupiter_ FROM `<table0>` WHERE friday_venus__venus_ = "vendredi"
what's the thursday iuppiter (jupiter) with friday venus (venus) being vendredi
<table0>[table_name_79] { <col0>[crowd]:[VARCHAR] <col1>[away_team]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "newcastle jets"
In the match where newcastle jets was the away team, what was the crown attendance?
<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 `<table4>`.short_title FROM `<table4>` WHERE `<table4>`.subject_id = "6983"
what is procedure short title of subject id 6983?
<table0>[table_63887] { <col0>[1985]:[text] <col1>[1990]:[text] <col2>[2004]:[real] <col3>[2005]:[real] <col4>[2006]:[real] <col5>[2007]:[real] }
SELECT "1990" FROM `<table0>` WHERE "2005" < '5,361' AND "2007" < '4,841' AND "2006" < '618' AND "2004" < '389'
Which 1990 has a 2005 smaller than 5,361, and a 2007 smaller than 4,841, and a 2006 smaller than 618, and a 2004 smaller than 389?
<table0>[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] <col8>[good_feedback]:[int] <col9>[tough_tests]:[int] <col10>[heavy_papers]:[in...
SELECT DISTINCT name, `<col3>` FROM `<table16>` WHERE `<col2>` = 'EECS' AND `<col11>` = 'N' AND `<col3>` < 400 + 100 AND `<col3>` >= 400
Out of all the 400 -level courses , which of them do n't have labs ?
<table0>[table_1480455_1] { <col0>[population__2005]:[VARCHAR] <col1>[population_density___km_2]:[VARCHAR] }
SELECT COUNT( population__2005_ ) FROM `<table0>` WHERE population_density___km_2__ = "35.9"
What is the total number of population in the year 2005 where the population density 35.9 (/km 2)?
<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>`.dob_year < "2098" AND prescriptions.drug = "Clonazepam"
what is the number of patients whose year of birth is less than 2098 and drug name is clonazepam?
<table0>[Apartment_Bookings] { <col0>[apt_booking_id]:[INTEGER] <col1>[apt_id]:[INTEGER] <col2>[guest_id]:[INTEGER] <col3>[booking_status_code]:[CHAR] <col4>[booking_start_date]:[DATETIME] <col5>[booking_end_date]:[DATETIME] } <table1>[Apartments] { <col0>[apt_id]:[INTEGER] <col1>[building_id]:[INTEGER] <col2>[apt_typ...
SELECT booking_start_date, COUNT( `<col4>` ) FROM `<table0>` AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id ORDER BY COUNT( `<col4>` ) DESC
What is the number of start date of each apartment booking for each year? Return a bar chart, rank by the Y in descending.
<table0>[competition_result] { <col0>[Competition_ID]:[int] <col1>[Club_ID_1]:[int] <col2>[Club_ID_2]:[int] <col3>[Score]:[text] } <table1>[player] { <col0>[Player_ID]:[int] <col1>[name]:[text] <col2>[Position]:[text] <col3>[Club_ID]:[int] <col4>[Apps]:[real] <col5>[Tries]:[real] <col6>[Goals]:[text] <col7>[Points]:[r...
SELECT Position, AVG( `<col7>` ) FROM `<table1>` GROUP BY `<col2>` ORDER BY `<col2>`
List the position of players and the average number of points of players of each position Visualize by bar chart, and order by the names in ascending.
<table0>[table_name_88] { <col0>[structure]:[VARCHAR] <col1>[country]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "chile"
What structure is in Chile?
<table0>[public_works_projects] { <col0>[project_id]:[INT] <col1>[project_name]:[TEXT] <col2>[project_location]:[TEXT] <col3>[project_start_date]:[DATE] <col4>[project_status]:[TEXT] }
INSERT INTO public_works_projects ( project_name, project_location, project_start_date, project_status ) VALUES ( 'City Hall Renovation', 'City of Oakland', '2023-05-01', 'In Progress' );
Insert a new record into the 'public_works_projects' table with the following data: 'City Hall Renovation', 'City of Oakland', '2023-05-01', 'In Progress'
<table0>[table_27700530_10] { <col0>[record]:[VARCHAR] <col1>[high_points]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Jameer Nelson ( 19 )"
What is the record when jameer nelson (19) had the high points?
<table0>[table_35022] { <col0>[Game]:[real] <col1>[March]:[real] <col2>[Opponent]:[text] <col3>[Score]:[text] <col4>[Record]:[text] <col5>[Points]:[real] }
SELECT "Game" FROM `<table0>` WHERE "Points" < '96' AND "Record" = '43–16–8'
Points smaller than 96, and a Record of 43 16 8 belongs to what game?
<table0>[table_22355_5] { <col0>[rank]:[INTEGER] }
SELECT MIN( `<col0>` ) FROM `<table0>`
What's the minimal rank of a athlete shown in the chart?
<table0>[route] { <col0>[train_id]:[int] <col1>[station_id]:[int] } <table1>[station] { <col0>[int]:[network_name] <col1>[text]:[services] <col2>[text]:[local_authority] } <table2>[weekly_weather] { <col0>[station_id]:[int] <col1>[day_of_week]:[text] <col2>[high_temperature]:[int] <col3>[low_temperature]:[int] <col4>...
SELECT day_of_week, AVG( `<col2>` ) FROM `<table2>` GROUP BY `<col1>` ORDER BY `<col1>`
What is the average high temperature for each day of week Plot them as bar chart, display in ascending by the X.
<table0>[table_203_653] { <col0>[number]:[rank] <col1>[number]:[nation] <col2>[text]:[gold] <col3>[number]:[silver] <col4>[number]:[bronze] <col5>[number]:[total] }
SELECT "bronze" FROM `<table0>` WHERE "nation" = 'slovakia'
what is total number of bronze medals for slovakia ?
<table0>[table_name_12] { <col0>[venue]:[VARCHAR] <col1>[nationality]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "ukraine"
Which venue is with Ukraine?
<table0>[table_25518547_4] { <col0>[mls_team]:[VARCHAR] <col1>[player]:[VARCHAR] }
SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Jamel Wallace"
How many mls teams had player jamel wallace?
<table0>[FINANCIAL_CAPABILITY_PROGRAMS] { <col0>[BANK_NAME]:[VARCHAR] <col1>[PROGRAM_NAME]:[VARCHAR] <col2>[START_DATE]:[DATE] }
SELECT BANK_NAME, COUNT( * ) TOTAL_PROGRAMS FROM `<table0>` WHERE `<col2>` >= '2022-04-01' AND `<col2>` < '2022-07-01' GROUP BY `<col0>` ORDER BY TOTAL_PROGRAMS ASC;
List the banks with the lowest number of financial capability programs offered in Q2 2022, in ascending order?
<table0>[table_46302] { <col0>[Game]:[real] <col1>[Date]:[text] <col2>[Opponent]:[text] <col3>[Score]:[text] <col4>[Location]:[text] <col5>[Record]:[text] }
SELECT "Date" FROM `<table0>` WHERE "Location" = 'richfield coliseum'
What date did the Boston Celtics play at Richfield Coliseum?
<table0>[infectious_disease] { <col0>[INT]:[disease] <col1>[VARCHAR]:[cases] <col2>[INT]:[year] <col3>[INT]:[location] <col4>[VARCHAR]:[INSERT] }
SELECT SUM( cases ) FROM infectious_disease;
How many infectious disease cases were reported in the "infectious_disease" table?
<table0>[community_education] { <col0>[INT]:[animal_name] <col1>[VARCHAR]:[255] <col2>[age]:[INT] <col3>[participated_in_education]:[BOOLEAN] }
SELECT MAX( `<col2>` ) FROM `<table0>` WHERE `<col3>` = TRUE;
What is the maximum age of the animals in the community_education table that have participated in educational programs?
<table0>[farmers] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[name] <col2>[VARCHAR]:[age] <col3>[INT]:[gender] <col4>[VARCHAR]:[location] }
ALTER TABLE farmers ADD COLUMN profession VARCHAR( 50 );
Add a new column 'profession' to the 'farmers' table
<table0>[table_name_6] { <col0>[away_team]:[VARCHAR] }
SELECT `<col0>` AS score FROM `<table0>` WHERE `<col0>` = "footscray"
What is the score for Footscray?
<table0>[customers] { <col0>[CustomerID]:[integer] <col1>[text]:[text] <col2>[StreetAddress]:[text] <col3>[City]:[text] <col4>[State]:[text] <col5>[ZipCode]:[integer] <col6>[Email]:[text] <col7>[PhoneNumber]:[text] <col8>[FirstPurchaseDate]:[date] <col9>[SubscribedToEmailList]:[text] <col10>[Gender]:[text] } <table1>[...
SELECT COUNT( T1.TransactionID ) FROM `transaction` AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.LocationName = 'Sac State Union' AND T1.CreditCardType = 'American Express' AND T1.TransactionDate BETWEEN '2014-01-01' AND '2014-12-31'
How many transactions were made in Sac State Union using the American Express credit card in 2014?
<table0>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table1>[dual_carrier] { <col0>[main_airline]:[varchar] <col1>[low_flight_number]:[int] <col2>[high_flight_number]:[int] <col3>[dual_airline]:[varchar] <col4>[service_name]:[text] } <table2>[food_service] ...
SELECT DISTINCT flight.flight_id FROM airport, flight WHERE airport.airport_code = 'DAL' AND flight.from_airport = airport.airport_code
show me the flights out of DAL
<table0>[animals] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[name] <col2>[VARCHAR]:[100] <col3>[species]:[VARCHAR] <col4>[population]:[INT] }
SELECT COUNT( * ) FROM animals;
Count the number of records in the 'animals' table
<table0>[table_204_340] { <col0>[number]:[name] <col1>[text]:[year] <col2>[inducted]:[number] <col3>[position]:[text] <col4>[apps]:[number] <col5>[goals]:[number] }
SELECT "name" FROM `<table0>` ORDER BY "goals" DESC LIMIT 1
what player has the most number of goals ?
<table0>[table_17717] { <col0>[System]:[text] <col1>[Location]:[text] <col2>[Traction]:[Type] <col3>[text]:[Date] <col4>[text]:[Date] <col5>[text]:[Notes] }
SELECT "Notes" FROM `<table0>` WHERE "Date ( From )" = '12 August 1897'
what are the notes for date (from) 12 august 1897?
<table0>[healthcare] { <col0>[CommunityHealthWorker]:[worker_id] <col1>[INT]:[PRIMARY] <col2>[KEY]:[name] <col3>[VARCHAR]:[100] <col4>[cultural_competency_score]:[FLOAT] }
SELECT * FROM healthcare.CommunityHealthWorker WHERE cultural_competency_score >= 90;
List all community health workers who have a cultural competency score greater than or equal to 90
<table0>[table_name_69] { <col0>[position]:[VARCHAR] <col1>[venue]:[VARCHAR] <col2>[time]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "rome" AND `<col2>` < 40.2
What position has a time less than 40.2 at the rome venue?
<table0>[table_name_10] { <col0>[position]:[VARCHAR] <col1>[height]:[VARCHAR] <col2>[home_town]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "5-8" AND `<col2>` = "grottoes, va"
What position does the 5-8 player from Grottoes, VA play?
<table0>[products] { <col0>[product_id]:[INT] <col1>[product_name]:[VARCHAR] <col2>[255]:[category] <col3>[VARCHAR]:[255] } <table1>[users] { <col0>[user_id]:[INT] <col1>[user_country]:[VARCHAR] <col2>[255]:[INSERT] } <table2>[orders] { <col0>[order_id]:[INT] <col1>[user_id]:[INT] <col2>[product_id]:[INT] <col3>[orde...
SELECT SUM( `<col4>` ) FROM `<table2>` o JOIN products p ON o.product_id = p.product_id JOIN users u ON o.user_id = u.user_id WHERE u.user_country IN ( 'India', 'Japan' ) AND p.category = 'electronics' AND o.order_date BETWEEN '2023-01-01' AND '2023-03-31';
What was the total revenue from users in India and Japan for the 'electronics' product category in Q1 2023?
<table0>[table_75012] { <col0>[Vol]:[real] <col1>[Title]:[text] <col2>[Material]:[collected] <col3>[text]:[Publication] <col4>[date]:[text] <col5>[ISBN]:[text] }
SELECT SUM( "Vol. #" ) FROM `<table0>` WHERE "Title" = 'darkness falls'
How many Volume Numbers have the title of Darkness Falls?
<table0>[film_market_estimation] { <col0>[Estimation_ID]:[int] <col1>[Low_Estimate]:[real] <col2>[High_Estimate]:[real] <col3>[Film_ID]:[int] <col4>[Type]:[text] <col5>[Market_ID]:[int] <col6>[Year]:[int] } <table1>[market] { <col0>[Market_ID]:[int] <col1>[Country]:[text] <col2>[Number_cities]:[int] } <table2>[film] ...
SELECT Title, COUNT( `<col1>` ) FROM `<table2>` AS T1 JOIN `<table2>`_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID GROUP BY Type, `<col1>` ORDER BY `<col1>`
Use a stacked bar chart to show how many films for each title and each type The x-axis is title, rank x-axis from low to high order.
<table0>[genre] { <col0>[integer]:[genre_name] } <table1>[game] { <col0>[integer]:[genre_id] <col1>[integer]:[game_name] } <table2>[platform] { <col0>[integer]:[platform_name] } <table3>[publisher] { <col0>[integer]:[publisher_name] } <table4>[game_publisher] { <col0>[integer]:[game_id] <col1>[integer]:[publisher_i...
SELECT COUNT( T.game_publisher_id ) FROM `<table5>` AS T WHERE T.release_year = 1984
Calculate the number of game publisher IDs for games released in 1984.
<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 COUNT( T1.OrderID ) FROM `<table6>` AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'United Package'
In total, how many orders were shipped via United Package?
<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 COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN procedures ON `<table1>`.hadm_id = procedures.hadm_id WHERE `<table1>`.admityear < "2180" AND procedures.icd9_code = "4513"
what is the number of patients whose admission year is less than 2180 and procedure icd9 code is 4513?
<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.Code, 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, what is the relationship between code and revenue , and group by attribute name?
<table0>[table_name_27] { <col0>[res]:[VARCHAR] <col1>[time]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "11:58"
Which Res has a Time of 11:58?
<table0>[table_name_60] { <col0>[score_in_the_final]:[VARCHAR] <col1>[surface]:[VARCHAR] <col2>[opponent_in_the_final]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "hard" AND `<col2>` = "hiromi nagano"
What is the score in the final with a hard surface and is against Hiromi Nagano?
<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 `<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 = 'NEW YORK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LAS VEGAS' AN...
is there a TW flight from LAS VEGAS to NEW YORK
<table0>[table_64514] { <col0>[School]:[text] <col1>[Location]:[text] <col2>[Mascot]:[text] <col3>[Enrollment]:[real] <col4>[IHSAA]:[Class] <col5>[text]:[IHSAA] <col6>[Football]:[Class] <col7>[text]:[County] }
SELECT AVG( "Enrollment" ) FROM `<table0>` WHERE "IHSAA Class" = 'a' AND "Location" = 'wolcott'
What is the average enrollment of the IHSAA A class in wolcott?
<table0>[genre] { <col0>[integer]:[genre_name] } <table1>[game] { <col0>[integer]:[genre_id] <col1>[integer]:[game_name] } <table2>[platform] { <col0>[integer]:[platform_name] } <table3>[publisher] { <col0>[integer]:[publisher_name] } <table4>[game_publisher] { <col0>[integer]:[game_id] <col1>[integer]:[publisher_i...
SELECT COUNT( DISTINCT T1.game_id ) FROM `<table4>` AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Acclaim Entertainment'
How many games were published by Acclaim Entertainment?
<table0>[table_name_50] { <col0>[overall]:[INTEGER] <col1>[round]:[VARCHAR] <col2>[college]:[VARCHAR] }
SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col1>` < 24 AND `<col2>` = "north carolina state"
What is the sum of Overall, when Round is less than 24, and when College is North Carolina State?
<table0>[stadium] { <col0>[int]:[name] <col1>[text]:[Capacity] <col2>[int]:[City] <col3>[text]:[Country] <col4>[text]:[Opening_year] } <table1>[record] { <col0>[int]:[Result] <col1>[text]:[Swimmer_ID] <col2>[int]:[Event_ID] } <table2>[swimmer] { <col0>[int]:[name] <col1>[text]:[Nationality] <col2>[text]:[meter_100] <...
SELECT meter_200, SUM( meter_100 ) FROM `<table2>` GROUP BY meter_200 ORDER BY meter_200
Create a bar chart showing total number of meter 100 across meter 200, rank from low to high by the x axis please.
<table0>[table_name_42] { <col0>[points]:[INTEGER] <col1>[artist]:[VARCHAR] <col2>[place]:[VARCHAR] }
SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "kamil mikulčík and nela" AND `<col2>` > 18
What is the average Points when the artist is kamil mikul k and nela, and the Place is larger than 18?
<table0>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table1>[ReviewTaskResults] { <col0>[number]:[Re...
SELECT p.Id AS "post_link", p.Score FROM `<table20>` AS p WHERE p.Score < -10 ORDER BY p.Score
worst score answers that are accepted.
<table0>[MusicSales] { <col0>[SaleID]:[INT] <col1>[Genre]:[VARCHAR] <col2>[SalesAmount]:[DECIMAL] }
INSERT INTO MusicSales ( SaleID, Genre, SalesAmount ) VALUES ( 4, 'Pop', 11.99 );
Insert a new record of a Pop song sold for $11.99 into MusicSales table.
<table0>[Apartment_Facilities] { <col0>[apt_id]:[INTEGER] <col1>[facility_code]:[CHAR] } <table1>[Apartment_Buildings] { <col0>[building_id]:[INTEGER] <col1>[building_short_name]:[CHAR] <col2>[building_full_name]:[VARCHAR] <col3>[building_description]:[VARCHAR] <col4>[255]:[building_address] <col5>[VARCHAR]:[255] <col...
SELECT booking_start_date, COUNT( `<col4>` ) FROM `<table5>` AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = "Female" ORDER BY COUNT( `<col4>` ) DESC
What are the number of start date of the apartment bookings made by female guests (gender code 'Female') for each year? Plot a bar chart, I want to order Y in descending order.
<table0>[Photos] { <col0>[Photo_ID]:[INTEGER] <col1>[Tourist_Attraction_ID]:[INTEGER] <col2>[VARCHAR]:[255] <col3>[Description]:[VARCHAR] <col4>[255]:[Filename] <col5>[VARCHAR]:[255] <col6>[Other_Details]:[VARCHAR] } <table1>[Theme_Parks] { <col0>[Theme_Park_ID]:[INTEGER] <col1>[Theme_Park_Details]:[VARCHAR] } <table...
SELECT Visit_Date, COUNT( `<col3>` ) FROM `<table4>`
A line chart for what are the number of the distinct visit dates?
<table0>[table_203_594] { <col0>[number]:[canal] <col1>[text]:[length] <col2>[miles]:[number] <col3>[locks]:[number] <col4>[max]:[length] <col5>[number]:[width] <col6>[number]:[year] <col7>[opened]:[number] <col8>[year]:[abandoned] <col9>[number]:[year] <col10>[restored]:[number] }
SELECT ( SELECT "locks" FROM `<table0>` WHERE "canal" = 'caledonian canal' ) - ( SELECT "locks" FROM `<table0>` WHERE "canal" = 'aberdeenshire canal' )
how many more locks does caledonian canal have compared to aberdeenshire canal ?
<table0>[table_name_83] { <col0>[score]:[VARCHAR] <col1>[opponent]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "sydney roosters"
What is the score of the match with the sydney roosters as the opponent?
<table0>[faculty] { <col0>[INT]:[name] <col1>[VARCHAR]:[100] <col2>[department]:[VARCHAR] <col3>[tenure]:[VARCHAR] }
SELECT ( COUNT( * ) FILTER ( WHERE `<col3>` = 'Yes' ) ) * 100.0 / COUNT( * ) AS tenure_percentage FROM `<table0>` WHERE `<col2>` = 'English';
Calculate the percentage of tenured faculty members in the English department.
<table0>[employees] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[FIRST_NAME]:[varchar] <col2>[LAST_NAME]:[varchar] <col3>[EMAIL]:[varchar] <col4>[PHONE_NUMBER]:[varchar] <col5>[HIRE_DATE]:[date] <col6>[JOB_ID]:[varchar] <col7>[SALARY]:[decimal] <col8>[COMMISSION_PCT]:[decimal] <col9>[MANAGER_ID]:[decimal] <col10>[DEPARTMENT_...
SELECT HIRE_DATE, AVG( `<col10>` ) FROM `<table0>` WHERE `<col5>` < '2002-06-21' ORDER BY AVG( `<col10>` ) DESC
For those employees who was hired before 2002-06-21, a bar chart shows the distribution of hire_date and the average of department_id bin hire_date by weekday, and I want to sort Y in descending order.
<table0>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table1>[course_offering] { <col0>[offering_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[section_number]:[int] <col4>[start_time]:[time] <col5>[end_time]:[time] <col6>[monday]:[varchar] <col7>[tuesday]:[varchar] <col8>[wedne...
SELECT DISTINCT `<table2>`.department, `<table2>`.name, `<table2>`.number FROM `<table2>` INNER JOIN `<table2>`_offering ON `<table2>`.`<table2>`_id = `<table2>`_offering.`<table2>`_id INNER JOIN semester ON semester.semester_id = `<table2>`_offering.semester INNER JOIN program_`<table2>` ON program_`<table2>`.`<table2...
In the Fall and Winter , what upper-level electives are offered ?
<table0>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table1>[CloseAsOffTopicReasonTypes] { <col0>[numbe...
SELECT p.Id AS "post_link", COALESCE( p.LastEditDate, p.CreationDate ) AS MostRecentChange, ( SELECT COUNT( v.Id ) FROM `<table13>` AS v INNER JOIN VoteTypes AS vt ON v.VoteTypeId = vt.Id WHERE vt.Name = 'UpMod' AND v.PostId = p.Id ) AS Up`<table13>`, ( SELECT COUNT( v.Id ) FROM `<table13>` AS v INNER JOIN VoteTypes AS...
My 50 Lowest Rated Answers On Questions With No Accepted Answer.
<table0>[table_name_65] { <col0>[fastest_laps]:[INTEGER] <col1>[season]:[VARCHAR] <col2>[poles]:[VARCHAR] }
SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "2009" AND `<col2>` < 0
Which the Fastest Lap has a Season of 2009 and Poles smaller than 0?
<table0>[table_name_4] { <col0>[played]:[INTEGER] <col1>[position]:[VARCHAR] <col2>[goals_for]:[VARCHAR] }
SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col1>` < 17 AND `<col2>` = 63
What is the highest played that has a position less than 17, and 63 as the goals for?
<table0>[table_68251] { <col0>[Rank]:[real] <col1>[Nation]:[text] <col2>[Gold]:[real] <col3>[Silver]:[real] <col4>[Bronze]:[real] <col5>[Total]:[real] }
SELECT COUNT( "Total" ) FROM `<table0>` WHERE "Rank" > '17' AND "Gold" > '0'
What's the total number that had a rank larger than 17 and a gold greater than 0?
<table0>[businesses] { <col0>[business_id]:[integer] <col1>[name]:[text] <col2>[address]:[text] <col3>[city]:[text] <col4>[postal_code]:[text] <col5>[latitude]:[real] <col6>[longitude]:[real] <col7>[phone_number]:[integer] <col8>[tax_code]:[text] <col9>[business_certificate]:[integer] <col10>[application_date]:[date] <...
SELECT COUNT( DISTINCT `<col0>` ) FROM `<table2>` WHERE `<col3>` = 'Low Risk' AND `<col4>` = 'Unpermitted food facility'
How many eateries had low risk for violation with unpermitted food facility description?
<table0>[table_16677887_2] { <col0>[opponents]:[INTEGER] <col1>[date]:[VARCHAR] }
SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Sept. 14"
How many points did the opponent score on Sept. 14?
<table0>[GreenBuildingTypes] { <col0>[TypeID]:[INT] <col1>[TypeName]:[VARCHAR] } <table1>[GreenBuildings] { <col0>[BuildingID]:[INT] <col1>[TypeID]:[INT] <col2>[YearBuilt]:[INT] <col3>[CityID]:[INT] }
SELECT `<table0>`.TypeName, COUNT( GreenBuildings.BuildingID ) FROM `<table0>` INNER JOIN GreenBuildings ON `<table0>`.TypeID = GreenBuildings.TypeID WHERE GreenBuildings.YearBuilt = 2020 AND GreenBuildings.CityID = 1 GROUP BY `<table0>`.TypeName;
List all green building types and the number of each type constructed in a specific year, for buildings in New York City.
<table0>[table_39161] { <col0>[Year]:[real] <col1>[Championship]:[text] <col2>[holes]:[text] <col3>[Winning]:[score] <col4>[text]:[Margin] <col5>[text]:[Runner] }
SELECT "Winning score" FROM `<table0>` WHERE "54 holes" = '5 shot deficit'
Name the winning score for 54 holes of 5 shot deficit
<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 t3.drugname FROM ( SELECT t2.drugname, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT patient.uniquepid, `<table0>`.`<table0>`time, patient.patienthealthsystemstayid FROM `<table0>` JOIN patient ON `<table0>`.patientunitstayid = patient.patientunitstayid WHERE `<table0>`.`<table0>`name = 'hy...
what are the five most frequent drugs that were prescribed to hypoxemia male patients in their 30s within the same hospital visit after they had been diagnosed with hypoxemia in 2104?
<table0>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>...
SELECT COUNT( DISTINCT `<table0>`.subject_id ) FROM `<table0>` INNER JOIN diagnoses ON `<table0>`.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Accident in place NEC"
what is the number of patients whose diagnoses short title is accident in place nec?
<table0>[jybgb] { <col0>[YLJGDM]:[text] <col1>[YLJGDM_MZJZJLB]:[text] <col2>[YLJGDM_ZYJZJLB]:[text] <col3>[BGDH]:[text] <col4>[BGRQ]:[time] <col5>[JYLX]:[number] <col6>[JZLSH]:[text] <col7>[JZLSH_MZJZJLB]:[text] <col8>[JZLSH_ZYJZJLB]:[text] <col9>[JZLX]:[number] <col10>[KSBM]:[text] <col11>[KSMC]:[text] <col12>[SQRGH]:...
SELECT SHRGH, `<col17>` FROM `<table0>` WHERE `<col6>` = '31223495008'
在医疗就诊31223495008中给99835591这个患者审核检验报告的人员及工号分别是什么
<table0>[agricultural_projects] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[name] <col2>[VARCHAR]:[100] <col3>[location]:[VARCHAR] <col4>[funding_source]:[VARCHAR] <col5>[start_date]:[DATE] <col6>[end_date]:[DATE] }
INSERT INTO agricultural_projects ( id, name, location, funding_source, start_date, end_date ) VALUES ( 1, 'Solar Powered Irrigation', 'Rural Kenya', 'World Bank', '2022-01-01', '2023-12-31' );
Insert data into 'agricultural_projects' table
<table0>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table1>[course_prerequisite] { <col0>[pre_course_id]:[int] <col1>[course_id]:[int] } <table2>[jobs] { <col0>[job_id]:[int] <col1>[job_title]:[varchar] <col2>[description]:[varchar] <col3>[requirement]:[varchar] <col4>[city]:[varchar] <col5>[...
SELECT DISTINCT department, name, `<col3>` FROM `<table8>` WHERE ( `<col7>` LIKE '%Thermodynamics and Kinetics%' OR `<col1>` LIKE '%Thermodynamics and Kinetics%' ) AND `<col4>` = 9
Which Thermodynamics and Kinetics courses are worth 9 credits ?
<table0>[table_name_66] { <col0>[date]:[VARCHAR] <col1>[home_team]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "south melbourne"
When did South Melbourne play as the home team?
<table0>[candidate] { <col0>[Candidate_ID]:[int] <col1>[People_ID]:[int] <col2>[Poll_Source]:[text] <col3>[Date]:[text] <col4>[Support_rate]:[real] <col5>[Consider_rate]:[real] <col6>[Oppose_rate]:[real] <col7>[Unsure_rate]:[real] } <table1>[people] { <col0>[People_ID]:[int] <col1>[Sex]:[text] <col2>[text]:[Date_of_Bi...
SELECT People_ID, Weight FROM `<table1>` GROUP BY `<col1>`
Visualize the relationship between People_ID and Weight , and group by attribute Sex.
<table0>[course_offering] { <col0>[offering_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[section_number]:[int] <col4>[start_time]:[time] <col5>[end_time]:[time] <col6>[monday]:[varchar] <col7>[tuesday]:[varchar] <col8>[wednesday]:[varchar] <col9>[thursday]:[varchar] <col10>[friday]:[varchar] <col11>[...
SELECT DISTINCT `<col2>` FROM `<table13>` WHERE `<col1>` LIKE '%The Good Life%'
Which department does The Good Life Fall under ?
<table0>[table_24466855_1] { <col0>[original_air_date]:[VARCHAR] <col1>[written_by]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Jay J. Demopoulos"
Name the air date for jay j. demopoulos
<table0>[table_name_83] { <col0>[division]:[VARCHAR] <col1>[team]:[VARCHAR] <col2>[season]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "traktor tashkent" AND `<col2>` = "2005"
What division is Traktor Tashkent in 2005?
<table0>[table_name_12] { <col0>[player]:[VARCHAR] <col1>[score]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 73 - 69 - 74 - 71 = 287
Name the player with score of 73-69-74-71=287
<table0>[ice_thickness] { <col0>[INT]:[year] <col1>[INT]:[thickness] <col2>[FLOAT]:[INSERT] }
SELECT * FROM `<table0>` WHERE year < 2010;
List all ice thickness measurements in the 'ice_thickness' table older than 2010.
<table0>[ocean_features] { <col0>[name]:[TEXT] <col1>[depth]:[FLOAT] }
SELECT MAX( depth ) FROM ocean_features;
What is the maximum depth of any ocean feature?
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[...
SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` WHERE `<table1>`.ethnicity = "ASIAN" AND `<table1>`.age < "48"
give me the number of patients whose ethnicity is asian and age is less than 48?