schema
stringlengths
20
14.6k
query
stringlengths
17
2.58k
question
stringlengths
8
1.06k
<table0>[table_27932399_1] { <col0>[release_date]:[VARCHAR] <col1>[release_title]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "New Worlds For Old"
What is the release date of "New Worlds for Old"?
<table0>[table_train_51] { <col0>[int]:[active_infection] <col1>[bool]:[procalcitonin] <col2>[int]:[oliguria] <col3>[bool]:[receiving_vasopressor] <col4>[bool]:[metabolic_acidosis] <col5>[bool]:[colonized_with_a_multi_drug_resistant_organism] <col6>[bool]:[hypoperfusion] <col7>[bool]:[central_venous_oxygen_saturation_s...
SELECT * FROM `<table0>` WHERE procalcitonin >= 3
procalcitonin level >= 3 ng / ml
<table0>[sales] { <col0>[INT]:[product_id] <col1>[INT]:[quantity] <col2>[INT]:[price] } <table1>[products] { <col0>[INT]:[name] <col1>[VARCHAR]:[255] <col2>[package_recyclable]:[BOOLEAN] <col3>[co2_emissions]:[INT] }
SELECT p.id, SUM( s.quantity * s.price ) as revenue, SUM( p.co2_emissions ) as `<col3>` FROM `<table1>` p INNER JOIN sales s ON p.id = s.product_id WHERE p.package_recyclable = TRUE GROUP BY p.id;
Calculate the revenue and CO2 emissions of products with a recyclable package
<table0>[food_service] { <col0>[meal_code]:[text] <col1>[meal_number]:[int] <col2>[compartment]:[text] <col3>[meal_description]:[varchar] } <table1>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table2>[days] { <col0>[days_code]:[varchar] <col1>[day_name]:[varchar] } <tab...
SELECT DISTINCT `<table13>`_code FROM `<table13>`
list airports
<table0>[station] { <col0>[VARCHAR]:[local_authority] } <table1>[weekly_weather] { <col0>[station_id]:[VARCHAR] <col1>[precipitation]:[INTEGER] }
SELECT t2.id, t2.local_authority FROM `<table1>` AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING MAX( t1.precipitation ) > 50
Find the id and local authority of the station whose maximum precipitation is higher than 50.
<table0>[threat_intelligence] { <col0>[ti_id]:[INT] <col1>[ti_report]:[VARCHAR] <col2>[ti_region]:[VARCHAR] <col3>[ti_date]:[DATE] }
SELECT COUNT( * ) FROM `<table0>` WHERE `<col2>` = 'Africa';
What is the total number of threat intelligence reports generated for the African continent?
<table0>[CARS_DATA] { <col0>[VARCHAR]:[Weight] } <table1>[CARS_DATA] { <col0>[Weight]:[INTEGER] } <table2>[CAR_NAMES] { <col0>[model]:[VARCHAR] <col1>[MakeId]:[VARCHAR] }
SELECT T1.model FROM `<table1>` AS T1 JOIN `<table0>` AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < ( SELECT AVG( `<col1>` ) FROM `<table0>` )
Find the model of the car whose weight is below the average weight.
<table0>[table_name_12] { <col0>[driver]:[VARCHAR] <col1>[grid]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 19
Which driver drove in grid 19?
<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 `<table4>`.marital_status, `<table4>`.dob FROM `<table4>` WHERE `<table4>`.subject_id = "2560"
what is marital status and date of birth of subject id 2560?
<table0>[table_1342331_5] { <col0>[district]:[VARCHAR] <col1>[incumbent]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "William J. Driver"
what's the district with incumbent being william j. driver
<table0>[recycling_rates] { <col0>[location]:[VARCHAR] <col1>[rate]:[DECIMAL] }
DELETE FROM `<table0>` WHERE `<col0>` = 'Paris';
Delete records in recycling_rates table where location is 'Paris'
<table0>[Ref_Budget_Codes] { <col0>[Budget_Type_Code]:[CHAR] <col1>[Budget_Type_Description]:[VARCHAR] } <table1>[Statements] { <col0>[Statement_ID]:[INTEGER] <col1>[Statement_Details]:[VARCHAR] } <table2>[Projects] { <col0>[Project_ID]:[INTEGER] <col1>[Project_Details]:[VARCHAR] } <table3>[Documents_with_Expenses] ...
SELECT Document_Date, COUNT( Document_Date ) FROM `<table4>` AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Description ORDER BY Document_Date
How many documents are created in each day? Bin the document date by year interval and group by document type description with a group line chart, and I want to show in ascending by the X-axis.
<table0>[outputevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] <col6>[value]:[number] } <table1>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay...
SELECT t1.startdate FROM ( SELECT admissions.subject_id, `<table4>`.startdate FROM `<table4>` JOIN admissions ON `<table4>`.hadm_id = admissions.hadm_id WHERE `<table4>`.drug = 'mycophenolate mofetil' AND admissions.subject_id = 24547 AND DATETIME( `<table4>`.startdate, 'start of year' ) = DATETIME( CURRENT_TIME( ), 's...
when was patient 24547 prescribed a mycophenolate mofetil and cetylpyridinium chl (cepacol) at the same time for the first time in 08/last year?
<table0>[table_name_49] { <col0>[opponent]:[VARCHAR] <col1>[attendance]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "53,899"
Tell me the opponent for attendance of 53,899
<table0>[location] { <col0>[restaurant_id]:[int] <col1>[house_number]:[int] <col2>[street_name]:[varchar] <col3>[city_name]:[varchar] } <table1>[geographic] { <col0>[city_name]:[varchar] <col1>[county]:[varchar] <col2>[region]:[varchar] } <table2>[restaurant] { <col0>[int]:[name] <col1>[varchar]:[food_type] <col2>[va...
SELECT location.house_number, restaurant.name FROM geographic, location, restaurant WHERE geographic.region = 'yosemite and mono lake area' AND restaurant.city_name = geographic.city_name AND restaurant.food_type = 'french' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5
what are some good restaurants in the yosemite and mono lake area for french food ?
<table0>[table_1912276_2] { <col0>[500]:[VARCHAR] <col1>[name]:[VARCHAR] }
SELECT __500m FROM `<table0>` WHERE `<col1>` = "Theo Bos"
What is the -500 number for Theo Bos?
<table0>[table_name_36] { <col0>[bodyweight]:[INTEGER] <col1>[snatch]:[VARCHAR] <col2>[clean]:[VARCHAR] <col3>[jerk]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE clean_ & _jerk = "145.0" AND `<col1>` < 122.5
What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch smaller than 122.5?
<table0>[table_61443] { <col0>[real]:[Power] <col1>[Plant]:[text] <col2>[State]:[text] <col3>[Total]:[Capacity] <col4>[real]:[Completion] <col5>[Schedule]:[text] }
SELECT "Completion Schedule" FROM `<table0>` WHERE "State" = 'himachal pradesh' AND "Total Capacity ( MW )" = '800'
What is the completion schedule for himachal pradesh state with a total capacity (MW) of 800?
<table0>[MilitaryPatents] { <col0>[INT]:[Country] <col1>[VARCHAR]:[Patent] <col2>[VARCHAR]:[Year] <col3>[INT]:[INSERT] }
SELECT COUNT( * ), Country FROM `<table0>` WHERE Year = 2021 GROUP BY Country;
How many military technology patents were filed in each country in 2021?
<table0>[table_42715] { <col0>[State]:[text] <col1>[Type]:[text] <col2>[text]:[Title] <col3>[text]:[Royal] <col4>[house]:[text] }
SELECT "From" FROM `<table0>` WHERE "State" = 'song'
What is the state song from?
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:...
SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` WHERE `<table2>`.admission_location = "PHYS REFERRAL/NORMAL DELI" AND `<table2>`.admityear < "2176"
count the number of phys referral/normal deli patients who were admitted before 2176.
<table0>[table_21058823_1] { <col0>[result]:[VARCHAR] <col1>[record]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "3-2-1"
What did they do in the game when their record was 3-2-1?
<table0>[table_203_313] { <col0>[number]:[name] <col1>[text]:[pennant] <col2>[text]:[builder] <col3>[text]:[launched] <col4>[text]:[original] <col5>[name]:[text] <col6>[fate]:[text] }
SELECT "launched" FROM `<table0>` ORDER BY "launched" LIMIT 1
what date was the first ship launched ?
<table0>[MusicEvents] { <col0>[INT]:[EventName] <col1>[VARCHAR]:[City] <col2>[VARCHAR]:[Genre] <col3>[VARCHAR]:[Attendance] }
SELECT Genre, City, AVG( Attendance ) as AvgAttendance FROM `<table0>` GROUP BY Genre, City;
What is the average attendance at music events, broken down by genre and city?
<table0>[Performers] { <col0>[Performer_ID]:[INTEGER] <col1>[Address_ID]:[INTEGER] <col2>[Customer_Name]:[VARCHAR] <col3>[255]:[Customer_Phone] <col4>[VARCHAR]:[255] <col5>[Customer_Email_Address]:[VARCHAR] <col6>[255]:[Other_Details] <col7>[VARCHAR]:[255] } <table1>[Ref_Service_Types] { <col0>[Service_Type_Code]:[CHA...
SELECT City_Town, COUNT( * ) FROM `<table7>` AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town ORDER BY City_Town
Show all cities along with the number of drama workshop groups in each city Visualize by bar chart, and list names in ascending order.
<table0>[COURSE] { <col0>[CRS_CODE]:[varchar] <col1>[DEPT_CODE]:[varchar] <col2>[CRS_DESCRIPTION]:[varchar] <col3>[CRS_CREDIT]:[float] } <table1>[DEPARTMENT] { <col0>[DEPT_CODE]:[varchar] <col1>[DEPT_NAME]:[varchar] <col2>[SCHOOL_CODE]:[varchar] <col3>[EMP_NUM]:[int] <col4>[DEPT_ADDRESS]:[varchar] <col5>[DEPT_EXTENSIO...
SELECT DEPT_CODE, SUM( `<col5>` ) FROM `<table5>` GROUP BY `<col9>` ORDER BY `<col9>` DESC
How many hours do the students spend studying in each department Plot them as bar chart, and display from high to low by the X please.
<table0>[table_name_89] { <col0>[circumstances]:[VARCHAR] <col1>[location]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "road to jalalabad"
What was the circumstance that happened on the road to Jalalabad?
<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, T1.Code FROM `<table0>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name
For those records from the products and each product's manufacturer, show me about the distribution of name and code , and group by attribute name in a bar chart.
<table0>[field] { <col0>[INT]:[name] <col1>[VARCHAR]:[255] } <table1>[satellite_image] { <col0>[INT]:[field_id] <col1>[INT]:[brightness] <col2>[INT]:[contrast] <col3>[INT]:[ndvi] <col4>[FLOAT]:[timestamp] <col5>[TIMESTAMP]:[INSERT] <col6>[field]:[VALUES] <col7>[Field]:[Field] }
SELECT f.name, si.timestamp FROM `<table0>` f INNER JOIN `<table1>` si ON f.id = si.`<table0>`_id WHERE si.ndvi < ( SELECT AVG( ndvi ) - 2 * STDDEV( ndvi ) FROM `<table1>` WHERE timestamp BETWEEN DATE_SUB( NOW( ), INTERVAL 1 MONTH ) AND NOW( ) ) AND si.timestamp BETWEEN DATE_SUB( NOW( ), INTERVAL 1 MONTH ) AND NOW( );
List all the satellite images with potential water stress issues for the past month, indicating the field name and timestamp of the image.
<table0>[mental_health_parity_trend] { <col0>[state]:[VARCHAR] <col1>[year]:[INT] <col2>[violations]:[INT] }
SELECT m.state, m.year, m.violations, LAG( m.violations ) OVER ( PARTITION BY m.state ORDER BY m.year ) as prev_year_violations FROM `<table0>` m;
How many mental health parity violations have occurred in each state, and what is the trend over the past three years?
<table0>[faculty] { <col0>[INT]:[name] <col1>[VARCHAR]:[255] <col2>[department_id]:[INT] } <table1>[publication] { <col0>[INT]:[faculty_id] <col1>[INT]:[type] <col2>[VARCHAR]:[255] <col3>[INSERT]:[faculty] <col4>[name]:[department_id] <col5>[VALUES]:[John] <col6>[Doe]:[Jane] <col7>[Smith]:[Bob] <col8>[Johnson]:[INSERT...
SELECT department.name, AVG( COUNT( publication.id ) ) as avg_num_publications FROM department LEFT JOIN faculty ON department.id = faculty.department_id LEFT JOIN publication ON faculty.id = publication.faculty_id GROUP BY department.name;
What is the average number of publications by department?
<table0>[table_204_422] { <col0>[number]:[rank] <col1>[number]:[lane] <col2>[number]:[name] <col3>[text]:[nationality] <col4>[text]:[time] <col5>[text]:[notes] }
SELECT COUNT( "name" ) FROM `<table0>` WHERE "nationality" = 'china'
how many swimmers from china participated in the race ?
<table0>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table1>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table2>[transfers] { <col0>[row_id]:[number] <col1>[subject_id]:[numbe...
SELECT t3.drug FROM ( SELECT t2.drug, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT admissions.subject_id, `<table11>`.startdate FROM `<table11>` JOIN admissions ON `<table11>`.hadm_id = admissions.hadm_id WHERE `<table11>`.drug = 'mucinex' AND STRFTIME( '%y', `<table11>`.startdate ) <= '2104' ) A...
what were the top four frequently prescribed drugs that patients were prescribed during the same month after they had been prescribed with mucinex until 2104?
<table0>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table1>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3...
SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` WHERE `<table4>`.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND `<table4>`.admityear < "2165"
find out the number of patients with admission location as transfer from hosp/extram who were admitted before the year 2165.
<table0>[Attributes] { <col0>[attribute_id]:[integer] <col1>[attribute_name]:[text] } <table1>[Categories] { <col0>[category_id]:[integer] <col1>[category_name]:[text] } <table2>[Compliments] { <col0>[compliment_id]:[integer] <col1>[compliment_type]:[text] } <table3>[Days] { <col0>[day_id]:[integer] <col1>[day_of_we...
SELECT COUNT( `<col0>` ) FROM `<table13>` WHERE `<col5>` LIKE 'High'
How many businesses are with high review count?
<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_Neutral, `<col1>` FROM `<table0>` ORDER BY `<col11>` DESC
Create a bar chart showing school_id across all neutral, and rank All_Neutral in descending order.
<table0>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table1>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstayid]:[number] <col3>[ge...
SELECT COUNT( DISTINCT t2.uniquepid ) FROM ( SELECT t1.uniquepid, t1.`<table9>`time FROM ( SELECT `<table1>`.uniquepid, `<table9>`.`<table9>`time FROM `<table9>` JOIN `<table1>` ON `<table9>`.`<table1>`unitstayid = `<table1>`.`<table1>`unitstayid WHERE `<table9>`.`<table9>`name = 'nutritional deficiency' ) AS t1 GROUP ...
how many patients died in the same month after being diagnosed in 2105 with nutritional deficiency?
<table0>[table_204_78] { <col0>[number]:[number] <col1>[train]:[text] <col2>[origin]:[text] <col3>[destination]:[text] <col4>[train]:[name] }
SELECT "train name" FROM `<table0>` WHERE id = ( SELECT id FROM `<table0>` WHERE "train name" = 'bangalore express' ) - 1
what is the name of the train listed before bangalore express ?
<table0>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table1>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergyti...
SELECT COUNT( * ) FROM `<table8>` WHERE `<table8>`.`<table7>`unitstayid IN ( SELECT `<table7>`.`<table7>`unitstayid FROM `<table7>` WHERE `<table7>`.`<table7>`healthsystemstayid IN ( SELECT `<table7>`.`<table7>`healthsystemstayid FROM `<table7>` WHERE `<table7>`.uniquepid = '027-165214' ) ) AND `<table8>`.`<table8>`nam...
calculate the number of times that patient 027-165214 has received a serum osmolality lab test in this month.
<table0>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } <table1>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>...
SELECT 1 * ( STRFTIME( '%j', CURRENT_TIME( ) ) - STRFTIME( '%j', `<table6>`.`<table6>`resulttime ) ) FROM `<table6>` WHERE `<table6>`.`<table3>`unitstayid IN ( SELECT `<table3>`.`<table3>`unitstayid FROM `<table3>` WHERE `<table3>`.`<table3>`healthsystemstayid IN ( SELECT `<table3>`.`<table3>`healthsystemstayid FROM `<...
how many days have passed since the last time patient 003-10080 on their current hospital encounter received a wbc x 1000 lab test?
<table0>[conservation_status] { <col0>[INT]:[species_name] <col1>[VARCHAR]:[status] <col2>[VARCHAR]:[INSERT] }
SELECT species_name, status FROM `<table0>` WHERE status = 'Critically Endangered';
List all marine species and their conservation statuses that have a conservation status of 'Critically Endangered'.
<table0>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table1>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[t...
SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN prescriptions ON `<table3>`.hadm_id = prescriptions.hadm_id WHERE `<table3>`.dob_year < "2078" AND prescriptions.route = "INHALATION"
give me the number of patients whose year of birth is less than 2078 and drug route is inhalation?
<table0>[Demog] { <col0>[GEOID]:[integer] <col1>[INHABITANTS_K]:[real] <col2>[INCOME_K]:[real] <col3>[A_VAR1]:[real] <col4>[A_VAR2]:[real] <col5>[A_VAR3]:[real] <col6>[A_VAR4]:[real] <col7>[A_VAR5]:[real] <col8>[A_VAR6]:[real] <col9>[A_VAR7]:[real] <col10>[A_VAR8]:[real] <col11>[A_VAR9]:[real] <col12>[A_VAR10]:[real] <...
SELECT T1.EDUCATIONNUM, T2.RESPONSE FROM `<table2>` AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.age >= 20 AND T1.age <= 30 ORDER BY T3.INHABITANTS_K DESC LIMIT 1
List the educationnum and response of customers within the age of 20 to 30 that has the highest number of inhabitants among the group.
<table0>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table1>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } <table2>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table3>[city...
SELECT DISTINCT aircraft.aircraft_code FROM aircraft, equipment_sequence, flight WHERE equipment_sequence.aircraft_code = aircraft.aircraft_code AND flight.aircraft_code_sequence = equipment_sequence.aircraft_code_sequence AND flight.airline_code = 'TW'
what planes are used by TW
<table0>[job_history] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[START_DATE]:[date] <col2>[END_DATE]:[date] <col3>[JOB_ID]:[varchar] <col4>[DEPARTMENT_ID]:[decimal] } <table1>[departments] { <col0>[DEPARTMENT_ID]:[decimal] <col1>[DEPARTMENT_NAME]:[varchar] <col2>[MANAGER_ID]:[decimal] <col3>[LOCATION_ID]:[decimal] } <tab...
SELECT SALARY, `<col9>` FROM `<table3>` WHERE `<col1>` LIKE '%D%' OR `<col1>` LIKE '%S%'
For all employees who have the letters D or S in their first name, a scatter chart shows the correlation between salary and manager_id .
<table0>[table_name_44] { <col0>[year]:[INTEGER] <col1>[award_description_s]:[VARCHAR] }
SELECT AVG( `<col0>` ) FROM `<table0>` WHERE award_description_s_ = "platinum"
What is the average year with an award of platinum?
<table0>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table1>[aircraft] { <col0>[aircraft_code]:[varchar] <col1>[aircraft_description]:[varchar] <col2>[manufacturer]:[varchar] <col3>[basic_type]:[varchar] <col4>[engines]:[int] <col5>[propulsion]:[varchar] <col6>[wide_body]:[varchar] <col7>[...
SELECT DISTINCT flight.flight_id FROM `<table23>` AS AIRPORT_SERVICE_0, `<table23>` 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 = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND ...
show me the flights from BALTIMORE to DALLAS
<table0>[table_204_529] { <col0>[number]:[year] <col1>[number]:[personnel] <col2>[text]:[album] <col3>[text]:[label] <col4>[text]:[peak] <col5>[positions]:[nnor] }
SELECT "album" FROM `<table0>` WHERE "label" = 'curling legs' ORDER BY "year" DESC LIMIT 1
what was this artists last album under the curling legs label ?
<table0>[requirement] { <col0>[requirement_id]:[int] } <table1>[offering_instructor] { <col0>[offering_instructor_id]:[int] <col1>[offering_id]:[int] <col2>[instructor_id]:[int] } <table2>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table3>[course_offering] { <col0>...
SELECT DISTINCT `<table10>`.department, `<table10>`.name, `<table10>`.number FROM `<table10>` INNER JOIN area ON `<table10>`.`<table10>`_id = area.`<table10>`_id INNER JOIN program_`<table10>` ON program_`<table10>`.`<table10>`_id = `<table10>`.`<table10>`_id WHERE ( area.area LIKE '%Modern Middle East History%' OR `<t...
Which courses in Modern Middle East History reach the Core requirement ?
<table0>[ocean_health] { <col0>[location]:[VARCHAR] <col1>[temperature]:[FLOAT] <col2>[phosphorus]:[FLOAT] }
INSERT INTO ocean_health ( location, temperature, phosphorus ) VALUES ( 'Atlantic Ocean', 20.5, 1.2 ), ( 'Pacific Ocean', 25.2, 1.8 ), ( 'Indian Ocean', 27.8, 2.3 ), ( 'Arctic Ocean', 5.3, 0.5 ), ( 'Southern Ocean', 2.8, 0.3 )
Insert 5 rows of data into the ocean_health table
<table0>[table_22656187_9] { <col0>[result]:[VARCHAR] <col1>[partnering]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Frederica Piedade"
What was the result for a partnering of Frederica Piedade?
<table0>[table_name_14] { <col0>[winner]:[VARCHAR] <col1>[loser]:[VARCHAR] <col2>[result]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "new england patriots" AND `<col2>` = "40-21"
Which team won against the New England Patriots 40-21?
<table0>[table_5914] { <col0>[Race]:[text] <col1>[Circuit]:[text] <col2>[City]:[Location] <col3>[text]:[Date] <col4>[text]:[Pole] <col5>[position]:[text] <col6>[Fastest]:[lap] <col7>[text]:[Winning] <col8>[driver]:[text] <col9>[Winning]:[team] <col10>[text]:[Report] }
SELECT "Fastest lap" FROM `<table0>` WHERE "Winning driver" = 'jimmy vasser'
What was Jimmy Vasser's fastest lap?
<table0>[table_name_6] { <col0>[VARCHAR]:[opposing_teams] <col1>[VARCHAR]:[status] <col2>[VARCHAR]:[venue] }
SELECT COUNT( against ) FROM `<table0>` WHERE status = "five nations" AND venue = "twickenham, london" AND opposing_teams = "scotland"
What's the total against for opposing team scotland at twickenham, london venue with a status of five nations?
<table0>[Manufacturers] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Headquarter]:[VARCHAR] <col3>[255]:[Founder] <col4>[VARCHAR]:[255] <col5>[Revenue]:[REAL] } <table1>[Products] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Price]:[DECIMAL] <col3>[Manufacturer]:[INTEGER] }
SELECT T1.Name, T2.Revenue FROM `<table1>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T2.Revenue DESC
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and revenue , and group by attribute headquarter, could you sort total number in desc order?
<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 `<table0>`.long_title FROM `<table0>` WHERE `<table0>`.subject_id = "6983"
what is diagnoses long title of subject id 6983?
<table0>[device_country] { <col0>[device_id]:[INT] <col1>[country]:[TEXT] } <table1>[device_info] { <col0>[device_id]:[INT] <col1>[device_type]:[TEXT] }
SELECT `<table1>`.device_id, `<table1>`.device_type FROM `<table1>` INNER JOIN device_country ON `<table1>`.device_id = device_country.device_id WHERE `<table1>`.device_type = 'Temperature Sensor' AND device_country.country IN ( 'Brazil', 'Argentina' );
List all the IoT devices that have a temperature sensor and are located in Brazil or Argentina.
<table0>[smart_contracts] { <col0>[INT]:[name] <col1>[VARCHAR]:[255] }
SELECT name FROM `<table0>` WHERE id = 5;
What is the name of the smart contract associated with the ID 5?
<table0>[table_204_364] { <col0>[number]:[year] <col1>[number]:[competition] <col2>[text]:[venue] <col3>[text]:[position] <col4>[text]:[event] <col5>[text]:[notes] }
SELECT "venue" FROM `<table0>` WHERE id = ( SELECT id FROM `<table0>` WHERE "venue" = 'beijing, china' ) - 1
what venue was before beijing , china ?
<table0>[countries] { <col0>[COUNTRY_ID]:[varchar] <col1>[COUNTRY_NAME]:[varchar] <col2>[REGION_ID]:[decimal] } <table1>[regions] { <col0>[REGION_ID]:[decimal] <col1>[REGION_NAME]:[varchar] } <table2>[job_history] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[START_DATE]:[date] <col2>[END_DATE]:[date] <col3>[JOB_ID]:[varcha...
SELECT LAST_NAME, `<col9>` FROM `<table6>` ORDER BY `<col2>`
Create a bar chart showing manager_id across last name, and show by the X-axis in ascending please.
<table0>[table_name_65] { <col0>[location]:[VARCHAR] <col1>[school]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "the friends' school"
WHere is the friends' school?
<table0>[table_16715] { <col0>[Season]:[real] <col1>[Premier]:[text] <col2>[Runner]:[text] <col3>[Score]:[text] <col4>[Venue]:[text] <col5>[Attendance]:[real] <col6>[Premiership]:[text] }
SELECT "Venue" FROM `<table0>` WHERE "Premier" = 'Essendon' AND "Attendance" = '30824'
What venue has an attendance of 30824 at Essendon in 1984?
<table0>[table_name_27] { <col0>[VARCHAR]:[alignment_alignment] <col1>[VARCHAR]:[link] }
SELECT alignment_alignment AS :_predicts_an_alignment_, _ FROM `<table0>` WHERE link = "linuxbinary"
What is the alignment that predicts an alignment of the linuxbinary link?
<table0>[address_status] { <col0>[status_id]:[integer] } <table1>[author] { <col0>[author_id]:[integer] <col1>[author_name]:[text] } <table2>[book_language] { <col0>[language_id]:[integer] <col1>[language_code]:[text] <col2>[language_name]:[text] } <table3>[country] { <col0>[country_id]:[integer] <col1>[country_name...
SELECT T3.street_number, T3.street_name, T3.city FROM `<table5>` AS T1 INNER JOIN `<table5>`_address AS T2 ON T1.`<table5>`_id = T2.`<table5>`_id INNER JOIN address AS T3 ON T3.address_id = T2.address_id INNER JOIN country AS T4 ON T4.country_id = T3.country_id WHERE T1.first_name = 'Ursola' AND T1.last_name = 'Purdy'
Provide the full address of Ursola Purdy.
<table0>[table_name_74] { <col0>[general_classification_yellow_jersey]:[VARCHAR] <col1>[mountains_classification_green_jersey]:[VARCHAR] <col2>[team_classification]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "murilo antonio fischer" AND `<col2>` = "lampre-fondital"
What is General Classification Yellow Jersey that has a Murilo Antonio Fischer, and Lampre-Fondital?
<table0>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table1>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergyti...
SELECT AVG( `<table5>`.`<table5>`result ) FROM `<table5>` WHERE `<table5>`.`<table8>`unitstayid IN ( SELECT `<table8>`.`<table8>`unitstayid FROM `<table8>` WHERE `<table8>`.`<table8>`healthsystemstayid IN ( SELECT `<table8>`.`<table8>`healthsystemstayid FROM `<table8>` WHERE `<table8>`.uniquepid = '006-77873' ) ) AND `...
what is the monthly average reticulocyte count value for patient 006-77873 the previous year?
<table0>[table_name_95] { <col0>[conference__conf]:[VARCHAR] <col1>[division__div]:[VARCHAR] <col2>[team]:[VARCHAR] }
SELECT conference__conf_ FROM `<table0>` WHERE division__div_ = "atlantic" AND `<col2>` = "1973-74"
What conference is the 1973-74 team in the Atlantic Division (Div.)?
<table0>[ingredients] { <col0>[ingredient_id]:[INT] <col1>[product_id]:[INT] <col2>[ingredient_name]:[VARCHAR] <col3>[100]:[source_country] <col4>[VARCHAR]:[launch_year] <col5>[INT]:[is_vegan] <col6>[BOOLEAN]:[INSERT] }
SELECT `<col2>` FROM `<table0>` WHERE is_vegan = true AND launch_year = 2019 GROUP BY `<col2>` ORDER BY COUNT( * ) DESC LIMIT 2;
What are the names of the top 2 ingredients used in cosmetic products certified as vegan and launched in 2019?
<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 Name, SUM( `<col5>` ) FROM `<table1>` GROUP BY Name ORDER BY SUM( `<col5>` )
A bar chart about what is the total revenue of each manufacturer?, and show by the total number of revenue in asc.
<table0>[forestry] { <col0>[harvesting]:[INT] <col1>[PRIMARY]:[KEY] <col2>[forest_id]:[INT] <col3>[year]:[INT] <col4>[volume]:[FLOAT] } <table1>[forestry] { <col0>[forests]:[INT] <col1>[PRIMARY]:[KEY] <col2>[name]:[VARCHAR] <col3>[255]:[region] <col4>[VARCHAR]:[255] }
SELECT f.region, AVG( h.volume ) FROM forestry.harvesting h JOIN forestry.forests f ON h.forest_id = f.id WHERE f.region = 'Africa' GROUP BY f.region;
What is the average volume of timber harvested in the African region?
<table0>[table_name_86] { <col0>[final_score]:[VARCHAR] <col1>[visiting_team]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "new york jets"
What was the final score when the New York Jets were the Visiting Team?
<table0>[table_name_94] { <col0>[react]:[INTEGER] <col1>[name]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "bryan clay"
What was Bryan Clay's react time?
<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>[outputevents] { <col0>[row_id]:[number] <col1>[subject_id]:[...
SELECT `<table14>`.charttime FROM `<table14>` WHERE `<table14>`.icd9_code = ( SELECT `<table3>`.icd9_code FROM `<table3>` WHERE `<table3>`.short_title = 'ot cerv fusion post/post' ) AND `<table14>`.hadm_id IN ( SELECT `<table10>`.hadm_id FROM `<table10>` WHERE `<table10>`.subject_id = 72198 ) AND DATETIME( `<table14>`....
when patient 72198 first received a ot cerv fusion post/post procedure during this year?
<table0>[table_name_81] { <col0>[capacity]:[VARCHAR] <col1>[code]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "f4r"
What is the capacity of code f4r?
<table0>[mining_operations] { <col0>[INT]:[name] <col1>[VARCHAR]:[num_employees] <col2>[INT]:[environmental_impact_score] }
SELECT name FROM `<table0>` WHERE num_employees > ( SELECT AVG( num_employees ) FROM `<table0>` ) AND environmental_impact_score > ( SELECT AVG( environmental_impact_score ) FROM `<table0>` );
Find the mining operations that have a higher than average number of employees, and also have an environmental impact score above the average.
<table0>[projects] { <col0>[name]:[VARCHAR] <col1>[code]:[VARCHAR] <col2>[hours]:[INTEGER] } <table1>[assignedto] { <col0>[project]:[VARCHAR] }
SELECT COUNT( * ), T1.name FROM `<table0>` AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name
Find the number of scientists involved for the projects that require more than 300 hours.
<table0>[table_1404984_1] { <col0>[network]:[VARCHAR] <col1>[virtual_channel]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "9.1"
What network is virtual channel 9.1 linked to?
<table0>[table_14848] { <col0>[text]:[Code] <col1>[text]:[Capacity] <col2>[text]:[Power] <col3>[text]:[Acceleration] <col4>[u2013100]:[text] <col5>[speed]:[text] <col6>[Combined]:[consumption] }
SELECT "Power" FROM `<table0>` WHERE "Capacity" = '898cc'
what is the power when the capacity is 898cc?
<table0>[table_name_59] { <col0>[theme]:[VARCHAR] <col1>[VARCHAR]:[order] }
SELECT `<col0>` FROM `<table0>` WHERE show = "week 1" AND order = "2"
For the week 1 show and order 2, what was the theme?
<table0>[patient] { <col0>[patient_id]:[INT] <col1>[ethnicity]:[VARCHAR] <col2>[255]:[experienced_cultural_competency] <col3>[BOOLEAN]:[INSERT] }
SELECT ethnicity, 100.0 * SUM( experienced_cultural_competency ) / COUNT( * ) as percentage FROM `<table0>` GROUP BY `<col1>` ORDER BY percentage DESC;
Display the percentage of patients who have experienced cultural competency in healthcare services, by their ethnicity, in descending order.
<table0>[table_name_53] { <col0>[record]:[VARCHAR] <col1>[march]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 12
which Record is on March of 12
<table0>[defense_projects] { <col0>[INT]:[project_name] <col1>[VARCHAR]:[255] <col2>[start_date]:[DATE] <col3>[end_date]:[DATE] <col4>[budget]:[DECIMAL] <col5>[region]:[VARCHAR] <col6>[255]:[INSERT] }
SELECT project_name, start_date, `<col3>` FROM `<table0>` WHERE `<col4>` > 50000000.00 AND `<col5>` = 'Europe';
What are the defense project timelines for all projects with a budget greater than $50 million in Europe?
<table0>[districts] { <col0>[district_id]:[INT] <col1>[district_name]:[VARCHAR] } <table1>[teachers] { <col0>[teacher_id]:[INT] <col1>[district_id]:[INT] <col2>[years_of_experience]:[INT] } <table2>[workshops] { <col0>[workshop_id]:[INT] <col1>[district_id]:[INT] <col2>[workshop_topic]:[VARCHAR] <col3>[255]:[teacher_...
SELECT sd.district_name, COUNT( w.teacher_id ) as num_teachers FROM `<table0>` sd JOIN workshops w ON sd.district_id = w.district_id WHERE w.workshop_topic = 'Data Science' GROUP BY sd.district_name;
What is the number of teachers who have completed professional development in data science, by school district?
<table0>[CREATE] { <col0>[VIEW]:[Resilience_Cost_By_Type] <col1>[SELECT]:[project_id] <col2>[project_name]:[project_type] <col3>[cost]:[resilience_score] <col4>[Water_Infrastructure]:[JOIN] <col5>[Resilience_Scores]:[Water_Infrastructure] <col6>[project_id]:[Resilience_Scores] <col7>[project_id]:[year] } <table1>[Proj...
SELECT project_type, AVG( resilience_score ), SUM( cost ) FROM Resilience_Cost_By_Type JOIN Project_Types ON Resilience_Cost_By_Type.project_type = Project_Types.project_type GROUP BY project_type;
Display the total cost and average resilience score for each project type in the Resilience_Cost_By_Type view
<table0>[table_name_47] { <col0>[b_score]:[INTEGER] <col1>[position]:[VARCHAR] <col2>[total]:[VARCHAR] }
SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "2nd" AND `<col2>` < 15.525
Can you tell me the average B Score that has the Position of 2nd, and the Total smaller than 15.525?
<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 Affiliation, SUM( `<col5>` ) FROM `<table0>` GROUP BY `<col4>` ORDER BY `<col4>` DESC
Find the total student enrollment for different affiliation type schools Plot them as bar chart, could you rank by the names from high to low?
<table0>[table_name_53] { <col0>[date]:[VARCHAR] <col1>[result]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "w 13-10"
What is the date of the game with a result of W 13-10?
<table0>[table_28677723_5] { <col0>[karianne_gulliksen]:[INTEGER] }
SELECT MAX( `<col0>` ) FROM `<table0>`
What is the largest number for karianne gulliksen?
<table0>[music_festival] { <col0>[int]:[Music_Festival] <col1>[text]:[Date_of_ceremony] <col2>[text]:[Category] <col3>[text]:[Volume] <col4>[int]:[Result] } <table1>[artist] { <col0>[Artist_ID]:[int] <col1>[Artist]:[text] <col2>[Age]:[int] <col3>[Famous_Title]:[text] <col4>[Famous_Release_date]:[text] } <table2>[volu...
SELECT Result, COUNT( Result ) FROM `<table0>` GROUP BY Result ORDER BY COUNT( Result )
Please give me a bar chart to show the distribution of results of all music festival, and display by the Y-axis from low to high.
<table0>[wells] { <col0>[well_id]:[INT] <col1>[name]:[VARCHAR] <col2>[location]:[VARCHAR] <col3>[production]:[FLOAT] }
SELECT AVG( `<col3>` ) FROM `<table0>` WHERE `<col2>` = 'Gulf of Guinea';
What is the average production of wells in the Gulf of Guinea?
<table0>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table2>[PostHistory] { <col0>[nu...
SELECT Id AS "post_link", Body FROM `<table14>` WHERE OwnerUserId = '##UserId##' AND Body LIKE '%\\.\.\.\%' ESCAPE '\' ORDER BY Id DESC
Posts containing truncated quotations using [...].
<table0>[animals] { <col0>[SERIAL]:[PRIMARY] <col1>[KEY]:[name] <col2>[TEXT]:[species] }
CREATE TABLE animals ( id SERIAL PRIMARY KEY, name TEXT, species TEXT );
Create a table named "animals" with columns "id", "name", and "species" where "id" is the primary key
<table0>[t_kc22] { <col0>[number]:[CHA_ITEM_LEV] <col1>[number]:[DATA_ID] <col2>[text]:[DIRE_TYPE] <col3>[number]:[DOSE_FORM] <col4>[text]:[DOSE_UNIT] <col5>[text]:[EACH_DOSAGE] <col6>[text]:[EXP_OCC_DATE] <col7>[time]:[FLX_MED_ORG_ID] <col8>[text]:[FXBZ] <col9>[number]:[HOSP_DOC_CD] <col10>[text]:[HOSP_DOC_NM] <col11>...
SELECT `<table1>`.MED_ORG_DEPT_NM, AVG( t_kc24.OVE_PAY ) FROM `<table1>` JOIN t_kc24 ON `<table1>`.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE `<table1>`.MED_SER_ORG_NO = '8731863' GROUP BY `<table1>`.MED_ORG_DEPT_NM
医院8731863所有的就诊记录里医保的统筹基金花费和总的医疗费比值根据科室不同列出来平均有多少
<table0>[table_name_79] { <col0>[year]:[VARCHAR] <col1>[region]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "japan"
What year did Japan form a label?
<table0>[table_78875] { <col0>[Team]:[text] <col1>[Average]:[real] <col2>[Points]:[real] <col3>[Played]:[real] <col4>[1989]:[text] <col5>[1990]:[text] <col6>[1991]:[1992] }
SELECT COUNT( "Average" ) FROM `<table0>` WHERE "1989-90" = '36' AND "Team" = 'talleres de córdoba' AND "Played" < '114'
How much Average has a 1989-90 of 36, and a Team of talleres de c rdoba, and a Played smaller than 114?
<table0>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table1>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[...
SELECT x.* FROM `<table2>` AS p INNER JOIN ReviewTasks AS x ON x.PostId = p.Id LEFT OUTER JOIN PendingFlags AS f ON f.PostId = p.Id LEFT OUTER JOIN PostFeedback AS x ON x.PostId = p.Id WHERE PostHistoryTypeId = 10 AND Comment = '102' AND CreationDate > CURRENT_TIMESTAMP( ) - 90 ORDER BY NEWID( ) LIMIT 40
40 random off-topic questions from the past 90 days.
<table0>[exists] { <col0>[open_pedagogy_resources]:[INT] <col1>[course_id]:[INT] <col2>[type]:[VARCHAR] <col3>[link]:[VARCHAR] <col4>[100]:[INSERT] <col5>[open_pedagogy_resources]:[course_id] <col6>[type]:[link] <col7>[VALUES]:[Blog] <col8>[Post]:[https] <col9>[opensource]:[com] <col10>[education]:[open] <col11>[pedago...
INSERT INTO open_pedagogy_resources ( id, course_id, type, link ) VALUES ( 3, 3, 'Podcast', 'https://edunova.podbean.com/e/episode-1-open-pedagogy-and-the-future-of-education/' );
Add a new open pedagogy resource
<table0>[table_43901] { <col0>[School]:[name] <col1>[text]:[address] <col2>[text]:[students] <col3>[real]:[grades] <col4>[text]:[2007] <col5>[API]:[real] }
SELECT "grades" FROM `<table0>` WHERE "2007 API" = '734'
Which grades have a 2007 API of 734?
<table0>[table_28498999_5] { <col0>[score]:[VARCHAR] <col1>[player]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Matt Kuchar"
What is the score when the player is Matt Kuchar?
<table0>[table_71144] { <col0>[Team]:[text] <col1>[Manager]:[text] <col2>[Captain]:[text] <col3>[Kit]:[manufacturer] <col4>[text]:[Shirt] <col5>[sponsor]:[text] }
SELECT "Captain" FROM `<table0>` WHERE "Kit manufacturer" = 'fox leisure'
Who is the captain of the team that has a kit manufacturer of Fox Leisure?