schema
stringlengths
20
14.6k
query
stringlengths
17
2.58k
question
stringlengths
8
1.06k
<table0>[airport] { <col0>[Airport_ID]:[int] <col1>[Airport_Name]:[text] <col2>[Total_Passengers]:[real] <col3>[Change_2007]:[text] <col4>[International_Passengers]:[real] <col5>[Domestic_Passengers]:[real] <col6>[Transit_Passengers]:[real] <col7>[Aircraft_Movements]:[real] <col8>[Freight_Metric_Tonnes]:[real] } <tabl...
SELECT Aircraft, COUNT( * ) FROM `<table3>` AS T1 JOIN match AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft
List the names of aircrafts and the number of times it won matches. Plot them as bar chart.
<table0>[community_development] { <col0>[INT]:[initiative_name] <col1>[VARCHAR]:[255] <col2>[region]:[VARCHAR] <col3>[255]:[investment] <col4>[FLOAT]:[completion_year] <col5>[INT]:[INSERT] }
SELECT SUM( investment ) FROM `<table0>` WHERE `<col2>` = 'Gangetic Plains' AND completion_year = 2020;
What was the total investment in community development initiatives in the 'Gangetic Plains' region in 2020?
<table0>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[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] } <tab...
SELECT MAX( `<table14>`.amount ) FROM `<table14>` WHERE `<table14>`.icustay_id IN ( SELECT `<table16>`.icustay_id FROM `<table16>` WHERE `<table16>`.hadm_id IN ( SELECT `<table15>`.hadm_id FROM `<table15>` WHERE `<table15>`.subject_id = 13806 ) ) AND `<table14>`.itemid IN ( SELECT `<table0>`.itemid FROM `<table0>` WHER...
indicate the monthly maximum dose of replete w/fiber that patient 13806 has received until 07/2103.
<table0>[Species] { <col0>[SpeciesID]:[INT] <col1>[SpeciesName]:[TEXT] <col2>[CarbonSequestration]:[REAL] }
SELECT `<table0>`Name, AVG( `<col2>` ) as AverageSequestration FROM `<table0>` GROUP BY `<table0>`Name;
What is the average carbon sequestration for each species?
<table0>[Research_Staff] { <col0>[staff_id]:[INTEGER] <col1>[employer_organisation_id]:[INTEGER] <col2>[staff_details]:[VARCHAR] } <table1>[Document_Types] { <col0>[document_type_code]:[VARCHAR] <col1>[document_description]:[VARCHAR] } <table2>[Research_Outcomes] { <col0>[outcome_code]:[VARCHAR] <col1>[outcome_descri...
SELECT organisation_details, COUNT( organisation_details ) FROM `<table5>` AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY organisation_details ORDER BY organisation_details DESC
For all organizations that have grants of more than 6000 dollars, compare the number of details of the organizations with a bar chart, and I want to list by the bar in desc.
<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>[transfers] { <col0>[row_id]:[number] <col1>[subject_id]:[numb...
SELECT `<table2>`.charttime FROM `<table2>` WHERE `<table2>`.hadm_id IN ( SELECT `<table11>`.hadm_id FROM `<table11>` WHERE `<table11>`.subject_id = 95057 ) AND DATETIME( `<table2>`.charttime, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-0 year' ) AND STRFTIME( '%m', `<table2>`.charttime ) = '12' O...
when did patient 95057's first lab test take place in 12/this year?
<table0>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <table1>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table2>[medicati...
SELECT SUM( `<table5>`.`<table5>` ) FROM `<table5>` WHERE `<table5>`.`<table8>`healthsystemstayid IN ( SELECT `<table8>`.`<table8>`healthsystemstayid FROM `<table8>` WHERE `<table8>`.uniquepid = '009-1746' AND NOT `<table8>`.hospitaldischargetime IS NULL ORDER BY `<table8>`.hospitaladmittime LIMIT 1 )
how much does it cost for patient 009-1746's hospital stay in the first hospital encounter?
<table0>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table1>[transfers] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[eventtype]:[text] <col5>[careunit]:[text] <col6>[w...
SELECT `<table11>`.drug FROM `<table11>` WHERE `<table11>`.hadm_id IN ( SELECT `<table2>`.hadm_id FROM `<table2>` WHERE `<table2>`.subject_id = 14467 ) AND DATETIME( `<table11>`.startdate, 'start of day' ) = DATETIME( CURRENT_TIME( ), 'start of day', '-0 day' ) EXCEPT SELECT `<table11>`.drug FROM `<table11>` WHERE `<ta...
what are the newly prescribed drugs of patient 14467 today compared to those prescribed yesterday?
<table0>[donations] { <col0>[INT]:[donor_state] <col1>[TEXT]:[donation_amount] <col2>[DECIMAL]:[INSERT] }
SELECT donor_state, SUM( donation_amount ) FROM `<table0>` GROUP BY donor_state;
What is the total donation amount per state in the United States?
<table0>[table_1566850_9] { <col0>[interview_subject]:[VARCHAR] <col1>[date]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "8-98"
Who was interviewed in the 8-98 issue?
<table0>[Air] { <col0>[Carriers]:[Code] <col1>[integer]:[Description] } <table1>[Airports] { <col0>[Code]:[text] <col1>[Description]:[text] } <table2>[Airlines] { <col0>[FL_DATE]:[text] <col1>[OP_CARRIER_AIRLINE_ID]:[integer] <col2>[TAIL_NUM]:[text] <col3>[OP_CARRIER_FL_NUM]:[integer] <col4>[ORIGIN_AIRPORT_ID]:[integ...
SELECT SUM( CASE WHEN T2.ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME THEN 1 ELSE 0 END ) AS count FROM `<table1>` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T2.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T2.FL_DATE = '2018/8/1' AND T3.Description = 'American Airlines Inc.: AA'
How many flights operated by American Airlines Inc. on 2018/8/1 were faster than scheduled?
<table0>[Public_Transportation] { <col0>[INT]:[system_name] <col1>[TEXT]:[location] <col2>[TEXT]:[type] <col3>[TEXT]:[INSERT] }
SELECT DISTINCT system_name FROM `<table0>` WHERE location = 'Tokyo' AND type = 'Subway';
Which public transportation systems are available in Tokyo?
<table0>[grapes] { <col0>[INTEGER]:[Grape] <col1>[TEXT]:[Color] } <table1>[appellations] { <col0>[INTEGER]:[Appelation] <col1>[TEXT]:[County] <col2>[TEXT]:[State] <col3>[TEXT]:[Area] <col4>[TEXT]:[isAVA] } <table2>[wine] { <col0>[INTEGER]:[Grape] <col1>[TEXT]:[Winery] <col2>[TEXT]:[Appelation] <col3>[TEXT]:[State] <c...
SELECT Grape, COUNT( * ) FROM `<table2>` GROUP BY Grape ORDER BY COUNT( * )
Display a bar chart for what are the numbers of wines for different grapes?, and order by the total number in ascending.
<table0>[AircraftManufacturing] { <col0>[INT]:[model] <col1>[VARCHAR]:[255] <col2>[quantity]:[INT] <col3>[production_date]:[DATE] }
SELECT model, production_date, SUM( quantity ) OVER ( PARTITION BY model ) AS total_units FROM AircraftManufacturing;
List all aircraft models with their manufacturing dates and the number of units produced.
<table0>[table_75981] { <col0>[Position]:[text] <col1>[Jersey]:[real] <col2>[text]:[Height] <col3>[real]:[Weight] <col4>[real]:[Birthdate] <col5>[text]:[Birthplace] <col6>[text]:[2007] <col7>[u20132008]:[Team] <col8>[text]:[NHL] <col9>[rights]:[text] }
SELECT COUNT( "Weight ( kg )" ) FROM `<table0>` WHERE "NHL rights, if any" = 'phoenix coyotes'
Which Weight (kg) has a NHL rights, if any of phoenix coyotes?
<table0>[table_43509] { <col0>[Tie]:[text] <col1>[Home]:[team] <col2>[text]:[Score] <col3>[text]:[Away] <col4>[team]:[text] <col5>[Attendance]:[text] }
SELECT "Home team" FROM `<table0>` WHERE "Attendance" = '7 february 1996' AND "Tie no" = '1'
Who is the home team that attended on 7 February 1996 and had a tie no of 1?
<table0>[Donors] { <col0>[DonorID]:[INT] <col1>[TEXT]:[TotalDonations] } <table1>[Donations] { <col0>[DonationID]:[INT] <col1>[DonorID]:[INT] <col2>[DECIMAL]:[DonationDate] }
SELECT D.Name, SUM( D.Amount ) as TotalDonated FROM `<table1>` D JOIN Donors ON D.DonorID = Donors.DonorID WHERE YEAR( DonationDate ) = 2021 GROUP BY D.DonorID, D.Name;
What is the total amount donated by each donor in 2021, including duplicate donations?
<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 MAX( `<table0>`.age ) FROM `<table0>` WHERE `<table0>`.diagnosis = "GANGRENE" AND `<table0>`.admityear >= "2103"
what is maximum age of patients whose primary disease is gangrene and admission year is greater than or equal to 2103?
<table0>[table_42924] { <col0>[Rank]:[real] <col1>[Location]:[text] <col2>[Total]:[Passengers] <col3>[real]:[Annual] <col4>[change]:[text] <col5>[Capacity]:[real] <col6>[Capacity]:[use] }
SELECT COUNT( "Rank" ) FROM `<table0>` WHERE "Total Passengers" = '15,499,462'
Which Rank that has a Total Passengers of 15,499,462?
<table0>[table_name_43] { <col0>[team_1]:[VARCHAR] <col1>[team_2]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "mount cameroon fc"
What is the team 1 with team 2 Mount Cameroon FC?
<table0>[table_12995531_3] { <col0>[episode_number]:[INTEGER] <col1>[total_viewers]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = 614000
what is the episode number where the total viewers is 614000?
<table0>[jybgb] { <col0>[BBCJBW]:[text] <col1>[BBDM]:[text] <col2>[BBMC]:[text] <col3>[BBZT]:[number] <col4>[BGDH]:[text] <col5>[BGJGDM]:[text] <col6>[BGJGMC]:[text] <col7>[BGRGH]:[text] <col8>[BGRQ]:[time] <col9>[BGRXM]:[text] <col10>[BGSJ]:[time] <col11>[CJRQ]:[time] <col12>[JSBBRQSJ]:[time] <col13>[JSBBSJ]:[time] <c...
SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM `<table4>` JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON `<table4>`.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = j...
从二00二年四月二十五日到二0二0年十二月二十一日这段时间,患者沈宾鸿检测超敏肌钙蛋白T找的哪些医务人员做的,这些医务人员的工号和姓名报一下
<table0>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table1>[SuggestedEditVotes] { <col0>[number]:[Sugg...
SELECT YEAR( p.CreationDate ) + ( MONTH( p.CreationDate ) - 1 ) / 12. AS yr_month, TagName, COUNT( * ) AS questions FROM `<table19>` AS p, PostTags AS pt, Tags AS t WHERE 1 = 1 AND p.Id = pt.PostId AND t.Id = pt.TagId AND t.TagName IN ( 'scala', 'go', 'clojure', 'groovy', 'java-8' ) AND YEAR( p.CreationDate ) >= 2014 A...
Is scala getting its lunch eaten?.
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[...
SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN lab ON `<table4>`.hadm_id = lab.hadm_id WHERE `<table4>`.dob_year < "2097" AND lab.flag = "delta"
tell me the number of patients who had delta abnormal lab test status and were born before 2097.
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[lab...
SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN diagnoses ON `<table4>`.hadm_id = diagnoses.hadm_id WHERE `<table4>`.expire_flag = "1" AND diagnoses.short_title = "Surg compl-body syst NEC"
how many patients whose death status is 1 and diagnoses short title is surg compl-body syst nec?
<table0>[products] { <col0>[product_id]:[int] <col1>[product_name]:[varchar] <col2>[255]:[product_category] <col3>[varchar]:[255] <col4>[recycled_content]:[float] }
SELECT product_category, SUM( `<col4>` ) FROM `<table0>` WHERE product_category = 'Eco-friendly' GROUP BY product_category;
What is the total recycled content of products in the 'Eco-friendly' category?
<table0>[table_204_708] { <col0>[number]:[victim] <col1>[text]:[age] <col2>[number]:[gender] <col3>[text]:[date] <col4>[text]:[type] <col5>[attack]:[text] <col6>[location]:[text] <col7>[details]:[text] <col8>[source]:[text] }
SELECT COUNT( * ) FROM `<table0>`
how many total non fatal attacks by wolves have been recorded ?
<table0>[ship] { <col0>[ship_id]:[number] <col1>[name]:[text] <col2>[type]:[text] <col3>[built_year]:[number] <col4>[class]:[text] <col5>[flag]:[text] } <table1>[captain] { <col0>[captain_id]:[number] <col1>[name]:[text] <col2>[ship_id]:[number] <col3>[age]:[text] <col4>[class]:[text] <col5>[rank]:[text] }
SELECT `<col5>` FROM `<table1>` EXCEPT SELECT `<col5>` FROM `<table1>` WHERE `<col4>` = 'Third-rate ship of the line'
What are the ranks of captains that have no captain that are in the Third-rate ship of the line class?
<table0>[table_name_89] { <col0>[category_1]:[INTEGER] <col1>[category_3]:[VARCHAR] }
SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "300"
What's the sum of all values in category 1 when category 3 is equal to 300?
<table0>[table_name_9] { <col0>[points_against]:[VARCHAR] <col1>[lost]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "3"
With the lost of 3, how many points?
<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 `<table0>`.admittime, procedures.icd9_code FROM `<table0>` INNER JOIN procedures ON `<table0>`.hadm_id = procedures.hadm_id WHERE `<table0>`.subject_id = "17772"
what is admission time and procedure icd9 code of subject id 17772?
<table0>[green_buildings] { <col0>[INT]:[city] <col1>[VARCHAR]:[year] <col2>[INT]:[carbon_offsets] }
SELECT city, AVG( carbon_offsets ) FROM `<table0>` WHERE year IN ( 2020, 2021 ) GROUP BY city;
What is the average carbon offset of green buildings constructed in 2020 and 2021, grouped by city?
<table0>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table1>[Tags] { <col0>[number]:[TagName] <col1>[te...
SELECT Score, COUNT( Score ) AS "count" FROM `<table17>` WHERE NOT AnswerCount IS NULL GROUP BY Score ORDER BY Score DESC
Question Score Frequency (whole site).
<table0>[table_39726] { <col0>[Game]:[real] <col1>[February]:[real] <col2>[Opponent]:[text] <col3>[Score]:[text] <col4>[Record]:[text] <col5>[Points]:[real] }
SELECT "Opponent" FROM `<table0>` WHERE "Game" < '57' AND "Score" = '4–5'
What is the opponent before game 57 when the score was 4 5?
<table0>[table_train_152] { <col0>[int]:[systolic_blood_pressure_sbp] <col1>[int]:[creatinine_clearance_cl] <col2>[float]:[diastolic_blood_pressure_dbp] <col3>[int]:[total_cholesterol] <col4>[int]:[urine_protein] <col5>[int]:[proteinuria] <col6>[int]:[NOUSE] }
SELECT * FROM `<table0>` WHERE systolic_blood_pressure_sbp > 145
systolic blood pressure > 145 mm hg at rest
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_...
SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` INNER JOIN diagnoses ON `<table2>`.hadm_id = diagnoses.hadm_id WHERE `<table2>`.age < "27" AND diagnoses.short_title = "Pressure ulcer, low back"
find the number of patients under the age of 27 who were diagnosed with pressure ulcer, low back.
<table0>[table_name_55] { <col0>[played_in]:[VARCHAR] <col1>[points_for]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "119"
Where was the match that had 119 points for played?
<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 `<table2>`.formulary_drug_cd FROM `<table2>` WHERE `<table2>`.drug = "Phenylephrine"
what is drug code of drug name phenylephrine?
<table0>[table_name_46] { <col0>[date]:[VARCHAR] <col1>[race]:[VARCHAR] <col2>[class]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "dodge dealers grand prix" AND `<col2>` = "gts"
On which date was the Dodge Dealers Grand Prix GTS class race?
<table0>[departments] { <col0>[DEPARTMENT_ID]:[decimal] <col1>[DEPARTMENT_NAME]:[varchar] <col2>[MANAGER_ID]:[decimal] <col3>[LOCATION_ID]:[decimal] } <table1>[employees] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[FIRST_NAME]:[varchar] <col2>[LAST_NAME]:[varchar] <col3>[EMAIL]:[varchar] <col4>[PHONE_NUMBER]:[varchar] <col...
SELECT JOB_ID, AVG( `<col7>` ) FROM `<table1>` WHERE `<col1>` LIKE '%D%' OR `<col1>` LIKE '%S%' GROUP BY `<col6>` ORDER BY AVG( `<col7>` )
For all employees who have the letters D or S in their first name, find job_id and the average of salary , and group by attribute job_id, and visualize them by a bar chart, and order Y from low to high order.
<table0>[t_kc21] { <col0>[MED_CLINIC_ID]:[text] <col1>[OVERALL_CD_ORG]:[text] <col2>[OVERALL_CD_PERSON]:[text] <col3>[COMP_ID]:[text] <col4>[PERSON_ID]:[text] <col5>[PERSON_NM]:[text] <col6>[IDENTITY_CARD]:[text] <col7>[SOC_SRT_CARD]:[text] <col8>[PERSON_SEX]:[number] <col9>[PERSON_AGE]:[number] <col10>[IN_HOSP_DATE]:[...
SELECT `<col7>` FROM `<table1>` WHERE `<col3>` = '55518683967' AND `<col5>` = '679983-a'
医疗就诊55518683967中药品679983-a属于三目录的哪个类别
<table0>[table_38692] { <col0>[Career]:[Card] <col1>[text]:[Starting] <col2>[career]:[salary] <col3>[text]:[2nd] <col4>[career]:[salary] <col5>[text]:[3rd] <col6>[career]:[salary] <col7>[text]:[4th] <col8>[career]:[salary] <col9>[text]:[5th] <col10>[career]:[salary] <col11>[text]:[6th] <col12>[career]:[salary] }
SELECT "3rd career/salary" FROM `<table0>` WHERE "6th career/salary" = 'design consultant ( $500,000-degree )'
6th career/salary of design consultant ($500,000-degree) involves what 3rd career/salary?
<table0>[table_2248991_2] { <col0>[world_rank]:[VARCHAR] <col1>[nation]:[VARCHAR] }
SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Nigeria"
How many items were listed under world rank under the nation of Nigeria?
<table0>[fare] { <col0>[fare_id]:[int] <col1>[from_airport]:[varchar] <col2>[to_airport]:[varchar] <col3>[fare_basis_code]:[text] <col4>[fare_airline]:[text] <col5>[restriction_code]:[text] <col6>[one_direction_cost]:[int] <col7>[round_trip_cost]:[int] <col8>[round_trip_required]:[varchar] } <table1>[equipment_sequenc...
SELECT DISTINCT flight.flight_id FROM `<table16>` AS AIRPORT_SERVICE_0, `<table16>` AS AIRPORT_SERVICE_1, `<table16>` AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE ( ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND CITY_2.city_code =...
show me the flights from DENVER to PITTSBURGH and ATLANTA
<table0>[Construction_Labor] { <col0>[worker_id]:[INT] <col1>[occupation]:[VARCHAR] <col2>[state]:[VARCHAR] <col3>[salary]:[FLOAT] }
SELECT occupation, AVG( `<col3>` ) FROM `<table0>` WHERE `<col2>` = 'Texas' GROUP BY occupation;
What is the average salary of construction workers in Texas, grouped by occupation?
<table0>[table_10121127_1] { <col0>[dates_of_australian_involvement]:[VARCHAR] <col1>[number_of_australians_involved]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "65"
When was it where 65 Australians were involved in the UN?
<table0>[climate_mitigation_projects] { <col0>[INT]:[project_name] <col1>[VARCHAR]:[100] <col2>[country]:[VARCHAR] <col3>[100]:[funding] <col4>[FLOAT]:[year] <col5>[INT]:[INSERT] }
SELECT country, SUM( funding ) FROM `<table0>` WHERE year = 2020 GROUP BY country;
What is the total funding allocated for climate mitigation projects in each country in 2020?
<table0>[table_18662026_10] { <col0>[parallel_bars]:[VARCHAR] <col1>[floor]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "14.200"
If the floor number is 14.200, what is the number for the parallel bars?
<table0>[table_52188] { <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 "Home team" FROM `<table0>` WHERE "Away team" = 'carlton'
Who was Carlton's home team opponent?
<table0>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>...
SELECT COUNT( DISTINCT `<table0>`.subject_id ) FROM `<table0>` INNER JOIN lab ON `<table0>`.hadm_id = lab.hadm_id WHERE `<table0>`.admission_location = "CLINIC REFERRAL/PREMATURE" AND lab.itemid = "50863"
give me the number of patients whose admission location is clinic referral/premature and item id is 50863?
<table0>[airport] { <col0>[airport_code]:[varchar] <col1>[airport_name]:[text] <col2>[airport_location]:[text] <col3>[state_code]:[varchar] <col4>[country_name]:[varchar] <col5>[time_zone_code]:[varchar] <col6>[minimum_connect_time]:[int] } <table1>[flight_fare] { <col0>[flight_id]:[int] <col1>[fare_id]:[int] } <tabl...
SELECT DISTINCT flight.flight_id FROM `<table10>` AS AIRPORT_SERVICE_0, `<table10>` 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 = 'HOUSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MILWAUKEE' AND...
list flights from HOUSTON to MILWAUKEE
<table0>[table_204_375] { <col0>[number]:[number] <col1>[season]:[number] <col2>[competition]:[text] <col3>[date]:[text] <col4>[round]:[text] <col5>[opponent]:[text] <col6>[text]:[result] <col7>[text]:[scorer] }
SELECT COUNT( * ) FROM `<table0>` WHERE "result" = "result"
how many results were only ties ?
<table0>[table_204_54] { <col0>[number]:[pondicherry] <col1>[assembly]:[text] <col2>[duration]:[text] <col3>[name]:[text] <col4>[party]:[affiliation] <col5>[text]:[election] <col6>[year]:[number] }
SELECT "pondicherry assembly" FROM `<table0>` ORDER BY "duration" DESC LIMIT 1
is the current pondicherry assembly the tenth or the twelfth ?
<table0>[trip] { <col0>[INTEGER]:[duration] <col1>[INTEGER]:[start_date] <col2>[TEXT]:[start_station_name] <col3>[TEXT]:[start_station_id] <col4>[INTEGER]:[end_date] <col5>[TEXT]:[end_station_name] <col6>[TEXT]:[end_station_id] <col7>[INTEGER]:[bike_id] <col8>[INTEGER]:[subscription_type] <col9>[TEXT]:[zip_code] } <ta...
SELECT date, COUNT( `<col0>` ) FROM `<table2>` WHERE `<col11>` BETWEEN 30.3 AND 31
What are the number of the dates in which the mean sea level pressure was between 30.3 and 31?
<table0>[table_name_60] { <col0>[year]:[VARCHAR] <col1>[ratt]:[VARCHAR] <col2>[comp]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "1" AND `<col2>` = "49"
What year has a RAtt of 1 and a comp of 49?
<table0>[table_name_43] { <col0>[state]:[VARCHAR] <col1>[hometown]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "mesa, az"
What is the state represented by the contestant from Mesa, AZ?
<table0>[financial_capability_programs] { <col0>[program_id]:[INT] <col1>[launch_date]:[DATE] <col2>[region]:[TEXT] } <table1>[financial_capability_launches] { <col0>[launch_id]:[INT] <col1>[program_id]:[INT] }
SELECT fcp.region, COUNT( fcp.program_id ) FROM `<table0>` fcp JOIN financial_capability_launches fcl ON fcp.program_id = fcl.program_id WHERE fcp.launch_date >= DATEADD( year, -1, CURRENT_DATE( ) ) GROUP BY fcp.region;
How many financial capability programs have been launched in each region in the past year?
<table0>[Country] { <col0>[CountryName]:[VARCHAR] <col1>[Continent]:[VARCHAR] }
SELECT COUNT( * ) FROM `<table0>` WHERE `<col1>` = 'Europe';
How many European countries are there in the database?
<table0>[ref_characteristic_types] { <col0>[characteristic_type_code]:[text] <col1>[characteristic_type_description]:[text] } <table1>[characteristics] { <col0>[characteristic_id]:[number] <col1>[characteristic_type_code]:[text] <col2>[characteristic_data_type]:[text] <col3>[characteristic_name]:[text] <col4>[other_ch...
SELECT product_category_description, `<col2>` FROM `<table3>` WHERE `<col0>` = "Herbs"
Return the description and unit of measurement for products in the 'Herbs' category.
<table0>[Allergy_Type] { <col0>[Allergy]:[VARCHAR] <col1>[AllergyType]:[VARCHAR] } <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>[Has_Allerg...
SELECT AllergyType, COUNT( * ) FROM `<table0>` GROUP BY `<col1>`
What are the allergy types and how many allergies correspond to each one.
<table0>[table_name_16] { <col0>[time_retired]:[VARCHAR] <col1>[driver]:[VARCHAR] <col2>[grid]:[VARCHAR] <col3>[constructor]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col2>` < 9 AND `<col3>` = "ferrari" AND `<col1>` = "rubens barrichello"
Which Time/Retired has a grid smaller than 9, a Ferrari construct, and is driven by Rubens Barrichello?
<table0>[table_70670] { <col0>[Rank]:[text] <col1>[Nation]:[text] <col2>[Gold]:[text] <col3>[Silver]:[text] <col4>[Bronze]:[text] <col5>[Total]:[text] }
SELECT "Bronze" FROM `<table0>` WHERE "Rank" = '37'
Which bronze has a Rank of 37?
<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 CompanyName FROM `<table4>` WHERE `<col6>` = 'Germany'
List the supplier company names located in Germany.
<table0>[songs] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[title] <col2>[VARCHAR]:[100] <col3>[artist]:[VARCHAR] <col4>[release_date]:[DATE] <col5>[genre]:[VARCHAR] }
INSERT INTO songs ( id, title, artist, release_date, genre ) VALUES ( 123, 'Lavender Haze', 'Taylor Swift', '2022-11-10', 'pop' );
Insert a new record for a song by Taylor Swift
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[lab...
SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` INNER JOIN diagnoses ON `<table2>`.hadm_id = diagnoses.hadm_id WHERE `<table2>`.gender = "F" AND diagnoses.icd9_code = "7742"
how many female patients had 7742 as their diagnosis icd9 code?
<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 Address, HomePhone, Salary FROM `<table2>` WHERE Title = 'Sales Manager'
Give me the address, home phone and salary of the Sales Manager.
<table0>[table_203_778] { <col0>[number]:[representative] <col1>[text]:[title] <col2>[text]:[presentation] <col3>[nof]:[credentials] <col4>[text]:[termination] <col5>[nof]:[mission] <col6>[text]:[appointed] }
SELECT "termination\nof mission" - "presentation\nof credentials" FROM `<table0>` WHERE "representative" = 'leslie combs'
what was the length , in years , of leslie combs ' term ?
<table0>[table_204_522] { <col0>[number]:[boat] <col1>[text]:[name] <col2>[text]:[builder] <col3>[text]:[laid] <col4>[text]:[launched] <col5>[text]:[completed] <col6>[text]:[fate] }
SELECT "name" FROM `<table0>` WHERE "launched" < ( SELECT "launched" FROM `<table0>` WHERE "name" = 'ha-206' ) ORDER BY "launched" DESC LIMIT 1
when was a boat launched immediately before ha-206 ?
<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 `<table3>`.admission_location, diagnoses.icd9_code FROM `<table3>` INNER JOIN diagnoses ON `<table3>`.hadm_id = diagnoses.hadm_id WHERE `<table3>`.subject_id = "2560"
what is the admission location and diagnosis icd9 code for patient id 2560?
<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 diagnoses.icd9_code, diagnoses.short_title FROM `<table0>` INNER JOIN diagnoses ON `<table0>`.hadm_id = diagnoses.hadm_id WHERE `<table0>`.name = "John Gartman"
let me know the short title and icd9 code of diagnoses for patient john gartman.
<table0>[table_name_46] { <col0>[rank]:[VARCHAR] <col1>[athletes]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "manuel cortina martínez"
What is the rank of Manuel Cortina Mart nez?
<table0>[table_19189] { <col0>[Cast]:[text] <col1>[1951]:[BBC] <col2>[text]:[1957] <col3>[BBC]:[text] <col4>[1968]:[BBC] <col5>[text]:[1970] <col6>[film]:[text] <col7>[2000]:[Carlton] <col8>[Television]:[text] }
SELECT "1970 ( `<col6>` )" FROM `<table0>` WHERE "1968 ( `<col3>` )" = 'Neil McDermott'
Name the 1970 film for when 1968 being neil mcdermott
<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>[lab] {...
SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN prescriptions ON `<table3>`.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "OXYC10"
how many patients had oxyc10 as their drug code?
<table0>[developers] { <col0>[developer_id]:[INT] <col1>[name]:[VARCHAR] <col2>[salary]:[FLOAT] <col3>[country]:[VARCHAR] <col4>[contribution_accessibility]:[BOOLEAN] }
SELECT AVG( `<col2>` ) FROM `<table0>` WHERE `<col3>` = 'EU' AND `<col4>` = true;
What is the average salary of developers who have contributed to open-source projects focused on technology accessibility in the EU?
<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 = "Seroma complicting proc"
count the number of patients whose diagnoses short title is seroma complicting proc?
<table0>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModer...
SELECT * FROM `<table26>` WHERE LastAccessDate < '2014-01-01'
SELECT * FROM Users WHERE LastAccessDate < '2014-01-01';.
<table0>[table_203_321] { <col0>[number]:[sheriff] <col1>[text]:[start] <col2>[term]:[number] }
SELECT MIN( "start of term" ) FROM `<table0>`
when did the first sheriff 's term start ?
<table0>[table_name_21] { <col0>[catalog]:[VARCHAR] <col1>[date]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "august 20, 1965"
What Catalog came out on August 20, 1965?
<table0>[InfrastructureBudget] { <col0>[Year]:[INT] <col1>[Service]:[VARCHAR] <col2>[Budget]:[FLOAT] }
SELECT Service, AVG( `<col2>` ) as Avg_Budget FROM `<table0>` GROUP BY Service;
What is the average budget allocated per service category in the Infrastructure sector in 2018 and 2019?
<table0>[table_train_160] { <col0>[int]:[alt] <col1>[float]:[systolic_blood_pressure_sbp] <col2>[int]:[ast] <col3>[float]:[platelet_count] <col4>[float]:[diastolic_blood_pressure_dbp] <col5>[int]:[serum_creatinine] <col6>[float]:[triglyceride_tg] <col7>[float]:[hypertension] <col8>[bool]:[NOUSE] }
SELECT * FROM `<table0>` WHERE serum_creatinine > 1.5
serum creatinine > 1.5 mg / dl or greater than 1.5x the upper limit of normal for age
<table0>[table_name_46] { <col0>[boiling_point]:[VARCHAR] <col1>[density]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "1.092 g/ml"
What's the boiling point when the density is 1.092 g/ml?
<table0>[Departments] { <col0>[department_id]:[INTEGER] <col1>[dept_store_id]:[INTEGER] <col2>[department_name]:[VARCHAR] } <table1>[Customer_Orders] { <col0>[order_id]:[INTEGER] <col1>[customer_id]:[INTEGER] <col2>[order_status_code]:[VARCHAR] <col3>[order_date]:[DATETIME] } <table2>[Customers] { <col0>[customer_id]...
SELECT customer_name, `<col0>` FROM `<table2>` WHERE `<col4>` LIKE "%TN%" ORDER BY `<col3>` DESC
Return the names and ids of customers who have TN in their address by a bar chart, and display names in descending order.
<table0>[table_name_74] { <col0>[round]:[INTEGER] <col1>[grand_prix]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "indian gp"
What is the smallest round with a Grand Prix of indian gp?
<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>[lab] {...
SELECT `<table3>`.insurance, `<table3>`.expire_flag FROM `<table3>` WHERE `<table3>`.subject_id = "8990"
what is insurance and death status of subject id 8990?
<table0>[table_204_532] { <col0>[number]:[season] <col1>[text]:[tier] <col2>[number]:[division] <col3>[text]:[place] }
SELECT COUNT( * ) FROM `<table0>` WHERE "place" = 4 AND "tier" = 4
how many times did the club place 4th in the tier 4 ?
<table0>[table_203_801] { <col0>[number]:[season] <col1>[text]:[division] <col2>[text]:[tier] <col3>[text]:[position] <col4>[number]:[cup] }
SELECT MAX( "season" ) - MIN( "season" ) FROM `<table0>`
how long does this table cover in years ?
<table0>[Invoice_Line_Items] { <col0>[order_item_id]:[INTEGER] <col1>[invoice_number]:[INTEGER] <col2>[product_id]:[INTEGER] <col3>[product_title]:[VARCHAR] <col4>[product_quantity]:[VARCHAR] <col5>[product_price]:[DECIMAL] <col6>[derived_product_cost]:[DECIMAL] <col7>[derived_vat_payable]:[DECIMAL] <col8>[derived_tota...
SELECT customer_last_name, COUNT( * ) FROM `<table5>` AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT( * ) DESC
How many accounts for each customer? Show a bar chart that groups by customer's last name, I want to rank from high to low by the total number.
<table0>[table_203_522] { <col0>[number]:[week] <col1>[number]:[date] <col2>[text]:[opponent] <col3>[text]:[results] <col4>[nfinal]:[score] <col5>[text]:[results] <col6>[nteam]:[record] <col7>[text]:[venue] <col8>[text]:[attendance] }
SELECT "results\nteam record" FROM `<table0>` WHERE "week" = 10
what was the team record during the 10th week of the season ?
<table0>[table_name_91] { <col0>[internet_explorer]:[VARCHAR] <col1>[chrome]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "29.07%"
What internet explorer has 29.07% for the chrome?
<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 diagnoses ON `<table3>`.hadm_id = diagnoses.hadm_id WHERE `<table3>`.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND diagnoses.long_title = "Dehydration"
what is the number of patients whose discharge location is disch-tran to psych hosp and diagnoses long title is dehydration?
<table0>[oceans] { <col0>[INT]:[name] } <table1>[species] { <col0>[INT]:[ocean_id] <col1>[INT]:[name] <col2>[VARCHAR]:[max_size] <col3>[FLOAT]:[INSERT] <col4>[oceans]:[VALUES] <col5>[Atlantic]:[Ocean] }
SELECT COUNT( DISTINCT s.name ) as `<table1>`_count, MAX( s.max_size ) as max_size FROM `<table1>` s INNER JOIN `<col4>` o ON s.ocean_id = o.id WHERE o.name = 'Atlantic Ocean';
Identify the number of fish species and their maximum size in the Atlantic Ocean.
<table0>[table_name_65] { <col0>[margin_of_victory]:[VARCHAR] <col1>[tournament]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "lpga championship"
What was the margin of victory at the LPGA Championship?
<table0>[table_7272] { <col0>[Year]:[real] <col1>[Pass]:[Rate] <col2>[text]:[Aggregates] <col3>[text]:[Aggregates] <col4>[text]:[Aggregates] <col5>[text]:[Average] <col6>[learner]:[real] }
SELECT "Pass Rate" FROM `<table0>` WHERE "% 'B' Aggregates" = '34%' AND "% 'A' Aggregates" = '41%'
Which Pass Rate has an % 'B' Aggregates of 34%, and a % 'A' Aggregates of 41%?
<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_Road, `<col0>` FROM `<table0>` ORDER BY `<col10>`
Return a bar chart about the distribution of All_Road and Team_ID , and show X-axis in ascending order.
<table0>[online_customers] { <col0>[INT]:[name] <col1>[VARCHAR]:[age] <col2>[INT]:[gender] <col3>[VARCHAR]:[city] <col4>[VARCHAR]:[INSERT] } <table1>[online_transactions] { <col0>[INT]:[customer_id] <col1>[INT]:[type] <col2>[VARCHAR]:[DECIMAL] <col3>[date]:[DATE] }
SELECT o.city, SUM( ot.amount ) as total_amount FROM `<table0>` o JOIN online_transactions ot ON o.id = ot.customer_id GROUP BY o.city ORDER BY total_amount DESC LIMIT 1;
Which city has the highest total transaction amount in the "online_customers" table?
<table0>[customers] { <col0>[INT]:[name] <col1>[VARCHAR]:[city] <col2>[VARCHAR]:[balance] <col3>[DECIMAL]:[INSERT] }
SELECT AVG( balance ) FROM `<table0>` WHERE city = 'New York';
What is the average account balance for customers in 'New York'?
<table0>[Vehicles] { <col0>[Vehicle_ID]:[INT] <col1>[VARCHAR]:[Manufacturer] <col2>[VARCHAR]:[Electric_Range] <col3>[INT]:[INSERT] }
SELECT Name, Manufacturer, Electric_Range FROM `<table0>` WHERE Electric_Range > 300;
Which electric vehicles have an estimated driving range greater than 300 miles?
<table0>[table_60466] { <col0>[Golden]:[Rivers] <col1>[text]:[Wins] <col2>[real]:[Byes] <col3>[real]:[Losses] <col4>[real]:[Draws] <col5>[real]:[real] }
SELECT AVG( "Draws" ) FROM `<table0>` WHERE "Against" = '989' AND "Wins" < '12'
What is th average dras when wins are less than 12 and the against is 989?
<table0>[table_name_3] { <col0>[category]:[VARCHAR] <col1>[president]:[VARCHAR] <col2>[year]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "richard nixon" AND `<col2>` < 2009
What was the category of Richard Nixon as President in a year prior to 2009?
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[...
SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN lab ON `<table4>`.hadm_id = lab.hadm_id WHERE `<table4>`.age < "50" AND lab.label = "Bilirubin, Indirect"
provide the number of patients whose age is less than 50 and lab test name is bilirubin, indirect?