schema
stringlengths
20
14.6k
query
stringlengths
17
2.58k
question
stringlengths
8
1.06k
<table0>[table_35223] { <col0>[Date]:[text] <col1>[Label]:[text] <col2>[Region]:[text] <col3>[Format]:[text] <col4>[Catalog]:[text] }
SELECT "Label" FROM `<table0>` WHERE "Region" = 'germany' AND "Format" = '12" maxi'
Which Label has a Region of germany, and a Format of 12' maxi?
<table0>[decentralized_applications] { <col0>[app_id]:[serial] <col1>[app_name]:[varchar] <col2>[regulatory_framework]:[varchar] }
SELECT COUNT( * ) FROM `<table0>` WHERE `<col2>` = 'HIPAA';
How many decentralized applications are associated with the 'HIPAA' regulatory framework?
<table0>[community_health_workers] { <col0>[INT]:[name] <col1>[TEXT]:[state] <col2>[TEXT]:[INSERT] } <table1>[cultural_competency_training] { <col0>[INT]:[worker_id] <col1>[INT]:[state] <col2>[TEXT]:[INSERT] }
SELECT chw.name FROM `<table0>` chw INNER JOIN cultural_competency_training cct ON chw.id = cct.worker_id WHERE chw.state IN ( 'TX', 'FL' );
How many community health workers have completed cultural competency training in Texas or Florida?
<table0>[country] { <col0>[country_id]:[integer] <col1>[country_iso_code]:[text] <col2>[country_name]:[text] } <table1>[department] { <col0>[department_id]:[integer] <col1>[department_name]:[text] } <table2>[gender] { <col0>[gender_id]:[integer] } <table3>[genre] { <col0>[genre_id]:[integer] <col1>[genre_name]:[text...
SELECT T3.title FROM `<table12>` AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Radiant Film GmbH'
Which movie did the company 'Radiant Film GmbH' work on?
<table0>[table_203_530] { <col0>[number]:[country] <col1>[text]:[gdp] <col2>[usd]:[bln] <col3>[2012]:[number] <col4>[gdp]:[usd] <col5>[bln]:[2017] <col6>[number]:[gdp] <col7>[usd]:[ppp] <col8>[bln]:[2012] <col9>[number]:[gdp] <col10>[usd]:[ppp] <col11>[bln]:[2017] <col12>[number]:[capita] <col13>[usd]:[2012] <col14>[nu...
SELECT "country" FROM `<table0>` ORDER BY "per `<col19>` ( usd, 2017 )" DESC LIMIT 1
which country has the highest per capita -lrb- usd -rrb- for 2017 ?
<table0>[table_name_67] { <col0>[week]:[VARCHAR] <col1>[record]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "0-5"
What game week did the buccaneers have a record of 0-5?
<table0>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <table1>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>[temperature]:[number] <col3>[sao2]:[number] <col4>[heartrate]:[number] <...
SELECT MIN( `<table1>`.heartrate ) FROM `<table1>` WHERE `<table1>`.`<table4>`unitstayid IN ( SELECT `<table4>`.`<table4>`unitstayid FROM `<table4>` WHERE `<table4>`.`<table4>`healthsystemstayid IN ( SELECT `<table4>`.`<table4>`healthsystemstayid FROM `<table4>` WHERE `<table4>`.uniquepid = '033-12085' ) ) AND NOT `<ta...
tell me the yearly minimum heartrate of patient 033-12085 until 1738 days ago.
<table0>[table_name_14] { <col0>[afl_team]:[VARCHAR] <col1>[position]:[VARCHAR] <col2>[pick]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "offensive tackle" AND `<col2>` = 4
Which AFL team has a pick 4 for the offensive tackle position?
<table0>[tags] { <col0>[int]:[msid] <col1>[int]:[kid] } <table1>[actor] { <col0>[aid]:[int] <col1>[gender]:[text] <col2>[name]:[text] <col3>[nationality]:[text] <col4>[birth_city]:[text] <col5>[birth_year]:[int] } <table2>[producer] { <col0>[pid]:[int] <col1>[gender]:[text] <col2>[name]:[text] <col3>[nationality]:[te...
SELECT movie.budget, movie.title FROM directed_by, director, movie WHERE director.did = directed_by.did AND director.name = 'Quentin Tarantino' AND movie.mid = directed_by.msid ORDER BY movie.release_year DESC LIMIT 1
Find the name and budget of the latest movie by ' Quentin Tarantino
<table0>[producers] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[name] <col2>[VARCHAR]:[255] <col3>[country]:[VARCHAR] } <table1>[production] { <col0>[year]:[INT] <col1>[producer_id]:[INT] <col2>[element]:[VARCHAR] <col3>[255]:[quantity] <col4>[INT]:[FOREIGN] <col5>[KEY]:[producer_id] <col6>[REFERENCES]:[producers] }
SELECT p.name, SUM( CASE WHEN `<table1>`.element = 'Neodymium' THEN `<table1>`.quantity ELSE 0 END ) AS Neodymium, SUM( CASE WHEN `<table1>`.element = 'Europium' THEN `<table1>`.quantity ELSE 0 END ) AS Europium FROM `<table1>` JOIN producers p ON `<table1>`.producer_id = p.id GROUP BY p.name;
What are the total annual productions for each producer of Neodymium and Europium?
<table0>[table_26218783_7] { <col0>[points]:[VARCHAR] }
SELECT COUNT( `<col0>` ) AS won FROM `<table0>` WHERE `<col0>` = 6675
how many time was points 6675?
<table0>[table_1341423_20] { <col0>[party]:[VARCHAR] <col1>[incumbent]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Albert Wynn"
What party did incumbent Albert Wynn belong to?
<table0>[table_name_54] { <col0>[starts]:[INTEGER] <col1>[avg_finish]:[INTEGER] }
SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col1>` > 43
How many starts for an average finish greater than 43?
<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 COUNT( DISTINCT course.course_id, semester.semester ) FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'department0' AND course.number BETWEEN 100 AND 100 + 100 AND semester.semester IN ( 'SP', 'SS', 'SU' ) AND semester.semester_id = course_offerin...
During the Spring and Summer term , what is the number of 100 -level classes offered ?
<table0>[Farm] { <col0>[FarmID]:[INT] <col1>[FishSpecies]:[VARCHAR] <col2>[Capacity]:[INT] <col3>[Location]:[VARCHAR] } <table1>[Fish] { <col0>[FishID]:[INT] <col1>[FishSpecies]:[VARCHAR] <col2>[AvgWeight]:[FLOAT] }
SELECT `<table1>`.`<table1>`Species FROM `<table1>` LEFT JOIN Farm ON `<table1>`.`<table1>`Species = Farm.`<table1>`Species WHERE Farm.Location IS NULL;
What fish species are not being farmed in Canada?
<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 Founder, AVG( `<col2>` ) FROM `<table0>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder DESC
For those records from the products and each product's manufacturer, show me about the distribution of founder and the average of price , and group by attribute founder in a bar chart, and rank in desc by the x-axis.
<table0>[table_name_76] { <col0>[home_team]:[VARCHAR] <col1>[away_team]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "liverpool"
Who is the home team with Liverpool as the away?
<table0>[product] { <col0>[product_id]:[number] } <table1>[store_district] { <col0>[store_id]:[number] <col1>[district_id]:[number] } <table2>[store] { <col0>[store_id]:[number] <col1>[store_name]:[text] <col2>[type]:[text] <col3>[area_size]:[number] <col4>[number_of_product_category]:[number] <col5>[ranking]:[number...
SELECT t3.headquartered_city, COUNT( * ) FROM `<table2>` AS t1 JOIN `<table2>`_district AS t2 ON t1.`<table2>`_id = t2.`<table2>`_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city
How many stores are headquarted in each city?
<table0>[table_24291] { <col0>[Episode]:[number] <col1>[real]:[Total] <col2>[episodes]:[real] <col3>[Title]:[text] <col4>[Original]:[broadcast] <col5>[text]:[Original] <col6>[airdate]:[text] <col7>[DVD]:[reference] }
SELECT MIN( "Total episodes" ) FROM `<table0>` WHERE "Title" = 'Bouncy Ball'
What is episode is 'Bouncy Ball'?
<table0>[table_17094] { <col0>[Player]:[text] <col1>[Position]:[text] <col2>[School]:[text] <col3>[Hometown]:[text] <col4>[College]:[text] }
SELECT "School" FROM `<table0>` WHERE "Hometown" = 'Placer, California'
What is the hometown of the players for placer, california
<table0>[table_20174050_24] { <col0>[company]:[VARCHAR] <col1>[title]:[VARCHAR] }
SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Deadly Download"
how many companies released an audiobook titled deadly download
<table0>[table_name_94] { <col0>[opponent]:[VARCHAR] <col1>[record]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "10-6"
Which opponent led to a record of 10-6?
<table0>[Faculty_Participates_in] { <col0>[FacID]:[INTEGER] <col1>[actid]:[INTEGER] } <table1>[Faculty] { <col0>[FacID]:[INTEGER] <col1>[Lname]:[VARCHAR] <col2>[Fname]:[VARCHAR] <col3>[Rank]:[VARCHAR] <col4>[Sex]:[VARCHAR] <col5>[Phone]:[INTEGER] <col6>[Room]:[VARCHAR] <col7>[Building]:[VARCHAR] } <table2>[Activity] ...
SELECT Building, COUNT( * ) FROM `<table1>` GROUP BY `<col7>` ORDER BY `<col7>`
Show all the buildings along with the number of faculty members the buildings have with a bar chart, could you rank by the bar from low to high?
<table0>[people] { <col0>[People_ID]:[int] <col1>[Sex]:[text] <col2>[text]:[Date_of_Birth] <col3>[text]:[Height] <col4>[real]:[Weight] } <table1>[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...
SELECT Date_of_Birth, Weight FROM `<table0>` ORDER BY Date_of_Birth DESC
Show me about the distribution of Date_of_Birth and Weight in a bar chart, I want to sort from high to low by the X-axis.
<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 ACC_Regular_Season, `<col1>` FROM `<table1>` ORDER BY `<col1>` DESC
Show me about the distribution of ACC_Regular_Season and School_ID in a bar chart, and order from high to low by the y axis please.
<table0>[table_name_70] { <col0>[time_retired]:[VARCHAR] <col1>[driver]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "riccardo patrese"
Tell me the time/retired for riccardo patrese
<table0>[table_name_12] { <col0>[yards]:[INTEGER] <col1>[average]:[VARCHAR] }
SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col1>` = 9.5
What is the highest amount of yards when the average is 9.5?
<table0>[table_name_29] { <col0>[jianshu]:[INTEGER] <col1>[rank]:[VARCHAR] <col2>[qiangshu]:[VARCHAR] }
SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` < 2 AND `<col2>` < 9.85
What is the average Jianshu higher than rank 2, with a Qiangshu smaller than 9.85?
<table0>[products] { <col0>[product_id]:[INT] <col1>[product_name]:[VARCHAR] <col2>[material]:[VARCHAR] <col3>[quantity]:[INT] }
SELECT SUM( `<col3>` ) FROM `<table0>` WHERE `<col2>` LIKE 'recycled%';
Show the total quantity of products made from recycled materials.
<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 `<table0>`.ethnicity = "WHITE" AND diagnoses.long_title = "Panic disorder without agoraphobia"
give me the number of patients whose ethnicity is white and diagnoses long title is panic disorder without agoraphobia?
<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>[table_66543] { <col0>[Elimination]:[text] <col1>[Wrestler]:[text] <col2>[Team]:[text] <col3>[Eliminated]:[text] <col4>[Elimination]:[text] <col5>[Time]:[text] }
SELECT "Eliminated by" FROM `<table0>` WHERE "Elimination" = '1'
Who's the eliminated by when the elimination was 1?
<table0>[table_name_13] { <col0>[time]:[VARCHAR] <col1>[local_networked]:[VARCHAR] <col2>[ad_freq]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "networked" AND `<col2>` = "20 minutes until 7pm"
What time that is networked has an ad freq of 20 minutes until 7pm?
<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>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[...
SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN prescriptions ON `<table1>`.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "BUPR75"
Which patients have the bupr75 drug code?
<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>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[...
SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN lab ON `<table1>`.hadm_id = lab.hadm_id WHERE `<table1>`.dob_year < "2043" AND lab.fluid = "Ascites"
provide the number of patients born before 2043 who were ordered ascitic fluid lab test.
<table0>[table_3835] { <col0>[Song]:[title] <col1>[text]:[Artist] <col2>[text]:[Decade] <col3>[text]:[Choreographer] <col4>[text]:[Rating] <col5>[text]:[Difficulty] <col6>[real]:[Character] <col7>[text]:[DC2] <col8>[Character]:[text] <col9>[DC3]:[Venue] <col10>[text]:[Crew] }
SELECT "Artist" FROM `<table0>` WHERE "Choreographer" = 'Marcos Aguirre' AND "Rating" = 'Simple'
List all artists with choreographer Marcos Aguirre and a simple rating.
<table0>[enrollments] { <col0>[student_id]:[INT] <col1>[instructor_id]:[INT] <col2>[enrollment_date]:[DATE] }
SELECT instructor_id, COUNT( DISTINCT `<col0>` ) as total_students FROM `<table0>` GROUP BY instructor_id;
What is the total number of students who have ever enrolled in a lifelong learning course per instructor?
<table0>[table_name_47] { <col0>[high_points]:[VARCHAR] <col1>[game]:[VARCHAR] <col2>[score]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` < 80 AND `<col2>` = "l 123–142"
What high points did a game earlier than 80 have with a score of l 123–142?
<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>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[itemid]:[...
SELECT MAX( `<table1>`.valuenum ) FROM `<table1>` WHERE `<table1>`.icustay_id IN ( SELECT `<table14>`.icustay_id FROM `<table14>` WHERE `<table14>`.hadm_id IN ( SELECT `<table7>`.hadm_id FROM `<table7>` WHERE `<table7>`.subject_id = 32153 AND `<table7>`.dischtime IS NULL ) ) AND `<table1>`.itemid IN ( SELECT `<table6>`...
what is the daily maximum of temperature c (calc) for patient 32153 on the current hospital visit?
<table0>[college] { <col0>[college_id]:[TEXT] <col1>[name_full]:[TEXT] <col2>[city]:[TEXT] <col3>[state]:[TEXT] <col4>[country]:[TEXT] } <table1>[manager_half] { <col0>[player_id]:[TEXT] <col1>[year]:[INTEGER] <col2>[team_id]:[TEXT] <col3>[league_id]:[TEXT] <col4>[inseason]:[INTEGER] <col5>[half]:[INTEGER] <col6>[INTE...
SELECT year, SUM( `<col8>` ) FROM `<table22>` ORDER BY `<col0>`
Show the trend about the number of attendance at home games change over the years, bin year into year interval, could you sort X in asc order?
<table0>[DefenseContracts] { <col0>[INT]:[Vendor] <col1>[TEXT]:[DECIMAL] }
DELETE FROM `<table0>` WHERE Amount > 500000.00;
Delete all defense contracts with a value over 500000
<table0>[table_26429771_1] { <col0>[title]:[VARCHAR] <col1>[no_in_season]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 8
What is the name of chapter 8 of season 4?
<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>[ReviewTasks] { <col0>[number]:[ReviewTa...
SELECT p.Id, p.Title, COUNT( answers.Id ) AS answerCount, p.Score, COUNT( answers.Id ) - p.Score AS subtraction FROM `<table28>` AS p INNER JOIN `<table28>` AS answers ON p.Id = answers.ParentId INNER JOIN ( SELECT PostId, COUNT( v.Id ) AS votes FROM `<table28>` AS p INNER JOIN `<table28>` AS answers ON p.Id = answers....
MELS questions with answers and votes.
<table0>[height_info] { <col0>[height_id]:[integer] <col1>[height_in_cm]:[integer] <col2>[height_in_inch]:[text] } <table1>[weight_info] { <col0>[weight_id]:[integer] <col1>[weight_in_kg]:[integer] <col2>[weight_in_lbs]:[integer] } <table2>[PlayerInfo] { <col0>[ELITEID]:[integer] <col1>[PlayerName]:[text] <col2>[birt...
SELECT DISTINCT T2.PlayerName FROM `<table3>` AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2000-2001' AND T1.LEAGUE = 'International' ORDER BY T1.P DESC LIMIT 1
Who is the most valuable player who played in the 2000-2001 season of the International league?
<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 procedures ON `<table4>`.hadm_id = procedures.hadm_id WHERE `<table4>`.admityear < "2135" AND procedures.icd9_code = "3893"
how many patients were admitted before the year 2135 under procedure icd9 code 3893?
<table0>[table_name_61] { <col0>[city]:[VARCHAR] <col1>[stadium]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "don valley stadium"
In what city is the Don Valley Stadium located?
<table0>[table_name_83] { <col0>[loss]:[VARCHAR] <col1>[record]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "10-16"
What loss has 10-16 as the record?
<table0>[region] { <col0>[Region_ID]:[int] <col1>[Region_name]:[text] <col2>[Date]:[text] <col3>[Label]:[text] <col4>[Format]:[text] <col5>[Catalogue]:[text] } <table1>[party_events] { <col0>[Event_ID]:[int] <col1>[Event_Name]:[text] <col2>[Party_ID]:[int] <col3>[Member_in_charge_ID]:[int] } <table2>[member] { <col0>...
SELECT Minister, COUNT( `<col1>` ) FROM `<table3>` GROUP BY `<col1>`
Plot how many minister by grouped by minister as a bar graph
<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 MIN( `<table3>`.age ) FROM `<table3>` WHERE `<table3>`.days_stay = "8" AND `<table3>`.admityear >= "2103"
calculate the minimum age of patients admitted in hospital in or after 2103 who stayed in hospital for 8 days.
<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>[microbiologyevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>...
SELECT MAX( `<table11>`.valuenum ) FROM `<table11>` WHERE `<table11>`.hadm_id IN ( SELECT `<table3>`.hadm_id FROM `<table3>` WHERE `<table3>`.subject_id = 27703 ) AND `<table11>`.itemid IN ( SELECT `<table12>`.itemid FROM `<table12>` WHERE `<table12>`.label = 'cholesterol, ldl, calculated' ) AND STRFTIME( '%y-%m', `<ta...
what is the yearly maximum cholesterol, ldl, calculated level of patient 27703 since 11/2105?
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[lab...
SELECT `<table3>`.dischtime FROM `<table3>` WHERE `<table3>`.subject_id = "3343"
what is discharge time of subject id 3343?
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:...
SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` INNER JOIN diagnoses ON `<table2>`.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "2920"
which patients have diagnoses icd9 code 2920?
<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 `<table2>`.diagnosis, diagnoses.long_title FROM `<table2>` INNER JOIN diagnoses ON `<table2>`.hadm_id = diagnoses.hadm_id WHERE `<table2>`.name = "Betty Campbell"
what is primary disease and diagnoses long title of subject name betty campbell?
<table0>[table_34440] { <col0>[Date]:[text] <col1>[Label]:[text] <col2>[Region]:[text] <col3>[Format]:[text] <col4>[Catalog]:[text] }
SELECT "Region" FROM `<table0>` WHERE "Catalog" = '885 380-1'
In what Region is Catalog number 885 380-1?
<table0>[table_name_42] { <col0>[score]:[VARCHAR] <col1>[home]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "new jersey"
What is the score of the New Jersey home game?
<table0>[table_name_90] { <col0>[country]:[VARCHAR] <col1>[type]:[VARCHAR] <col2>[moving_from]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "6-month loan" AND `<col2>` = "lens"
Name the country for 6-month loan and moving from of lens
<table0>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table1>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <table2>[...
SELECT t3.drug FROM ( SELECT t2.drug, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT admissions.subject_id, `<table8>`.charttime FROM `<table8>` JOIN admissions ON `<table8>`.hadm_id = admissions.hadm_id WHERE `<table8>`.icd9_code = ( SELECT `<table7>`.icd9_code FROM `<table7>` WHERE `<table7>`.sho...
what are the three most commonly prescribed drugs since 3 years ago for patients who had temporary tracheostomy before within 2 months?
<table0>[table_name_3] { <col0>[date]:[VARCHAR] <col1>[away_team]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "leeds united"
What was the date when the away team was the leeds united?
<table0>[fabric_details] { <col0>[fabric_id]:[INT] <col1>[fabric_type]:[VARCHAR] <col2>[255]:[country_of_origin] <col3>[VARCHAR]:[255] <col4>[lead_time]:[INT] }
SELECT country_of_origin, fabric_type, AVG( `<col4>` ) FROM `<table0>` GROUP BY country_of_origin, fabric_type;
List all the fabric types with their average lead time, grouped by country of origin.
<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 `<table2>`.`<table2>`time FROM `<table2>` WHERE `<table2>`.`<table7>`unitstayid IN ( SELECT `<table7>`.`<table7>`unitstayid FROM `<table7>` WHERE `<table7>`.`<table7>`healthsystemstayid IN ( SELECT `<table7>`.`<table7>`healthsystemstayid FROM `<table7>` WHERE `<table7>`.uniquepid = '006-157753' AND `<table7>`.ho...
first time patient 006-157753 was diagnosed with ventricular fibrillation in their current hospital visit?
<table0>[table_name_78] { <col0>[airport]:[VARCHAR] <col1>[iata]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "nos"
What is the airport name that has nos listed as the IATA?
<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>` INNER JOIN lab ON `<table1>`.hadm_id = lab.hadm_id WHERE `<table1>`.admission_location = "CLINIC REFERRAL/PREMATURE" AND lab.itemid = "51099"
give the number of patients whose admission location is clinic referral/premature and lab test item id is 51099.
<table0>[table_name_87] { <col0>[team]:[VARCHAR] <col1>[primary_sponsor_s]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE primary_sponsor_s_ = "peak fitness"
Which team has Peak Fitness as the primary sponsor?
<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 `<table4>`.drug_dose FROM `<table4>` WHERE `<table4>`.drug = "Ciprofloxacin HCl"
what is drug dose of drug name ciprofloxacin hcl?
<table0>[agricultural_innovation_projects] { <col0>[INT]:[country] <col1>[VARCHAR]:[funds] <col2>[FLOAT]:[year] <col3>[INT]:[INSERT] }
SELECT SUM( funds ) FROM `<table0>` WHERE country = 'Kenya' AND year = 2020;
What was the total amount of funds allocated for agricultural innovation projects in Kenya in 2020?
<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>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text]...
SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN lab ON `<table1>`.hadm_id = lab.hadm_id WHERE `<table1>`.marital_status = "SINGLE" AND lab.itemid = "51144"
count the number of patients whose marital status is single and item id is 51144?
<table0>[keyphrase] { <col0>[keyphraseid]:[int] <col1>[keyphrasename]:[varchar] } <table1>[paperkeyphrase] { <col0>[paperid]:[int] <col1>[keyphraseid]:[int] } <table2>[paper] { <col0>[paperid]:[int] <col1>[title]:[varchar] <col2>[venueid]:[int] <col3>[year]:[int] <col4>[numciting]:[int] <col5>[numcitedby]:[int] <col6...
SELECT DISTINCT COUNT( DISTINCT paper.paperid ) FROM dataset, paper, paperdataset WHERE dataset.datasetname LIKE 'ImageNet' AND paperdataset.datasetid = dataset.datasetid AND paper.paperid = paperdataset.paperid
How many papers used ImageNet dataset ?
<table0>[table_20330] { <col0>[real]:[text] <col1>[Livery]:[text] <col2>[Locomotive]:[type] <col3>[text]:[Wheel] <col4>[Arrangement]:[text] <col5>[Builder]:[text] <col6>[Year]:[built] <col7>[real]:[Status] }
SELECT COUNT( "No." ) FROM `<table0>` WHERE "Name" = 'City of Birmingham'
How many locomotives have a name of City of Birmingham
<table0>[Dams] { <col0>[INT]:[name] <col1>[VARCHAR]:[100] <col2>[design_pressure]:[FLOAT] }
SELECT AVG( design_pressure ) FROM Dams;
What is the average design pressure for all dams in the database?
<table0>[construction_workers] { <col0>[worker_id]:[INT] <col1>[occupation]:[VARCHAR] <col2>[state]:[VARCHAR] <col3>[salary]:[INT] }
SELECT state, MAX( `<col3>` ) FROM `<table0>` GROUP BY state;
What is the maximum salary of construction workers in each state?
<table0>[table_name_15] { <col0>[constructor]:[VARCHAR] <col1>[driver]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "timo glock"
What is the name of the company that constructed the vehicle for Timo Glock?
<table0>[table_39870] { <col0>[Team]:[text] <col1>[Agg]:[text] <col2>[Team]:[text] <col3>[1st]:[leg] <col4>[text]:[2nd] <col5>[leg]:[text] }
SELECT "1st leg" FROM `<table0>` WHERE "2nd leg" = '0-2'
In the round that had a 2nd leg score of 0-2, what did they score for the 1st leg?
<table0>[table_name_8] { <col0>[iata]:[VARCHAR] <col1>[icao]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "vhhh"
What is IATA, when ICAO is 'VHHH'?
<table0>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table1>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5...
SELECT `<table0>`.`<table0>`result FROM `<table0>` WHERE `<table0>`.`<table5>`unitstayid IN ( SELECT `<table5>`.`<table5>`unitstayid FROM `<table5>` WHERE `<table5>`.`<table5>`healthsystemstayid IN ( SELECT `<table5>`.`<table5>`healthsystemstayid FROM `<table5>` WHERE `<table5>`.uniquepid = '031-23724' ) ) AND `<table0...
i mean what was patient 031-23724's first mch value in 08/last year?
<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 prescriptions.drug = "bisoprolol fumarate"
give me the number of patients whose drug name is bisoprolol fumarate?
<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, T1.Manufacturer FROM `<table1>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder
For those records from the products and each product's manufacturer, what is the relationship between code and manufacturer , and group by attribute founder?
<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>[event] { <col0>[int]:[text] <col1>[Stadium_ID]:...
SELECT meter_400, meter_100 FROM `<table0>` ORDER BY meter_400 DESC
Find meter_400 and meter_100 , and visualize them by a bar chart, and rank by the X in descending please.
<table0>[microbiologyevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[charttime]:[time] <col4>[spec_type_desc]:[text] <col5>[org_name]:[text] } <table1>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[eve...
SELECT `<table10>`.charttime FROM `<table10>` WHERE `<table10>`.icustay_id IN ( SELECT `<table9>`.icustay_id FROM `<table9>` WHERE `<table9>`.hadm_id IN ( SELECT `<table13>`.hadm_id FROM `<table13>` WHERE `<table13>`.subject_id = 12726 ) ) AND `<table10>`.itemid IN ( SELECT `<table4>`.itemid FROM `<table4>` WHERE `<tab...
what was patient 12726's first time of taking .9% normal saline today?
<table0>[WINE] { <col0>[Grape]:[VARCHAR] <col1>[Winery]:[VARCHAR] <col2>[YEAR]:[VARCHAR] <col3>[Price]:[INTEGER] }
SELECT Grape, Winery, `<col2>` FROM `<table0>` WHERE `<col3>` > 100 ORDER BY `<col2>`
List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.
<table0>[table_74605] { <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 "Date" = '4 june 1927' AND "Venue" = 'corio oval'
Which team was at Corio Oval on 4 June 1927?
<table0>[table_name_47] { <col0>[winner]:[VARCHAR] <col1>[course]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "forlì to carpi"
Who won at course Forl to Carpi?
<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 `<table4>`.gender, procedures.short_title FROM `<table4>` INNER JOIN procedures ON `<table4>`.hadm_id = procedures.hadm_id WHERE `<table4>`.subject_id = "7578"
what is gender and procedure short title of subject id 7578?
<table0>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table1>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table2>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varcha...
SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE ( ( semester.semester = 'FA' AND semester.year = 2016 ) OR ( semester.semester = 'WN' AND semester.year = 2017 ) ) AND course.course_id = course_offering.course_id AND course.department = 'depar...
Does the Fall or Winter term have 400 -level courses ?
<table0>[table_name_96] { <col0>[rank]:[VARCHAR] <col1>[final]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "5:18.85"
Which rank has final with 5:18.85?
<table0>[table_204_354] { <col0>[number]:[opus] <col1>[text]:[title] <col2>[text]:[genre] <col3>[text]:[sub] <col4>[u00addivisions]:[text] <col5>[libretto]:[text] <col6>[composition]:[text] <col7>[premiere]:[date] <col8>[text]:[place] <col9>[theatre]:[text] }
SELECT COUNT( "title" ) FROM `<table0>` WHERE "place, theatre" = 'dresden'
how many total operas were performed at the dresden ?
<table0>[service_requests] { <col0>[INT]:[request_type] <col1>[VARCHAR]:[255] <col2>[request_date]:[DATE] }
SELECT request_type, COUNT( * ) FROM `<table0>` WHERE YEAR( `<col2>` ) = 2022 GROUP BY request_type;
What is the number of public service requests received in 2022, grouped by request type, in the 'service_requests' table?
<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>[stadium] { <col0>[int]:[name] <col1>[text]:[Cap...
SELECT Nationality, AVG( ID ) FROM `<table0>` GROUP BY Nationality ORDER BY AVG( ID ) DESC
Show the average of id from each nationality, display mean id in desc order.
<table0>[Student_Addresses] { <col0>[student_id]:[INTEGER] <col1>[address_id]:[INTEGER] <col2>[date_address_from]:[DATETIME] <col3>[date_address_to]:[DATETIME] <col4>[monthly_rental]:[DECIMAL] <col5>[other_details]:[VARCHAR] } <table1>[Detention] { <col0>[detention_id]:[INTEGER] <col1>[detention_type_code]:[VARCHAR] <...
SELECT other_details, COUNT( `<col5>` ) FROM `<table0>` GROUP BY `<col5>` ORDER BY `<col4>` DESC
Show me about the distribution of other_details and the amount of other_details , and group by attribute other_details in a bar chart.
<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>` INNER JOIN diagnoses ON `<table1>`.hadm_id = diagnoses.hadm_id INNER JOIN lab ON `<table1>`.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "2764" AND lab."CATEGORY" = "Chemistry"
give me the number of patients whose diagnoses icd9 code is 2764 and lab test category is chemistry?
<table0>[table_2602958_4] { <col0>[writer_s]:[VARCHAR] }
SELECT writer_s_ FROM `<table0>` WHERE no = 45
Who wrote episode number 45?
<table0>[subjects] { <col0>[subject_id]:[INT] <col1>[subject_name]:[TEXT] } <table1>[teachers] { <col0>[teacher_id]:[INT] <col1>[subject_id]:[INT] } <table2>[courses] { <col0>[course_id]:[INT] <col1>[subject_id]:[INT] <col2>[teacher_id]:[INT] <col3>[INSERT]:[subjects] <col4>[VALUES]:[Math] <col5>[Science]:[English] <...
SELECT s.subject_name, COUNT( DISTINCT t.teacher_id ) as num_teachers, COUNT( c.course_id ) as total_courses_completed FROM `<table0>` s LEFT JOIN teachers t ON s.subject_id = t.subject_id LEFT JOIN courses c ON t.teacher_id = c.teacher_id GROUP BY s.subject_id;
How many teachers have completed professional development courses in each subject area, and what is the total number of courses completed?
<table0>[View_Product_Availability] { <col0>[product_id]:[INTEGER] <col1>[booking_id]:[INTEGER] <col2>[status_date]:[DATETIME] <col3>[available_yn]:[VARCHAR] } <table1>[Products_Booked] { <col0>[booking_id]:[INTEGER] <col1>[product_id]:[INTEGER] <col2>[returned_yn]:[VARCHAR] <col3>[returned_late_yn]:[VARCHAR] <col4>[b...
SELECT payment_date, COUNT( `<col5>` ) FROM `<table3>` WHERE `<col7>` > 300 OR `<col3>` = 'Check' ORDER BY COUNT( `<col5>` ) DESC
What are the payment date of the payment with amount paid higher than 300 or with payment type is 'Check, and count them by a bar chart, order in desc by the y axis.
<table0>[table_27891] { <col0>[Settlement]:[text] <col1>[Cyrillic]:[Names] <col2>[text]:[Type] <col3>[text]:[Population] <col4>[2011]:[real] <col5>[Largest]:[ethnic] <col6>[group]:[2002] <col7>[text]:[Dominant] <col8>[religion]:[2002] }
SELECT "Type" FROM `<table0>` WHERE "Settlement" = 'Krušedol Selo'
What type of settlemen is Kru edol Selo?
<table0>[table_13779832_1] { <col0>[local_title]:[VARCHAR] <col1>[television_network]:[VARCHAR] }
SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "TV Nova Website"
how many local title with televbeingion network being tv nova website
<table0>[table_204_604] { <col0>[number]:[year] <col1>[number]:[date] <col2>[text]:[driver] <col3>[text]:[team] <col4>[text]:[manufacturer] <col5>[text]:[race] <col6>[distance]:[nlaps] <col7>[number]:[race] <col8>[distance]:[nmiles] <col9>[text]:[race] <col10>[time]:[text] <col11>[average]:[speed] <col12>[mph]:[number]...
SELECT COUNT( "driver" ) FROM `<table0>` WHERE "average speed\n( `<col12>` )" > 135
how many drivers had an average speed faster than 135 mph ?
<table0>[student_mental_health] { <col0>[INT]:[student_id] <col1>[INT]:[issue] <col2>[VARCHAR]:[severity] }
SELECT COUNT( * ) FROM `<table0>` WHERE issue IS NOT NULL;
What is the total number of students who have reported a mental health issue in the student_mental_health table?
<table0>[table_name_23] { <col0>[athlete]:[VARCHAR] <col1>[run_3]:[VARCHAR] <col2>[run_1]:[VARCHAR] <col3>[run_2]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col2>` < 51.96 AND `<col3>` > 51.13 AND `<col1>` = 52.53
Who had a Run 1 smaller than 51.96, a Run 2 larger than 51.13, and a Run 3 of 52.53?
<table0>[Digital_Divide] { <col0>[INT]:[VARCHAR] <col1>[Location]:[VARCHAR] <col2>[Access]:[BOOLEAN] }
SELECT COUNT( * ) FROM `<table0>` WHERE `<col1>` = 'North America' AND `<col2>` = FALSE;
How many people in North America do not have access to digital tools for education?
<table0>[table_name_9] { <col0>[total]:[VARCHAR] <col1>[score]:[VARCHAR] <col2>[set_1]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "1–3" AND `<col2>` = "29–31"
Which Total has a Score of 1–3, and a Set 1 of 29–31?
<table0>[sales] { <col0>[product_name]:[TEXT] <col1>[is_vegan]:[BOOLEAN] <col2>[sale_date]:[DATE] }
SELECT COUNT( * ) FROM `<table0>` WHERE `<col1>` = true AND `<col2>` BETWEEN DATE_SUB( NOW( ), INTERVAL 1 MONTH ) AND NOW( ) AND country = 'UK';
How many sales of vegan skincare products were made in the last month in the UK?