schema
stringlengths
20
14.6k
query
stringlengths
17
2.58k
question
stringlengths
8
1.06k
<table0>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } <table1>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>[temperature]:[number] <col3>[sao2]:[number] <col4...
SELECT COUNT( * ) FROM `<table8>` WHERE `<table8>`.`<table3>`unitstayid IN ( SELECT `<table3>`.`<table3>`unitstayid FROM `<table3>` WHERE `<table3>`.`<table3>`healthsystemstayid IN ( SELECT `<table3>`.`<table3>`healthsystemstayid FROM `<table3>` WHERE `<table3>`.uniquepid = '033-17325' AND NOT `<table3>`.hospitaldischa...
how many times patient 033-17325 has had a output (ml)-ostomy - gi ileostomy rlq output on their last hospital visit?
<table0>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[demogr...
SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` INNER JOIN diagnoses ON `<table2>`.hadm_id = diagnoses.hadm_id WHERE `<table2>`.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND diagnoses.long_title = "Ostium secundum type atrial septal defect"
how many patients are of hispanic/latino - puerto rican ethinicity and diagnosed with ostium secundum type atrial septal defect?
<table0>[table_1301373_1] { <col0>[location]:[VARCHAR] <col1>[stadium]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Westpac stadium"
Where is Westpac Stadium located?
<table0>[table_20971444_3] { <col0>[first_air_date]:[VARCHAR] <col1>[episode]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 9
Name the first air date for 9 episode
<table0>[race] { <col0>[race_id]:[number] <col1>[name]:[text] <col2>[class]:[text] <col3>[date]:[text] <col4>[track_id]:[text] } <table1>[track] { <col0>[track_id]:[number] <col1>[name]:[text] <col2>[location]:[text] <col3>[seating]:[number] <col4>[year_opened]:[number] }
SELECT COUNT( * ) FROM `<table0>`
How many races are there?
<table0>[renewable_projects] { <col0>[INT]:[country] <col1>[VARCHAR]:[255] <col2>[name]:[VARCHAR] <col3>[255]:[commission_date] <col4>[DATE]:[INSERT] }
SELECT `<col2>` FROM `<table0>` WHERE country IN ( 'India', 'Brazil' ) AND commission_date > '2015-12-31';
List all renewable energy projects in India and Brazil that were commissioned after 2015.
<table0>[CREATE] { <col0>[SCHEMA]:[culture] } <table1>[programs] { <col0>[program_id]:[INT] <col1>[type]:[VARCHAR] <col2>[255]:[visitors] <col3>[INT]:[program_date] <col4>[DATE]:[INSERT] }
SELECT type, COUNT( visitors ) as total_visitors FROM `<table1>` WHERE program_date < DATEADD( year, 1, '2021-01-01' ) AND program_date >= '2021-01-01' GROUP BY type;
How many visitors attended each program type in the first half of 2021?
<table0>[animal_population] { <col0>[INT]:[animal_id] <col1>[INT]:[animal_species] <col2>[VARCHAR]:[255] }
SELECT COUNT( DISTINCT animal_species ) AS unique_species FROM animal_population;
Determine the number of unique animal species in the animal population data.
<table0>[table_name_52] { <col0>[wins]:[INTEGER] <col1>[draws]:[INTEGER] }
SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col1>` < 0
How many wins are there when the draws are less than 0?
<table0>[table_203_276] { <col0>[number]:[album] <col1>[text]:[english] <col2>[title]:[text] <col3>[chinese]:[traditional] <col4>[text]:[chinese] <col5>[simplified]:[text] <col6>[release]:[date] <col7>[text]:[label] }
SELECT "english title" FROM `<table0>` WHERE "label" IN ( "b'in music", 'universal music' )
what songs were on b ` in music or universal music ?
<table0>[station_company] { <col0>[Station_ID]:[int] <col1>[Company_ID]:[int] <col2>[Rank_of_the_Year]:[int] } <table1>[gas_station] { <col0>[Station_ID]:[int] <col1>[Open_Year]:[int] <col2>[Location]:[text] <col3>[Manager_Name]:[text] <col4>[Vice_Manager_Name]:[text] <col5>[Representative_Name]:[text] } <table2>[com...
SELECT Main_Industry, SUM( `<col8>` ) FROM `<table2>` GROUP BY `<col4>`
Draw a bar chart of main industry versus total number of market value
<table0>[advisor] { <col0>[s_ID]:[varchar] <col1>[i_ID]:[varchar] } <table1>[prereq] { <col0>[course_id]:[varchar] <col1>[prereq_id]:[varchar] } <table2>[time_slot] { <col0>[time_slot_id]:[varchar] <col1>[day]:[varchar] <col2>[start_hr]:[numeric] <col3>[start_min]:[numeric] <col4>[end_hr]:[numeric] <col5>[end_min]:[n...
SELECT dept_name, SUM( `<col3>` ) FROM `<table8>` GROUP BY `<col2>` ORDER BY `<col2>`
Draw a bar chart for how many total credits are offered by each department?, order by the names from low to high.
<table0>[table_name_6] { <col0>[gold]:[INTEGER] <col1>[bronze]:[INTEGER] }
SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` > 1
What is the average number of gold medals with more than 1 bronze medal?
<table0>[Initiatives] { <col0>[Year]:[INT] <col1>[Region]:[VARCHAR] <col2>[Status]:[VARCHAR] <col3>[Type]:[VARCHAR] }
SELECT COUNT( * ) FROM `<table0>` WHERE `<col0>` = 2021 AND `<col1>` = 'Arctic' AND `<col3>` = 'Climate Mitigation' AND `<col2>` = 'Implemented';
How many climate mitigation initiatives were implemented in Arctic in 2021?
<table0>[Maintenance] { <col0>[INT]:[equipment] <col1>[VARCHAR]:[255] <col2>[date]:[DATE] <col3>[labor]:[INT] <col4>[parts]:[INT] }
DELETE FROM `<table0>` WHERE equipment = 'Airplane';
Delete all equipment maintenance records related to aircraft.
<table0>[donation_summary] { <col0>[org_id]:[INT] <col1>[total_donations]:[INT] }
SELECT org_id, `<col1>` FROM `<table0>` ORDER BY `<col1>` DESC LIMIT 5;
Find the top 5 organizations with the most donations.
<table0>[gas_station] { <col0>[Station_ID]:[int] <col1>[Open_Year]:[int] <col2>[Location]:[text] <col3>[Manager_Name]:[text] <col4>[Vice_Manager_Name]:[text] <col5>[Representative_Name]:[text] } <table1>[company] { <col0>[Company_ID]:[int] <col1>[Rank]:[int] <col2>[Company]:[text] <col3>[Headquarters]:[text] <col4>[Ma...
SELECT Headquarters, COUNT( * ) FROM `<table1>` GROUP BY `<col3>` ORDER BY COUNT( * )
For each headquarter, what are the headquarter and how many companies are centered there Visualize by bar chart, and show from low to high by the total number please.
<table0>[recall_reports] { <col0>[report_id]:[INT] <col1>[report]:[TEXT] }
SELECT COUNT( * ) as recall_count FROM `<table0>` WHERE `<col1>` LIKE '%recalled%';
How many times has 'recalled' appeared in the 'recall_reports' table?
<table0>[review] { <col0>[i_id]:[VARCHAR] } <table1>[item] { <col0>[i_id]:[VARCHAR] }
SELECT COUNT( * ) FROM `<table1>` WHERE NOT `<col0>` IN ( SELECT `<col0>` FROM `<table0>` )
Find the number of items that did not receive any review.
<table0>[table_28562675_3] { <col0>[germany]:[VARCHAR] <col1>[italy]:[VARCHAR] <col2>[england]:[VARCHAR] }
SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Naples LL Naples" AND `<col2>` = "London Area Youth London"
How many years did Germany participate, when the team from Italy was Naples LL Naples and the team from England was London Area Youth London?
<table0>[table_24535095_2] { <col0>[crew_chief]:[VARCHAR] <col1>[listed_owner_s]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE listed_owner_s_ = "Rhonda Thorson"
Name the crew chief for rhonda thorson
<table0>[table_name_39] { <col0>[pick]:[VARCHAR] <col1>[name]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "ralph shoaf"
What was Ralph Shoaf's pick number?
<table0>[table_203_309] { <col0>[number]:[team] <col1>[text]:[winners] <col2>[number]:[runners] <col3>[number]:[years] <col4>[won]:[text] <col5>[years]:[lost] }
SELECT "team" FROM `<table0>` WHERE "winners" >= 2
which teams won the title at least twice ?
<table0>[table_41779] { <col0>[Date]:[text] <col1>[Score]:[text] <col2>[Set]:[text] <col3>[Set]:[text] <col4>[Set]:[text] <col5>[Set]:[text] <col6>[Set]:[text] <col7>[Total]:[text] }
SELECT "Score" FROM `<table0>` WHERE "Set 3" = '17-25'
What is Score, when Set 3 is 17-25?
<table0>[table_name_84] { <col0>[high_points]:[VARCHAR] <col1>[game]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 81
Who had the most points in game 81?
<table0>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table1>[labevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[itemid]:[number] <col4>[charttime]:[time] <col5>[valuenum]:[number] <col6>[valueuom]:[text] } <table2>[patients] { <co...
SELECT `<table3>`.charttime FROM `<table3>` WHERE `<table3>`.icustay_id IN ( SELECT `<table9>`.icustay_id FROM `<table9>` WHERE `<table9>`.hadm_id IN ( SELECT `<table6>`.hadm_id FROM `<table6>` WHERE `<table6>`.subject_id = 9566 ) ) AND `<table3>`.itemid IN ( SELECT `<table5>`.itemid FROM `<table5>` WHERE `<table5>`.la...
when was the first time patient 9566 measured its heart rate less than 70.0 in yesterday?
<table0>[langs] { <col0>[lid]:[integer] <col1>[lang]:[text] <col2>[locale]:[text] <col3>[pages]:[integer] <col4>[words]:[integer] } <table1>[pages] { <col0>[pid]:[integer] <col1>[lid]:[integer] <col2>[page]:[integer] <col3>[revision]:[integer] <col4>[title]:[text] <col5>[words]:[integer] } <table2>[words] { <col0>[wi...
SELECT T3.w1st, T3.w2nd, T3.occurrences FROM `<table1>` AS T1 INNER JOIN `<table1>`_words AS T2 ON T1.pid = T2.pid INNER JOIN biwords AS T3 ON T2.wid = T3.w1st OR T2.wid = T3.w2nd WHERE T1.title = 'Addicio' ORDER BY T3.occurrences DESC LIMIT 1
What is the word pair that occured the highest amount of times in Addicio? Indicate how many times such word pair occured.
<table0>[Dish] { <col0>[integer]:[name] <col1>[text]:[description] <col2>[text]:[menus_appeared] <col3>[integer]:[times_appeared] <col4>[integer]:[first_appeared] <col5>[integer]:[last_appeared] <col6>[integer]:[lowest_price] <col7>[real]:[highest_price] } <table1>[Menu] { <col0>[integer]:[name] <col1>[text]:[sponsor]...
SELECT T4.sponsor FROM `<table2>` AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id INNER JOIN Menu AS T4 ON T4.id = T1.menu_id WHERE T3.name = 'Baked apples with cream' AND T3.id = 107 ORDER BY T2.price DESC LIMIT 1
Among the menus that include baked apples with cream, who is the sponsor of the menu with the highest price?
<table0>[table_name_66] { <col0>[year]:[INTEGER] <col1>[composition]:[VARCHAR] <col2>[issue_price]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "99.99% silver" AND `<col2>` = "$94.95"
What is the earliest year when the composition is 99.99% silver and the issue price is $94.95?
<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>[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 `<table2>`.subject_id ) FROM `<table2>` INNER JOIN prescriptions ON `<table2>`.hadm_id = prescriptions.hadm_id WHERE `<table2>`.ethnicity = "ASIAN" AND prescriptions.drug = "GlyBURIDE"
provide the number of asian patients who are taking glyburide medication.
<table0>[table_name_2] { <col0>[name]:[VARCHAR] <col1>[country]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "cod"
What is the name of the player from Cod?
<table0>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table1>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmentt...
SELECT `<table7>`.organism FROM `<table7>` WHERE `<table7>`.`<table6>`unitstayid IN ( SELECT `<table6>`.`<table6>`unitstayid FROM `<table6>` WHERE `<table6>`.`<table6>`healthsystemstayid IN ( SELECT `<table6>`.`<table6>`healthsystemstayid FROM `<table6>` WHERE `<table6>`.uniquepid = '031-15417' ) ) AND `<table7>`.cultu...
tell me the name of the organism found on the last sputum, expectorated microbiology test of patient 031-15417 until 20 months ago?
<table0>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table1>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comme...
SELECT DISTINCT Q.Id AS "post_link", Q.Score AS "number_of_votes", PH.Comment AS "close_reason" FROM `<table19>` AS Q INNER JOIN PostHistory AS PH ON ( Q.Id = PH.PostId ) WHERE Q.PostTypeId = 1 AND Q.Score >= 100 AND PH.PostHistoryTypeId = 10 AND PH.Comment IN ( 2, 3, 102, 104, 105 ) ORDER BY Q.Score DESC
High-scoring questions that have been closed as being off-topic..
<table0>[Addresses] { <col0>[address_id]:[INTEGER] <col1>[line_1_number_building]:[VARCHAR] <col2>[city]:[VARCHAR] <col3>[zip_postcode]:[VARCHAR] <col4>[state_province_county]:[VARCHAR] <col5>[country]:[VARCHAR] } <table1>[Products] { <col0>[product_id]:[INTEGER] <col1>[product_type_code]:[VARCHAR] <col2>[product_name...
SELECT product_name, COUNT( `<col2>` ) FROM `<table1>` GROUP BY `<col2>` ORDER BY COUNT( `<col2>` ) DESC
Bar chart x axis product name y axis how many product name, rank by the Y-axis in desc.
<table0>[Machine_Production_Daily] { <col0>[Machine_ID]:[INT] <col1>[Production_Date]:[DATE] <col2>[Production_Rate]:[INT] }
SELECT Machine_ID, Production_Date, AVG( Production_Rate ) OVER ( PARTITION BY Machine_ID ORDER BY Production_Date RANGE BETWEEN INTERVAL '2' DAY PRECEDING AND CURRENT ROW ) as Moving_Average FROM Machine_Production_Daily;
Calculate the moving average of production rate for each machine over the last three days.
<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>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table2>[diagnoses_icd] { <col0>[row_id]:[number] ...
SELECT COUNT( DISTINCT `<table6>`.subject_id ) FROM `<table6>` WHERE `<table6>`.hadm_id IN ( SELECT `<table10>`.hadm_id FROM `<table10>` WHERE `<table10>`.spec_type_desc = 'serology/blood' AND DATETIME( `<table10>`.charttime, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-1 year' ) )
count the number of patients who received their serology/blood microbiology test the previous year.
<table0>[table_27837] { <col0>[series]:[real] <col1>[season]:[real] <col2>[Title]:[text] <col3>[Directed]:[text] <col4>[Written]:[text] <col5>[Original]:[air] <col6>[date]:[text] <col7>[Production]:[code] }
SELECT "Directed by" FROM `<table0>` WHERE "Production code" = '7D03'
Who direcred the episode with production code 7d03?
<table0>[Customer_Payments] { <col0>[customer_id]:[INTEGER] <col1>[datetime_payment]:[DATETIME] <col2>[payment_method_code]:[VARCHAR] <col3>[amount_payment]:[DOUBLE] } <table1>[Staff] { <col0>[staff_id]:[INTEGER] <col1>[staff_address_id]:[INTEGER] <col2>[nickname]:[VARCHAR] <col3>[first_name]:[VARCHAR] <col4>[middle_n...
SELECT customer_status_code, COUNT( * ) FROM `<table5>` GROUP BY `<col2>`
Visualize a pie chart to show customer status codes and the number of customers having each status code.
<table0>[table_name_3] { <col0>[class]:[VARCHAR] <col1>[length]:[VARCHAR] <col2>[circuit]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "2 hours" AND `<col2>` = "las vegas motor speedway"
Which class was on the Las Vegas Motor Speedway for 2 hours?
<table0>[table_17239] { <col0>[real]:[text] <col1>[text]:[text] <col2>[Country]:[text] <col3>[Age]:[real] <col4>[Type]:[text] <col5>[Moving]:[text] <col6>[Transfer]:[window] <col7>[text]:[Ends] <col8>[real]:[Transfer] <col9>[fee]:[text] <col10>[Source]:[text] }
SELECT "Type" FROM `<table0>` WHERE "Country" = 'ESP'
What is the type where the country is esp?
<table0>[table_26330] { <col0>[Sector]:[text] <col1>[Establishments]:[real] <col2>[Sales]:[receipts] <col3>[shipments]:[000] <col4>[real]:[Annual] <col5>[payroll]:[000] <col6>[real]:[Paid] <col7>[employees]:[real] }
SELECT "Sector" FROM `<table0>` WHERE "Establishments" = '110313'
What is the sector is the establishment is 110313?
<table0>[table_name_7] { <col0>[location_attendance]:[VARCHAR] <col1>[game]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 4
WHAT IS THE LOCATION ATTENDANCE FOR GAME 4?
<table0>[athlete] { <col0>[INT]:[name] <col1>[VARCHAR]:[team] }
INSERT INTO athlete ( id, name, team ) VALUES ( 10, 'Alex Rodriguez', 'New York Yankees' );
Insert a new record in the athlete table with the following data: id=10, name='Alex Rodriguez', team='New York Yankees'.
<table0>[table_name_72] { <col0>[top_5]:[INTEGER] <col1>[tournament]:[VARCHAR] <col2>[cuts_made]:[VARCHAR] }
SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "u.s. open" AND `<col2>` > 10
What is the average Top-5, when Tournament is U.S. Open, and when Cuts Made is greater than 10?
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[prescr...
SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN prescriptions ON `<table3>`.hadm_id = prescriptions.hadm_id WHERE `<table3>`.diagnosis = "GASTROINTESTINAL BLEED" AND prescriptions.route = "TP"
count the number of patients whose primary disease is gastrointestinal bleed and drug route is tp?
<table0>[table_27733909_7] { <col0>[team]:[VARCHAR] <col1>[score]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "L 102–122 ( OT )"
Name the team for score l 102 122 (ot)
<table0>[student_tests_taken] { <col0>[registration_id]:[number] <col1>[date_test_taken]:[time] <col2>[test_result]:[text] } <table1>[course_authors_and_tutors] { <col0>[author_id]:[number] <col1>[author_tutor_atb]:[text] <col2>[login_name]:[text] <col3>[password]:[text] <col4>[personal_name]:[text] <col5>[middle_name...
SELECT T1.date_of_enrolment, T1.date_of_completion FROM `<table5>` AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id WHERE T2.family_name = "Zieme" AND T2.personal_name = "Bernie"
List the dates of enrollment and completion of the student with family name 'Zieme' and personal name 'Bernie'.
<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 FIRST_NAME, AVG( `<col7>` ) FROM `<table0>` WHERE `<col1>` LIKE '%m' GROUP BY `<col1>` ORDER BY AVG( `<col7>` )
For employees with first names that end with the letter m, give me a bar chart to show their average salary, could you sort by the y axis from low to high?
<table0>[table_name_97] { <col0>[position]:[VARCHAR] <col1>[college]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "houston"
What is Position, when College is "Houston"?
<table0>[technician] { <col0>[technician_id]:[real] <col1>[text]:[Team] <col2>[text]:[Starting_Year] <col3>[real]:[Age] } <table1>[machine] { <col0>[Machine_ID]:[int] <col1>[Making_Year]:[int] <col2>[Class]:[text] <col3>[Team]:[text] <col4>[Machine_series]:[text] <col5>[value_points]:[real] <col6>[quality_rank]:[int] ...
SELECT Name, COUNT( * ) FROM `<table3>` AS T1 JOIN technician AS T2 ON T1.technician_id = T2.technician_id GROUP BY T2.Name ORDER BY COUNT( * ) DESC
Display a bar chart for what are the names of the technicians and how many machines are they assigned to repair?, and display by the the total number in desc.
<table0>[table_name_97] { <col0>[episode]:[VARCHAR] <col1>[writer_s]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE writer_s_ = "jonathan lewis"
What episode was written by jonathan lewis?
<table0>[table_211714_2] { <col0>[rank]:[VARCHAR] <col1>[viewers__in_millions]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE viewers__in_millions_ = "14.80"
Name the rank for 14.80 viewers
<table0>[Has_amenity] { <col0>[dormid]:[INTEGER] <col1>[amenid]:[INTEGER] } <table1>[Student] { <col0>[StuID]:[INTEGER] <col1>[LName]:[VARCHAR] <col2>[Fname]:[VARCHAR] <col3>[Age]:[INTEGER] <col4>[Sex]:[VARCHAR] <col5>[Major]:[INTEGER] <col6>[Advisor]:[INTEGER] <col7>[city_code]:[VARCHAR] } <table2>[Dorm] { <col0>[do...
SELECT dorm_name, COUNT( * ) FROM `<table1>` AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.Age > 20 GROUP BY T3.dorm_name ORDER BY COUNT( * ) DESC
Give me a histogram for how many students are older than 20 in each dorm?, and could you display by the y axis in descending please?
<table0>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>[temperature]:[number] <col3>[sao2]:[number] <col4>[heartrate]:[number] <col5>[respiration]:[number] <col6>[systemicsystolic]:[number] <col7>[systemicdiastolic]:[number] <col8>[systemicmean]:[number] <col9>[observationti...
SELECT t3.`<table7>`name FROM ( SELECT t2.`<table7>`name, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT patient.uniquepid, `<table1>`.`<table1>`time FROM `<table1>` JOIN patient ON `<table1>`.patientunitstayid = patient.patientunitstayid WHERE `<table1>`.`<table1>`name = 'hypotonic fluid administr...
list the five most common diagnoses that were given to patients within 2 months after receiving hypotonic fluid administration - d5 half-normal saline this year.
<table0>[table_203_350] { <col0>[number]:[team] <col1>[text]:[agg] <col2>[text]:[team] <col3>[text]:[1st] <col4>[leg]:[text] <col5>[2nd]:[leg] }
SELECT COUNT( * ) FROM `<table0>` WHERE "1st leg" = '1-0'
how many times was the score 1-0 in the 1st leg ?
<table0>[prescriptions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[startdate]:[time] <col4>[enddate]:[time] <col5>[drug]:[text] <col6>[dose_val_rx]:[text] <col7>[dose_unit_rx]:[text] <col8>[route]:[text] } <table1>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number]...
SELECT `<table12>`.short_title FROM `<table12>` WHERE `<table12>`.icd9_code IN ( SELECT t3.icd9_code FROM ( SELECT t2.icd9_code, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT admissions.subject_id, `<table11>`.charttime, admissions.hadm_id FROM `<table11>` JOIN admissions ON `<table11>`.hadm_id = ...
what were the five most commonly ordered procedures for patients who had been previously diagnosed with neutropenia nos during the same hospital visit until 2103?
<table0>[locations] { <col0>[LOCATION_ID]:[decimal] <col1>[STREET_ADDRESS]:[varchar] <col2>[POSTAL_CODE]:[varchar] <col3>[CITY]:[varchar] <col4>[STATE_PROVINCE]:[varchar] <col5>[COUNTRY_ID]:[varchar] } <table1>[regions] { <col0>[REGION_ID]:[decimal] <col1>[REGION_NAME]:[varchar] } <table2>[jobs] { <col0>[JOB_ID]:[var...
SELECT HIRE_DATE, SUM( `<col10>` ) FROM `<table5>` WHERE `<col5>` < '2002-06-21' ORDER BY SUM( `<col10>` )
For those employees who was hired before 2002-06-21, visualize a bar chart about the distribution of hire_date and the sum of department_id bin hire_date by time, and order sum department id in ascending order.
<table0>[SECTION] { <col0>[course_id]:[VARCHAR] <col1>[semester]:[VARCHAR] <col2>[YEAR]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 'Fall' AND `<col2>` = 2009 UNION SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 'Spring' AND `<col2>` = 2010
Find courses that ran in Fall 2009 or in Spring 2010.
<table0>[Restaurants] { <col0>[RestaurantID]:[INT] } <table1>[Menu] { <col0>[MenuID]:[INT] <col1>[RestaurantID]:[INT] <col2>[Item]:[VARCHAR] <col3>[Price]:[DECIMAL] <col4>[LastOrderDate]:[DATE] }
DELETE FROM `<table1>` WHERE `<col4>` < DATE_SUB( CURDATE( ), INTERVAL 30 DAY );
Delete menu items that have not been ordered in the last 30 days.
<table0>[customers] { <col0>[customer_id]:[number] <col1>[customer_first_name]:[text] <col2>[customer_last_name]:[text] <col3>[customer_address]:[text] <col4>[customer_phone]:[text] <col5>[customer_email]:[text] <col6>[other_customer_details]:[text] } <table1>[customers_cards] { <col0>[card_id]:[number] <col1>[custome...
SELECT customer_id, customer_first_name, customer_last_name, `<col4>` FROM `<table0>`
What are the ids, full names, and phones of each customer?
<table0>[BreakfastMenu] { <col0>[menu_item]:[VARCHAR] <col1>[dish_type]:[VARCHAR] <col2>[price]:[DECIMAL] }
SELECT menu_item, COUNT( * ) AS order_count FROM `<table0>` GROUP BY `<col0>` ORDER BY order_count DESC LIMIT 1;
What is the most frequently ordered dish in the breakfast menu?
<table0>[student_record] { <col0>[student_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[grade]:[varchar] <col4>[varchar]:[transfer_source] <col5>[varchar]:[earn_credit] <col6>[varchar]:[repeat_term] <col7>[varchar]:[test_id] } <table1>[offering_instructor] { <col0>[offering_instructor_id]:[int] <col1...
SELECT DISTINCT program_course.category FROM course, program_course WHERE course.department = 'RCSSCI' AND course.number = 396 AND program_course.course_id = course.course_id
Besides a general elective , would RCSSCI 396 fulfill any requirements ?
<table0>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <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>[airport_service] { <col0>[city_code]...
SELECT DISTINCT `<table7>`_code FROM `<table7>` WHERE `<table7>`_code = 'YN'
what does YN stand for
<table0>[table_name_50] { <col0>[constructor]:[VARCHAR] <col1>[rounds]:[VARCHAR] <col2>[driver]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "all" AND `<col2>` = "bruno giacomelli"
Which Constructor has Rounds, All and Driver, Bruno Giacomelli?
<table0>[wildlife_data] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[species] <col2>[VARCHAR]:[255] <col3>[population]:[INT] <col4>[location]:[VARCHAR] <col5>[255]:[INSERT] }
SELECT location, SUM( `<col3>` ) AS total_population FROM `<table0>` WHERE species = 'Polar Bear' GROUP BY location;
What is the total population of a specific wildlife species in the Arctic?
<table0>[table_name_60] { <col0>[left_team]:[VARCHAR] <col1>[name]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "josh vanlandingham"
Tell me the left team for josh vanlandingham
<table0>[prereq] { <col0>[course_id]:[varchar] <col1>[prereq_id]:[varchar] } <table1>[advisor] { <col0>[s_ID]:[varchar] <col1>[i_ID]:[varchar] } <table2>[section] { <col0>[course_id]:[varchar] <col1>[sec_id]:[varchar] <col2>[semester]:[varchar] <col3>[year]:[numeric] <col4>[building]:[varchar] <col5>[room_number]:[va...
SELECT building, AVG( `<col2>` ) FROM `<table6>` GROUP BY `<col0>` ORDER BY `<col0>` DESC
What is the average capacity for rooms in each building? Draw a bar chart, rank by the X-axis in descending.
<table0>[spacecraft_missions] { <col0>[spacecraft_name]:[TEXT] <col1>[mission_date]:[DATE] }
SELECT DATE_TRUNC( 'week', `<col1>` ) as mission_week, COUNT( * ) as mission_count, RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) as mission_rank FROM `<table0>` GROUP BY mission_week ORDER BY mission_rank;
Find the number of spacecraft missions per week, and rank them in descending order?
<table0>[table_name_93] { <col0>[year_born__age]:[VARCHAR] <col1>[height]:[VARCHAR] <col2>[current_club]:[VARCHAR] }
SELECT year_born__age_ FROM `<table0>` WHERE `<col1>` > 2.04 AND `<col2>` = "los angeles clippers"
What is the Year born (Age) for the player who is taller than 2.04 and currently plays for the Los Angeles Clippers?
<table0>[table_name_69] { <col0>[attendance]:[VARCHAR] <col1>[date]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "december 2, 1951"
How many people attended the game on December 2, 1951?
<table0>[conditions] { <col0>[INT]:[patient_id] <col1>[INT]:[condition] <col2>[VARCHAR]:[255] } <table1>[patients] { <col0>[INT]:[age] <col1>[INT]:[country] <col2>[VARCHAR]:[255] <col3>[INSERT]:[conditions] <col4>[patient_id]:[condition] <col5>[VALUES]:[depression] <col6>[anxiety]:[anxiety] }
SELECT `<table0>`.condition, COUNT( `<table0>`.condition ) AS count FROM `<table0>` JOIN patients ON `<table0>`.patient_id = patients.id WHERE patients.country = 'Nigeria' AND patients.age BETWEEN 13 AND 24 GROUP BY `<table0>`.condition ORDER BY count DESC LIMIT 1;
What is the most common mental health condition in Nigeria's youth?
<table0>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table1>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table2>[transfers] { <col0>[row_id]:[number] <col1>[subject_id]:[num...
SELECT `<table3>`.short_title FROM `<table3>` WHERE `<table3>`.icd9_code IN ( SELECT `<table11>`.icd9_code FROM `<table11>` WHERE `<table11>`.hadm_id IN ( SELECT `<table9>`.hadm_id FROM `<table9>` WHERE `<table9>`.subject_id = 11823 ) AND DATETIME( `<table11>`.charttime, 'start of year' ) = DATETIME( CURRENT_TIME( ), '...
what was the name of the procedure, which patient 11823 was first received in the previous year?
<table0>[table_name_16] { <col0>[opponent]:[VARCHAR] <col1>[location]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "wonju chiak indoor gym, south korea"
Which Opponent has Location Wonju Chiak Indoor Gym, South Korea?
<table0>[table_40025] { <col0>[Goal]:[real] <col1>[Date]:[text] <col2>[Venue]:[text] <col3>[Score]:[text] <col4>[Result]:[text] <col5>[Competition]:[text] }
SELECT "Result" FROM `<table0>` WHERE "Goal" < '2'
What is the result when there's less than 2 goals?
<table0>[table_name_15] { <col0>[gold]:[VARCHAR] <col1>[silver]:[VARCHAR] <col2>[total]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "3" AND `<col2>` = "5"
Which gold has 3 silver and a Total of 5?
<table0>[SUBMARINE_DIVES] { <col0>[DIVE_ID]:[INT] <col1>[SUBMARINE_NAME]:[VARCHAR] <col2>[DIVE_DATE]:[DATE] <col3>[MAX_DEPTH]:[INT] }
SELECT SUBMARINE_NAME, DIVE_DATE, `<col3>` FROM ( SELECT SUBMARINE_NAME, DIVE_DATE, MAX_DEPTH, ROW_NUMBER( ) OVER ( PARTITION BY `<col1>` ORDER BY `<col3>` DESC ) AS RN FROM `<table0>` ) WHERE RN <= 5;
Find the top 5 submarine dives by maximum depth, showing the dive's date and the name of the submarine.
<table0>[carbon_offset_initiatives] { <col0>[initiative_id]:[INT] <col1>[initiative_name]:[VARCHAR] <col2>[100]:[participants] <col3>[INT]:[INSERT] }
SELECT initiative_name, participants FROM ( SELECT initiative_name, participants, ROW_NUMBER( ) OVER ( ORDER BY participants DESC ) rn FROM `<table0>` ) WHERE rn <= 2
List the top 2 carbon offset initiatives by number of participants in descending order.
<table0>[PostHistoryTypes] { <col0>[number]:[text] } <table1>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table2>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table3>[PostsWithDeleted] { <c...
SELECT ROW_NUMBER( ) OVER ( ORDER BY Reputation DESC ) AS "#", Id AS "user_link", Reputation FROM `<table23>` WHERE LOWER( Location ) LIKE '%colombia%' ORDER BY Reputation DESC LIMIT 1000
Top 1000 users from Colombia.
<table0>[furniture_manufacte] { <col0>[Manufacturer_ID]:[int] <col1>[Furniture_ID]:[int] <col2>[Price_in_Dollar]:[real] } <table1>[furniture] { <col0>[Furniture_ID]:[int] <col1>[text]:[Num_of_Component] <col2>[int]:[Market_Rate] } <table2>[manufacturer] { <col0>[Manufacturer_ID]:[int] <col1>[Open_Year]:[real] <col2>[...
SELECT Name, Market_Rate FROM `<table1>` WHERE NOT `<col0>` IN ( SELECT `<col0>` FROM `<table1>`_manufacte ) ORDER BY Name
Visualize names and market shares of furnitures which no any company is producing in our records by a bar chart, show in ascending by the bars.
<table0>[table_2462] { <col0>[real]:[Japanese] <col1>[title]:[text] <col2>[u014dmaji]:[text] <col3>[Japanese]:[translation] <col4>[text]:[Vocalist] <col5>[text]:[Episodes] }
SELECT "Vocalist" FROM `<table0>` WHERE "R\u014dmaji" = 'Pokémon ieru kana? BW'
When pok mon ieru kana? bw is the romaji who is the vocalist?
<table0>[table_train_24] { <col0>[int]:[systolic_blood_pressure_sbp] <col1>[int]:[do_not_resuscitate_dnr] <col2>[bool]:[temperature] <col3>[float]:[hypotension] <col4>[bool]:[cardiac_arrest] <col5>[bool]:[age] <col6>[float]:[NOUSE] }
SELECT * FROM `<table0>` WHERE cardiac_arrest = 1
post cardiac arrest
<table0>[Park] { <col0>[Year]:[INT] <col1>[Location]:[VARCHAR] <col2>[Number]:[INT] }
SELECT SUM( `<col2>` ) FROM `<table0>` WHERE `<col0>` IN ( 2018, 2019 ) AND `<col1>` = 'Rural';
How many public parks were there in rural areas in 2018 and 2019?
<table0>[Boroughs] { <col0>[BoroughID]:[INT] } <table1>[Properties] { <col0>[PropertyID]:[INT] <col1>[BoroughID]:[INT] <col2>[CoOwned]:[BOOLEAN] }
SELECT B.Name, COUNT( P.PropertyID ) as CoOwned`<table1>` FROM `<table1>` P JOIN Boroughs B ON P.BoroughID = B.BoroughID WHERE P.CoOwned = TRUE GROUP BY B.Name;
How many co-owned properties are there in each borough?
<table0>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table1>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[ti...
SELECT SUM( CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME( '%j', patient.hospitaldischargetime ) - STRFTIME( '%j', t4.`<table0>`time ) > 5 * 365 THEN 1 ELSE 0 END ) * 100 / COUNT( * ) FROM ( SELECT t2.uniquepid, t2.`<table0>`time FROM ( SELECT t1.uniquepid, t1.`<table0>`time FROM ( SELECT pat...
what are the five year survival rates for those who were prescribed pantoprazole after having been diagnosed with bronchitis - acute?
<table0>[veteran_employment] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[name] <col2>[VARCHAR]:[255] <col3>[position]:[VARCHAR] <col4>[255]:[years_of_service] }
ALTER TABLE veteran_employment ADD COLUMN salary NUMERIC( 10, 2 );
Add a new column 'salary' to the veteran_employment table
<table0>[table_59014] { <col0>[Team]:[text] <col1>[Agg]:[text] <col2>[Team]:[text] <col3>[1st]:[leg] <col4>[text]:[2nd] <col5>[leg]:[text] }
SELECT "Team 1" FROM `<table0>` WHERE "Team 2" = 'fluminense ( rj )'
Who is team 1 where team 2 is Fluminense (RJ)?
<table0>[SatelliteDeployments] { <col0>[INT]:[Agency] <col1>[VARCHAR]:[Status] <col2>[VARCHAR]:[Quantity] <col3>[INT]:[INSERT] }
SELECT Agency, Status, SUM( Quantity ) FROM `<table0>` GROUP BY Agency, Status;
Identify the number of successful and failed satellite deployments by SpaceX and ROSCOSMOS.
<table0>[workers] { <col0>[worker_id]:[INT] <col1>[sector]:[VARCHAR] <col2>[255]:[job_title] <col3>[VARCHAR]:[255] <col4>[salary]:[DECIMAL] }
SELECT job_title, AVG( `<col4>` ) FROM `<table0>` WHERE `<col1>` = 'Ethical Manufacturing' GROUP BY job_title;
What is the average salary of workers in the ethical manufacturing sector, grouped by their job title?
<table0>[energy_efficiency_state] { <col0>[state]:[VARCHAR] <col1>[improvement]:[FLOAT] }
SELECT state, improvement, ROW_NUMBER( ) OVER ( ORDER BY improvement DESC ) as rank FROM energy_efficiency_state;
What is the energy efficiency improvement (in %) for each state, ranked from highest to lowest?
<table0>[table_6760] { <col0>[Date]:[text] <col1>[Pos]:[text] <col2>[Player]:[text] <col3>[club]:[text] <col4>[Transfer]:[fee] }
SELECT "Date" FROM `<table0>` WHERE "Transfer fee" = '£8.8m'
Which Date had a Transfer fee of 8.8m?
<table0>[table_name_67] { <col0>[game__number]:[INTEGER] <col1>[date]:[VARCHAR] }
SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "march 4"
What game number was played on March 4?
<table0>[products] { <col0>[product_id]:[INT] <col1>[product_name]:[TEXT] } <table1>[safety_records] { <col0>[record_id]:[INT] <col1>[product_id]:[INT] <col2>[violation_date]:[DATE] } <table2>[ingredient_sources] { <col0>[ingredient_id]:[INT] <col1>[product_id]:[INT] <col2>[source_country]:[TEXT] }
SELECT `<table0>`.product_name, safety_records.record_id, safety_records.violation_date, ingredient_sources.ingredient_id, ingredient_sources.source_country FROM `<table0>` INNER JOIN safety_records ON `<table0>`.product_id = safety_records.product_id INNER JOIN ingredient_sources ON `<table0>`.product_id = ingredient_...
Which products have received a safety violation in the past year and their corresponding ingredient sourcing information?
<table0>[table_19406] { <col0>[1890]:[game] <col1>[text]:[1891] <col2>[game]:[text] <col3>[1892]:[game] <col4>[text]:[1893] <col5>[game]:[text] <col6>[1894]:[WSU] <col7>[u20130]:[Moscow] <col8>[text]:[1895] <col9>[WSU]:[u20134] <col10>[Pullman]:[text] <col11>[1896]:[game] <col12>[text]:[1897] <col13>[game]:[text] <col1...
SELECT "1896 No game" FROM `<table0>` WHERE "1894 `<col9>` 10\u20130 Moscow" = '1994 No game'
When 1994 no game is the 1894 wsu 10 0 moscow what is the 1896 no game?
<table0>[film_market_estimation] { <col0>[estimation_id]:[number] <col1>[low_estimate]:[number] <col2>[high_estimate]:[number] <col3>[film_id]:[number] <col4>[type]:[text] <col5>[market_id]:[number] <col6>[year]:[number] } <table1>[market] { <col0>[market_id]:[number] <col1>[country]:[text] <col2>[number_cities]:[numb...
SELECT `<col2>` FROM `<table2>` WHERE `<col3>` = "Nicholas Meyer" INTERSECT SELECT `<col2>` FROM `<table2>` WHERE `<col3>` = "Walter Hill"
What are the names of studios that have produced films with both Nicholas Meyer and Walter Hill?
<table0>[table_14038363_1] { <col0>[position]:[VARCHAR] <col1>[player]:[VARCHAR] }
SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Teodor Salparov"
How many position does Teodor Salparov play on?
<table0>[requirement] { <col0>[requirement_id]:[int] } <table1>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table2>[course_offering] { <col0>[offering_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[section_num...
SELECT DISTINCT `<table6>`.name FROM `<table6>` INNER JOIN offering_`<table6>` ON offering_`<table6>`.`<table6>`_id = `<table6>`.`<table6>`_id INNER JOIN student_record ON student_record.offering_id = offering_`<table6>`.offering_id INNER JOIN student ON student.student_id = student_record.student_id WHERE ( student_re...
Has anyone taught an course where a A+ was given to a student minoring in ENGLISH ?
<table0>[DesignStandards] { <col0>[INT]:[Standard] <col1>[VARCHAR]:[Description] <col2>[VARCHAR]:[500] <col3>[Year]:[INT] }
SELECT Standard, Description FROM `<table0>` WHERE `<col3>` IN ( 2010, 2015 );
What are the design standards for AASHTO and ASCE, along with their descriptions and the year they were published?
<table0>[marine_species] { <col0>[species_id]:[INTEGER] <col1>[species_name]:[TEXT] <col2>[avg_population_size]:[FLOAT] }
SELECT AVG( avg_population_size ) FROM marine_species;
What is the average population size of all marine species?
<table0>[table_name_50] { <col0>[country]:[VARCHAR] <col1>[youth__15_24__literacy_rate_total]:[VARCHAR] <col2>[youth_men]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "99%" AND `<col2>` = "98%"
What country has a Youth (15-24) Literacy Rate Total of 99%, and a Youth Men of 98%?