schema
stringlengths
20
14.6k
query
stringlengths
17
2.58k
question
stringlengths
8
1.06k
<table0>[space_exploration] { <col0>[mission_name]:[VARCHAR] <col1>[100]:[launch_date] <col2>[DATE]:[launch_site] <col3>[VARCHAR]:[100] }
INSERT INTO space_exploration ( mission_name, launch_date, launch_site ) VALUES ( 'Mars 2020', '2020-07-30', 'Cape Canaveral Air Force Station' );
Insert a new record into the space_exploration table with the following data: mission_name = 'Mars 2020', launch_date = '2020-07-30', launch_site = 'Cape Canaveral Air Force Station'
<table0>[table_204_139] { <col0>[number]:[community] <col1>[text]:[airport] <col2>[name]:[text] <col3>[type]:[text] <col4>[coordinates]:[text] }
SELECT COUNT( DISTINCT "community" ) FROM `<table0>` WHERE "community" <> 'townsville'
other than townsville , how many other communities are listed ?
<table0>[FarmEmissions] { <col0>[farm_id]:[INT] <col1>[species]:[VARCHAR] <col2>[carbon_footprint]:[FLOAT] }
SELECT farm_id, SUM( `<col2>` ) FROM `<table0>` GROUP BY farm_id;
What is the total carbon footprint (in kg CO2) for each farm in FarmEmissions?
<table0>[table_48614] { <col0>[Week]:[real] <col1>[Date]:[text] <col2>[Opponent]:[text] <col3>[Result]:[text] <col4>[Attendance]:[text] }
SELECT SUM( "Week" ) FROM `<table0>` WHERE "Attendance" = '39,923'
In what Week was the Attendance 39,923?
<table0>[table_2679061_4] { <col0>[position]:[VARCHAR] <col1>[college_junior_club_team]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Regina Pats ( WHL )"
What position is the player from the Regina Pats (WHL)?
<table0>[job_history] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[START_DATE]:[date] <col2>[END_DATE]:[date] <col3>[JOB_ID]:[varchar] <col4>[DEPARTMENT_ID]:[decimal] } <table1>[jobs] { <col0>[JOB_ID]:[varchar] <col1>[JOB_TITLE]:[varchar] <col2>[MIN_SALARY]:[decimal] <col3>[MAX_SALARY]:[decimal] } <table2>[countries] { <co...
SELECT HIRE_DATE, SUM( `<col0>` ) FROM `<table3>` WHERE `<col5>` < '2002-06-21' ORDER BY SUM( `<col0>` )
For those employees who was hired before 2002-06-21, show me about the distribution of hire_date and the sum of employee_id bin hire_date by weekday in a bar chart, rank by the Y from low to high please.
<table0>[table_name_32] { <col0>[attendance]:[VARCHAR] <col1>[record]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "16–29"
Record of 16–29 is how many attendance?
<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 COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN diagnoses ON `<table4>`.hadm_id = diagnoses.hadm_id WHERE `<table4>`.expire_flag = "0" AND diagnoses.short_title = "Angioneurotic edema"
How many patients diagnosed with angioneurotic edema survived?
<table0>[table_name_8] { <col0>[literacy__2003]:[VARCHAR] <col1>[state]:[VARCHAR] <col2>[hdi__2005]:[VARCHAR] <col3>[gdp_per_capita__us]:[___2004] }
SELECT literacy__2003_ FROM `<table0>` WHERE hdi__2005_ < 0.718 AND gdp_per_capita__us$___2004_ < 3877 AND `<col1>` = "maranhão"
Which Literacy (2003) has an HDI (2005) smaller than 0.718, and a GDP per capita (US$) (2004) smaller than 3877, and a State of maranhão?
<table0>[table_name_92] { <col0>[general_election]:[INTEGER] <col1>[share_of_votes]:[VARCHAR] }
SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "17%"
How much General election has a Share of votes of 17%?
<table0>[table_77896] { <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 SUM( "Crowd" ) FROM `<table0>` WHERE "Home `<col2>` score" = '14.12 ( 96 )'
What is the total of crowd with Home team score of 14.12 (96)?
<table0>[table_name_12] { <col0>[venue]:[VARCHAR] <col1>[runs]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "325/6"
What was the venue for runs 325/6?
<table0>[table_15017] { <col0>[Country]:[text] <col1>[Film]:[title] <col2>[nomination]:[text] <col3>[Language]:[text] <col4>[Original]:[name] <col5>[text]:[Director] }
SELECT "Original name" FROM `<table0>` WHERE "Country" = 'france'
Which film originated in France?
<table0>[table_name_41] { <col0>[chassis]:[VARCHAR] <col1>[points]:[VARCHAR] <col2>[year]:[VARCHAR] <col3>[entrant]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col2>` > 1990 AND `<col3>` = "minardi scuderia italia" AND `<col1>` = 4
What is the Chassis having a year later than 1990, and Minardi Scuderia Italia as an entrant, and 4 points?
<table0>[WeatherData] { <col0>[region]:[VARCHAR] <col1>[255]:[date] <col2>[DATE]:[temperature] <col3>[INT]:[INSERT] }
SELECT region, AVG( temperature ) as Avg_Temperature FROM `<table0>` WHERE date BETWEEN '2022-12-01' AND '2022-12-31' GROUP BY `<col0>` ORDER BY Avg_Temperature ASC LIMIT 2;
List the bottom 2 regions with the lowest average temperature in December.
<table0>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } <table1>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnos...
SELECT `<table1>`.`<table1>`time 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 = '030-58018' ) ) AND `<table1>`...
when was the last time patient 030-58018 has been diagnosed with malignancy - cancer with metastases to the lung until 1 year ago?
<table0>[table_name_34] { <col0>[trofeo_fast_team]:[VARCHAR] <col1>[stage]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "19"
What is the Trofeo Fast Team when stage is 19?
<table0>[table_48908] { <col0>[Episode]:[real] <col1>[Title]:[text] <col2>[Directed]:[text] <col3>[Written]:[text] <col4>[Originalairdate]:[text] }
SELECT "Directed by" FROM `<table0>` WHERE "Episode #" = '7'
What is Directed By, when Episode # is 7?
<table0>[disability_accommodations] { <col0>[student_id]:[INT] <col1>[disability_type]:[VARCHAR] <col2>[gender]:[VARCHAR] }
SELECT gender, COUNT( * ) as total_students FROM `<table0>` GROUP BY gender;
What is the number of students who received accommodations by gender?
<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>`.insurance = "Medicaid" AND diagnoses.icd9_code = "3569"
what is the number of patients whose insurance is medicaid and diagnoses icd9 code is 3569?
<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>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[had...
SELECT DISTINCT t1.c1 FROM ( SELECT `<table8>`.valuenum, PERCENT_RANK( ) OVER ( ORDER BY `<table8>`.valuenum ) AS c1 FROM `<table8>` WHERE `<table8>`.itemid IN ( SELECT `<table4>`.itemid FROM `<table4>` WHERE `<table4>`.label = 'base excess' ) AND `<table8>`.hadm_id IN ( SELECT `<table3>`.hadm_id FROM `<table3>` WHERE ...
what is the percentile of 2.0 in a base excess laboratory test given the same age of patient 17462 during the current hospital encounter?
<table0>[vessel_visits] { <col0>[INT]:[vessel_id] <col1>[INT]:[region] <col2>[TEXT]:[visit_date] <col3>[DATE]:[INSERT] }
SELECT DISTINCT vessel_id FROM `<table0>` WHERE region = 'Mediterranean'
Which vessels have visited the 'Mediterranean' region?
<table0>[table_name_36] { <col0>[rank]:[INTEGER] <col1>[notes]:[VARCHAR] <col2>[time]:[VARCHAR] }
SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "fb" AND `<col2>` = "6:47.30"
What is the rank of the athletes that have Notes of fb, and a Time of 6:47.30?
<table0>[table_name_82] { <col0>[year__ceremony]:[VARCHAR] <col1>[original_title]:[VARCHAR] }
SELECT year__ceremony_ FROM `<table0>` WHERE `<col1>` = "naga bonar"
what year did naga bonar take place
<table0>[table_203_699] { <col0>[number]:[name] <col1>[text]:[parentage] <col2>[text]:[size] <col3>[text]:[flower] <col4>[colour]:[text] <col5>[flower]:[type] }
SELECT COUNT( "name" ) FROM `<table0>`
what is the total number of cultivars listed on the table ?
<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 Name, SUM( `<col5>` ) FROM `<table0>` GROUP BY Name ORDER BY Name DESC
Return a bar chart on what is the total revenue of each manufacturer?, could you sort by the bars from high to low?
<table0>[events] { <col0>[INT]:[event_country] <col1>[VARCHAR]:[event_type] <col2>[VARCHAR]:[event_year] <col3>[INT]:[INSERT] }
SELECT COUNT( * ) FROM `<table0>` WHERE event_country = 'Europe' AND event_type = 'Sustainable Fashion' AND event_year = 2020;
How many 'Sustainable Fashion' related events were held in 'Europe' in the year 2020?
<table0>[greatermanchestercrime] { <col0>[crimeid]:[text] <col1>[crimets]:[time] <col2>[location]:[text] <col3>[lsoa]:[text] <col4>[type]:[text] <col5>[outcome]:[text] }
SELECT `<col4>` FROM `<table0>` WHERE `<col3>` LIKE "%Salford%" GROUP BY `<col4>` ORDER BY COUNT( * ) DESC LIMIT 1
Which type of crime happen the most in Salford?
<table0>[ticket_sales] { <col0>[ticket_id]:[INT] <col1>[price]:[DECIMAL] <col2>[country]:[VARCHAR] <col3>[concert_date]:[DATE] }
SELECT country, SUM( `<col1>` ) as total_sales FROM `<table0>` WHERE EXTRACT( MONTH FROM `<col3>` ) BETWEEN 4 AND 6 GROUP BY `<col2>` ORDER BY total_sales DESC LIMIT 3;
Identify the top 3 countries with the highest concert ticket sales in Q2 of 2022, ordered by sales amount.
<table0>[table_name_43] { <col0>[withdrawn]:[INTEGER] <col1>[type]:[VARCHAR] }
SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "4-6-4t"
With a Type of 4-6-4t, what is the sum Withdrawn?
<table0>[Products] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Price]:[DECIMAL] <col3>[Manufacturer]:[INTEGER] } <table1>[Manufacturers] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Headquarter]:[VARCHAR] <col3>[255]:[Founder] <col4>[VARCHAR]:[255] <col5>[Revenue]:[REAL] }
SELECT T1.Name, T2.Revenue FROM `<table0>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T2.Revenue
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and revenue , and group by attribute founder, and could you show total number in ascending order?
<table0>[fan_demographics] { <col0>[fan_id]:[INT] <col1>[fan_age]:[INT] }
SELECT CASE WHEN `<col1>` < 13 THEN 'Under 13' WHEN `<col1>` <= 18 THEN '13-18' ELSE 'Over 65' END as age_group, COUNT( * ) as num_fans FROM `<table0>` GROUP BY age_group;
How many fans are under 13, 13-18, and over 65 in the fan_demographics table?
<table0>[table_name_26] { <col0>[competition]:[VARCHAR] <col1>[location]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "addis ababa"
Which competition was held at Addis Ababa?
<table0>[essays] { <col0>[projectid]:[text] <col1>[teacher_acctid]:[text] <col2>[title]:[text] <col3>[short_description]:[text] <col4>[need_statement]:[text] <col5>[essay]:[text] } <table1>[projects] { <col0>[projectid]:[text] <col1>[teacher_acctid]:[text] <col2>[schoolid]:[text] <col3>[school_ncesid]:[text] <col4>[sc...
SELECT SUM( `<col8>` ) + SUM( `<col9>` ) FROM `<table2>` WHERE `<col13>` = 'amazon'
What is the sum of the total donated amounts paid through Amazon?
<table0>[medical_emergencies] { <col0>[INT]:[incident_type] <col1>[VARCHAR]:[incident_location] <col2>[VARCHAR]:[100] <col3>[response_time]:[INT] <col4>[city]:[VARCHAR] <col5>[state]:[VARCHAR] }
SELECT COUNT( * ) FROM `<table0>` WHERE `<col5>` = 'FL';
What is the total number of medical emergencies in the state of Florida?
<table0>[table_name_97] { <col0>[nba_draft]:[VARCHAR] <col1>[hometown]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "washington, dc"
What is the NBA draft result of the player from Washington, DC?
<table0>[table_train_95] { <col0>[int]:[serum_potassium] <col1>[float]:[mini_mental_state_examination_mmse] <col2>[int]:[systolic_blood_pressure_sbp] <col3>[int]:[resting_heart_rate] <col4>[int]:[diastolic_blood_pressure_dbp] <col5>[int]:[NOUSE] }
SELECT * FROM `<table0>` WHERE mini_mental_state_examination_mmse < 27
mmse < 27
<table0>[table_62463] { <col0>[Player]:[text] <col1>[Country]:[text] <col2>[Year]:[won] <col3>[text]:[Total] <col4>[real]:[par] <col5>[text]:[Finish] }
SELECT "Finish" FROM `<table0>` WHERE "Country" = 'australia'
What is Australia s finish?
<table0>[RegulatoryFrameworks] { <col0>[FrameworkID]:[int] <col1>[AssetType]:[varchar] <col2>[RegulatoryStatus]:[varchar] }
SELECT AssetType, RegulatoryStatus, COUNT( * ) as Count FROM `<table0>` GROUP BY AssetType, RegulatoryStatus;
What is the regulatory status of digital assets by type?
<table0>[table_name_74] { <col0>[remarks]:[VARCHAR] <col1>[airline]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "dutch antilles express"
What were the remarks for Dutch Antilles Express?
<table0>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[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>[value...
SELECT STRFTIME( '%j', `<table16>`.outtime ) - STRFTIME( '%j', `<table16>`.intime ) FROM `<table16>` WHERE `<table16>`.hadm_id IN ( SELECT `<table11>`.hadm_id FROM `<table11>` WHERE `<table11>`.subject_id = 17944 ) AND NOT `<table16>`.outtime IS NULL ORDER BY `<table16>`.intime DESC LIMIT 1
what's patient 17944's length of stay in the last icu stay?
<table0>[t_kc22] { <col0>[MED_EXP_DET_ID]:[text] <col1>[OVERALL_CD_ORG]:[text] <col2>[OVERALL_CD_PERSON]:[text] <col3>[MED_CLINIC_ID]:[text] <col4>[MED_EXP_BILL_ID]:[text] <col5>[SOC_SRT_DIRE_CD]:[text] <col6>[SOC_SRT_DIRE_NM]:[text] <col7>[DIRE_TYPE]:[number] <col8>[CHA_ITEM_LEV]:[number] <col9>[MED_INV_ITEM_TYPE]:[te...
SELECT COUNT( * ) FROM `<table2>` WHERE `<col14>` = '7364699' AND `<col10>` BETWEEN '2016-01-27' AND '2016-12-25' AND `<col28>` = '儿童'
一六年一月二十七号到十二月二十五号医疗机构7364699就诊记录里有儿童医保的记录数量
<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>`.admityear < "2194" AND lab.flag = "abnormal"
provide the number of patients whose admission year is less than 2194 and lab test abnormal status is abnormal?
<table0>[table_2245] { <col0>[Rank]:[real] <col1>[Runs]:[real] <col2>[Player]:[text] <col3>[Matches]:[real] <col4>[Innings]:[real] <col5>[real]:[Average] }
SELECT MAX( "Innings" ) FROM `<table0>` WHERE "Average" = '36.48'
What is the innings when the average is 36.48?
<table0>[table_name_24] { <col0>[VARCHAR]:[name] }
SELECT COUNT( since ) FROM `<table0>` WHERE name = "belletti"
Name the total number of since for belletti
<table0>[table_name_37] { <col0>[carrier]:[VARCHAR] <col1>[package_version]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "5.0.0.742"
WHAT IS THE CARRIER WITH 5.0.0.742 VERSION?
<table0>[farmers] { <col0>[INT]:[name] <col1>[VARCHAR]:[age] <col2>[INT]:[location] <col3>[VARCHAR]:[INSERT] }
SELECT location, COUNT( * ) FROM `<table0>` GROUP BY location;
How many farmers are there in each location?
<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>[station_company] { <col0>[Station_ID]:[int] <col1>[Company_ID]:[int] <col2>[Rank_of_the_Year]:[int] } <table2>[com...
SELECT Main_Industry, SUM( `<col8>` ) FROM `<table2>` GROUP BY `<col4>` ORDER BY SUM( `<col8>` ) DESC
what are the main indstries and total market value for each industry?, and sort by the Y in descending.
<table0>[table_17675675_2] { <col0>[tries_for]:[VARCHAR] <col1>[lost]:[VARCHAR] }
SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "4"
With the given loss of 4, what was the number of tries?
<table0>[table_29390] { <col0>[Province]:[text] <col1>[Registered]:[voters] <col2>[real]:[People] <col3>[voted]:[real] <col4>[Valid]:[votes] <col5>[real]:[Invalid] <col6>[votes]:[real] <col7>[Yes]:[real] <col8>[Yes]:[text] <col9>[real]:[text] <col10>[Turnout]:[text] }
SELECT "Province" FROM `<table0>` WHERE "Turnout ( % )" = '54.09'
What province had a turnout of 54.09%?
<table0>[faculty] { <col0>[faculty_id]:[INT] <col1>[name]:[TEXT] <col2>[gender]:[TEXT] <col3>[department]:[TEXT] } <table1>[research_grants] { <col0>[grant_id]:[INT] <col1>[faculty_id]:[INT] <col2>[DECIMAL]:[date] }
SELECT SUM( rg.amount ) FROM `<table1>` rg INNER JOIN faculty f ON rg.faculty_id = f.faculty_id WHERE f.gender = 'female' AND rg.date >= DATE_SUB( CURRENT_DATE, INTERVAL 5 YEAR );
What is the total amount of research grants awarded to female faculty members in the past 5 years?
<table0>[table_40352] { <col0>[real]:[Goal] <col1>[real]:[Round] <col2>[text]:[Round] <col3>[text]:[Round] <col4>[text]:[Round] <col5>[text]:[Round] <col6>[text]:[Round] }
SELECT "Round 6+" FROM `<table0>` WHERE "From" < '1993' AND "Round 3" = 'double' AND "Round 5" = 'double'
What is the round 6+ that has a from prior to 1993, double for round 3, and a double for round 5?
<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, `<col0>` FROM `<table1>` ORDER BY `<col3>`
Draw a bar chart about the distribution of ACC_Regular_Season and Team_ID , and could you order from low to high by the X-axis please?
<table0>[table_25356] { <col0>[County]:[text] <col1>[Population]:[real] <col2>[Unemployment]:[Rate] <col3>[text]:[Market] <col4>[Income]:[Capita] <col5>[text]:[Poverty] <col6>[Rate]:[text] <col7>[Status]:[text] }
SELECT "Market `<col4>` Per Capita" FROM `<table0>` WHERE "Poverty Rate" = '12.9%'
If the poverty rate is 12.9%, what is the market income per capita?
<table0>[all_documents] { <col0>[document_id]:[number] <col1>[date_stored]:[time] <col2>[document_type_code]:[text] <col3>[document_name]:[text] <col4>[document_description]:[text] <col5>[other_details]:[text] } <table1>[ref_calendar] { <col0>[calendar_date]:[time] <col1>[day_number]:[number] } <table2>[employees] { ...
SELECT DISTINCT `<col1>` FROM `<table5>`
Show the ids of all employees who have authorized destruction.
<table0>[table_22198] { <col0>[designation]:[text] <col1>[Constellation]:[text] <col2>[Distance]:[text] <col3>[Spectral]:[type] <col4>[text]:[Signal] <col5>[power]:[real] <col6>[Date]:[sent] <col7>[text]:[Arrival] <col8>[date]:[text] }
SELECT "Constellation" FROM `<table0>` WHERE "Distance ( ly )" = '55.7'
If the distance is 55.7, what is the name of the constellation?
<table0>[Transactions] { <col0>[INT]:[customer_id] <col1>[INT]:[region] <col2>[VARCHAR]:[INSERT] }
SELECT customer_id FROM `<table0>` WHERE region IN ( 'Europe', 'Americas' ) GROUP BY customer_id HAVING COUNT( DISTINCT region ) = 2;
Which customers have made transactions in both the 'Europe' and 'Americas' regions?
<table0>[Tools] { <col0>[INT]:[name] <col1>[VARCHAR]:[255] <col2>[category]:[VARCHAR] <col3>[255]:[price] <col4>[DECIMAL]:[INSERT] }
SELECT name FROM `<table0>` WHERE `<col2>` = 'Accessibility' AND price < 50;
List the names of all tools in the 'Accessibility' category with a price less than 50 dollars?
<table0>[table_name_82] { <col0>[nationality]:[VARCHAR] <col1>[position]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "small forward"
What is the nationality of the person who played small forward?
<table0>[table_name_78] { <col0>[school]:[VARCHAR] <col1>[location]:[VARCHAR] <col2>[previous_conference]:[VARCHAR] <col3>[year_joined]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col2>` = "none ( new `<col0>` )" AND `<col3>` > 1960 AND `<col1>` = "versailles"
Which School has a Previous Conference of none (new school), and a Year Joined larger than 1960, and a Location of versailles?
<table0>[table_2001348_1] { <col0>[revising_convention_s]:[VARCHAR] <col1>[field]:[VARCHAR] }
SELECT revising_convention_s_ FROM `<table0>` WHERE `<col1>` = "trimmers and stokers"
What was the revising convention of the field 'trimmers and stokers'?
<table0>[instruments] { <col0>[songid]:[number] <col1>[bandmateid]:[number] <col2>[instrument]:[text] } <table1>[vocals] { <col0>[songid]:[number] <col1>[bandmate]:[number] <col2>[type]:[text] } <table2>[tracklists] { <col0>[albumid]:[number] <col1>[position]:[number] <col2>[songid]:[number] } <table3>[albums] { <co...
SELECT COUNT( DISTINCT title ) FROM `<table1>` AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE `<col2>` = "lead"
How many songs have vocals of type lead?
<table0>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } <table1>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table2>[state] { <col0>[state_code]:[text] <col1>[state_name]:[text] <col2>[country_name]:[text] } <table3>[flight] { <col0>[ai...
SELECT DISTINCT fare.fare_id FROM `<table5>` AS AIRPORT_SERVICE_0, `<table5>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis, flight, flight_fare WHERE ( CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.c...
what is the round trip cost of a FIRST class ticket from BOSTON to SAN FRANCISCO
<table0>[TropicalRainforest] { <col0>[INT]:[species] <col1>[VARCHAR]:[255] <col2>[diameter]:[FLOAT] <col3>[height]:[FLOAT] <col4>[volume]:[FLOAT] }
SELECT SUM( volume ) FROM TropicalRainforest;
What is the total volume of trees in the 'TropicalRainforest' table?
<table0>[table_name_79] { <col0>[attendance]:[VARCHAR] <col1>[opponent]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "morton"
How many people attended in the game against morton?
<table0>[table_70257] { <col0>[Institution]:[text] <col1>[Main]:[Campus] <col2>[Location]:[text] <col3>[Founded]:[real] <col4>[Mascot]:[text] <col5>[School]:[Colors] }
SELECT MAX( "Founded" ) FROM `<table0>` WHERE "Institution" = 'cloud county community college'
What is the largest Founded with an Institution of cloud county community college?
<table0>[table_4323] { <col0>[Date]:[text] <col1>[Location]:[text] <col2>[Surface]:[text] <col3>[Opponent]:[final] <col4>[text]:[Score] <col5>[final]:[text] }
SELECT "Score in the final" FROM `<table0>` WHERE "Location" = 'moscow, ussr' AND "Date" = '15 february 1971'
Name the score for moscow, ussr 15 february 1971
<table0>[table_name_81] { <col0>[legs]:[VARCHAR] <col1>[venue]:[VARCHAR] <col2>[runner_up__average_in_final]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "rwe-sporthalle, mülheim" AND runner_up__average_in_final_ = "simon whitlock ( 99.59 )"
What is the legs when the venue is rwe-sporthalle, mülheim and the runner-up (average in final) is simon whitlock (99.59)?
<table0>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table1>[days] { <col0>[days_code]:[varchar] <col1>[day_name]:[varchar] } <table2>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table3>[food_service] { <col0>[meal_code]:[text]...
SELECT DISTINCT flight.flight_id FROM `<table18>` AS AIRPORT_SERVICE_0, `<table18>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ( ( ( flight.flight_number = 137338 OR flight.flight_number = 279 ) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.to_airp...
which is the flight number for the US flight from PHILADELPHIA to BOSTON is it 279 or is it 137338
<table0>[table_name_68] { <col0>[attendance]:[INTEGER] <col1>[week]:[VARCHAR] }
SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col1>` = 9
What is the highest attendance of the game on week 9?
<table0>[founder] { <col0>[INT]:[name] <col1>[TEXT]:[gender] <col2>[TEXT]:[funding] <col3>[TEXT]:[identity] <col4>[TEXT]:[INSERT] }
SELECT COUNT( * ) FROM `<table0>` WHERE identity = 'LGBTQ+' AND funding IN ( 'Series A', 'Series B', 'Series C', 'Series D', 'Series E' );
Find the total number of founders who identify as LGBTQ+ and have received Series A funding or higher.
<table0>[table_204_30] { <col0>[number]:[year] <col1>[built]:[text] <col2>[works]:[number] <col3>[number]:[wheel] <col4>[arr]:[text] <col5>[gauge]:[text] <col6>[original]:[owner] <col7>[text]:[name] <col8>[text]:[current] <col9>[location]:[text] <col10>[notes]:[text] }
SELECT "name" FROM `<table0>` WHERE "current location" = 'bressingham steam museum' ORDER BY "year built" DESC LIMIT 1
what is the name of the last locomotive to be located at the bressingham steam museum ?
<table0>[furniture] { <col0>[Furniture_ID]:[int] <col1>[text]:[Num_of_Component] <col2>[int]:[Market_Rate] } <table1>[furniture_manufacte] { <col0>[Manufacturer_ID]:[int] <col1>[Furniture_ID]:[int] <col2>[Price_in_Dollar]:[real] } <table2>[manufacturer] { <col0>[Manufacturer_ID]:[int] <col1>[Open_Year]:[real] <col2>[...
SELECT Name, Num_of_Component FROM `<table0>` WHERE Num_of_Component > 10
Find the component amounts and names of all furnitures that have more than 10 components. Show me the proportion of component amounts using a pie chart.
<table0>[table_name_7] { <col0>[driver]:[VARCHAR] <col1>[chassis]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "ts16"
Which driver uses the ts16 chassis?
<table0>[table_name_61] { <col0>[rank]:[INTEGER] <col1>[athlete]:[VARCHAR] <col2>[time]:[VARCHAR] }
SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "solomon bayoh" AND `<col2>` < 22.16
What is the sum rank of Solomon Bayoh when his time was smaller than 22.16?
<table0>[table_name_26] { <col0>[venue]:[VARCHAR] <col1>[opposing_teams]:[VARCHAR] <col2>[status]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "argentina" AND `<col2>` = "test match"
What is the venue where Argentina was the opposing team in a test match?
<table0>[public] { <col0>[demographics]:[SERIAL] <col1>[PRIMARY]:[KEY] <col2>[age]:[INT] <col3>[gender]:[TEXT] <col4>[race]:[TEXT] <col5>[income]:[INT] }
SELECT age, income, COUNT( * ) FILTER ( WHERE gender = 'Male' ) AS male_count FROM public.demographics GROUP BY age, income;
What is the distribution of age and income level for males, grouped by age?
<table0>[table_34269] { <col0>[Week]:[real] <col1>[Date]:[text] <col2>[Opponent]:[text] <col3>[Result]:[text] <col4>[Venue]:[text] <col5>[Attendance]:[text] }
SELECT "Date" FROM `<table0>` WHERE "Week" = '9'
When has a Week of 9?
<table0>[table_298883_5] { <col0>[reverse]:[VARCHAR] <col1>[value]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "₩100"
What is on the reverse side of the 100 coin?
<table0>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table1>[PostFeedback] { <col0>[number]:[PostId] <c...
WITH USER_BY_TAG AS ( SELECT ROW_NUMBER( ) OVER ( ORDER BY COUNT( * ) DESC ) AS Rank, u.Id AS "user_link", COUNT( * ) AS UpVotes FROM `<table18>` AS t INNER JOIN Post`<table18>` AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOI...
TOP Java users in Austin.
<table0>[table_name_2] { <col0>[player]:[VARCHAR] <col1>[position]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "fb"
Who is the player with a FB position?
<table0>[Artifacts] { <col0>[ArtifactID]:[INT] <col1>[SiteID]:[INT] <col2>[ArtifactType]:[TEXT] <col3>[Date]:[DATE] }
SELECT ArtifactID, ArtifactType, `<col3>` FROM `<table0>` WHERE `<col1>` = ( SELECT `<col1>` FROM ExcavationSites WHERE SiteName = 'Gournay-sur-Aronde' );
Which artifacts were found at 'Gournay-sur-Aronde'? Provide their IDs, types, and dates.
<table0>[table_27573848_18] { <col0>[general_classification]:[VARCHAR] <col1>[points_classification]:[VARCHAR] <col2>[stage]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Marco Marcato" AND `<col2>` < 5.0
If the stage is smaller than 5.0, and the points classification is by Marco Marcato, who is the General classification by?
<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>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number...
SELECT `<table9>`.charttime FROM `<table9>` WHERE `<table9>`.icd9_code = ( SELECT `<table16>`.icd9_code FROM `<table16>` WHERE `<table16>`.short_title = 'cocaine abuse-continuous' ) AND `<table9>`.hadm_id IN ( SELECT `<table12>`.hadm_id FROM `<table12>` WHERE `<table12>`.subject_id = 81840 ) AND DATETIME( `<table9>`.ch...
what is patient 81840 last diagnosis time of cocaine abuse-continuous since 4 years ago?
<table0>[COURSE] { <col0>[CRS_CODE]:[varchar] <col1>[DEPT_CODE]:[varchar] <col2>[CRS_DESCRIPTION]:[varchar] <col3>[CRS_CREDIT]:[float] } <table1>[CLASS] { <col0>[CLASS_CODE]:[varchar] <col1>[CRS_CODE]:[varchar] <col2>[CLASS_SECTION]:[varchar] <col3>[CLASS_TIME]:[varchar] <col4>[CLASS_ROOM]:[varchar] <col5>[PROF_NUM]:[...
SELECT STU_FNAME, COUNT( `<col2>` ) FROM `<table6>` WHERE `<col7>` < ( SELECT AVG( `<col7>` ) FROM `<table6>` ) GROUP BY `<col2>` ORDER BY COUNT( `<col2>` ) DESC
How many students that has a GPA lower than average? Show me a bar chart grouping by student's first name, order by the y axis in descending.
<table0>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>...
SELECT a.Id AS "post_link", a.Score, a.OwnerUserId AS "user_link" FROM `<table8>` AS a, `<table8>` AS q WHERE a.PostTypeId = 2 AND q.PostTypeId = 1 AND a.Score = 0 AND a.ParentId = q.Id AND q.AcceptedAnswerId = a.Id
Accepted answers with a zero score.
<table0>[table_32444] { <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 "Date" FROM `<table0>` WHERE "Home `<col2>` score" = '11.11 ( 77 )'
What is the date of the game when the home team score is 11.11 (77)?
<table0>[table_203_30] { <col0>[number]:[place] <col1>[number]:[team] <col2>[text]:[played] <col3>[number]:[won] <col4>[number]:[draw] <col5>[number]:[lost] <col6>[number]:[goals] <col7>[nscored]:[number] <col8>[goals]:[nconceded] <col9>[number]:[number] <col10>[points]:[number] }
SELECT "team" FROM `<table0>` WHERE "lost" = ( SELECT MIN( "lost" ) FROM `<table0>` )
which team had the least amount on losses ?
<table0>[table_name_19] { <col0>[opponent]:[VARCHAR] <col1>[date]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "april 28"
Which Opponent is on april 28?
<table0>[departments] { <col0>[DEPARTMENT_ID]:[decimal] <col1>[DEPARTMENT_NAME]:[varchar] <col2>[MANAGER_ID]:[decimal] <col3>[LOCATION_ID]:[decimal] } <table1>[jobs] { <col0>[JOB_ID]:[varchar] <col1>[JOB_TITLE]:[varchar] <col2>[MIN_SALARY]:[decimal] <col3>[MAX_SALARY]:[decimal] } <table2>[employees] { <col0>[EMPLOYEE...
SELECT HIRE_DATE, AVG( `<col0>` ) FROM `<table2>` WHERE NOT `<col0>` IN ( SELECT `<col0>` FROM `<table3>` )
For those employees who did not have any job in the past, return a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by weekday.
<table0>[table_name_80] { <col0>[finish]:[INTEGER] <col1>[team]:[VARCHAR] <col2>[start]:[VARCHAR] }
SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "penske" AND `<col2>` < 9
When the team is penske and they start under 9, what's the average finish time?
<table0>[table_name_95] { <col0>[attendance]:[INTEGER] <col1>[opponent]:[VARCHAR] <col2>[week]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "green bay packers" AND `<col2>` > 10
Which Attendance has an Opponent of green bay packers, and a Week larger than 10?
<table0>[table_63006] { <col0>[Rank]:[real] <col1>[Heat]:[real] <col2>[Athlete]:[text] <col3>[Country]:[text] <col4>[Time]:[real] }
SELECT MAX( "Rank" ) FROM `<table0>` WHERE "Country" = 'uzbekistan' AND "Time" > '11.44'
What is the highest rank in Uzbekistan with a time larger than 11.44?
<table0>[table_name_50] { <col0>[team]:[VARCHAR] <col1>[position_in_table]:[VARCHAR] <col2>[date_of_appointment]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "24th" AND `<col2>` = "15 september 2008"
what is the team with the position in table of 24th and the date of appointment 15 september 2008?
<table0>[gaming_players] { <col0>[player_id]:[INT] <col1>[name]:[VARCHAR] <col2>[join_date]:[DATE] }
SELECT * FROM `<table0>` WHERE MONTH( `<col2>` ) = ( SELECT MONTH( MAX( `<col2>` ) ) FROM `<table0>` );
Show players who joined in the same month as the player with the latest join date in 'gaming_players' table
<table0>[Volunteers] { <col0>[VolunteerID]:[int] <col1>[VolunteerName]:[varchar] <col2>[100]:[Country] <col3>[varchar]:[SignupDate] <col4>[date]:[INSERT] }
SELECT COUNT( * ) FROM `<table0>` WHERE Country = 'Brazil' AND YEAR( SignupDate ) = 2021;
What is the total number of volunteers who signed up in 'Brazil' in the year 2021?
<table0>[table_242785_3] { <col0>[notes]:[VARCHAR] <col1>[date_founded__founder]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "57 BC Caesar"
What are the notes during 57 bc caesar?
<table0>[table_name_79] { <col0>[sunday]:[VARCHAR] <col1>[friday]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "emma willis jamie east"
On the series in which Emma Willis Jamie East presented on Friday, who was the presenter on Sunday?
<table0>[table_name_42] { <col0>[zone]:[VARCHAR] <col1>[opponent]:[VARCHAR] <col2>[round]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col2>` = "semifinal" AND against = "israel" AND `<col1>` = "anna smashnova"
What zone was the Semifinal game played against Israel with Anna Smashnova as the opponent?
<table0>[Research_Papers] { <col0>[title]:[TEXT] <col1>[year]:[INT] <col2>[domain]:[TEXT] <col3>[metric]:[TEXT] }
SELECT DISTINCT `<col3>` FROM `<table0>` WHERE `<col2>` = 'Safety' AND `<col1>` = 2020;
What AI safety metrics were used in research papers published in 2020?