schema
stringlengths
20
14.6k
query
stringlengths
17
2.58k
question
stringlengths
8
1.06k
<table0>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table1>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric...
SELECT `<table2>`.drugname FROM `<table2>` WHERE `<table2>`.`<table8>`unitstayid IN ( SELECT `<table8>`.`<table8>`unitstayid FROM `<table8>` WHERE `<table8>`.`<table8>`healthsystemstayid IN ( SELECT `<table8>`.`<table8>`healthsystemstayid FROM `<table8>` WHERE `<table8>`.uniquepid = '010-32698' ) ) AND `<table2>`.route...
what was the name of the drug that was prescribed to patient 010-32698 last time through the intravenou route since 47 months ago?
<table0>[movement] { <col0>[movement_id]:[INT] <col1>[warehouse_id]:[VARCHAR] <col2>[arrival_date]:[DATE] <col3>[departure_date]:[DATE] }
SELECT w.name, MIN( m.arrival_date ) AS earliest_arrival, MAX( m.departure_date ) AS latest_departure FROM `<table0>` m INNER JOIN warehouse w ON m.warehouse_id = w.warehouse_id GROUP BY w.name;
What is the earliest arrival date for each warehouse and what is the latest departure date for each warehouse?
<table0>[course] { <col0>[course_id]:[int] <col1>[name]:[varchar] <col2>[department]:[varchar] <col3>[number]:[varchar] <col4>[credits]:[varchar] <col5>[advisory_requirement]:[varchar] <col6>[enforced_requirement]:[varchar] <col7>[description]:[varchar] <col8>[num_semesters]:[int] <col9>[num_enrolled]:[int] <col10>[has...
SELECT DISTINCT course.department, course.name, course.number, `<table13>`.workload, `<table13>`.workload FROM course, `<table13>` WHERE `<table13>`.category LIKE '%MDE%' AND `<table13>`.course_id = course.course_id AND `<table13>`.workload = ( SELECT MIN( PROGRAM_COURSEalias1.workload ) FROM `<table13>` AS PROGRAM_COU...
What 's the easiest class I can take to fulfill the MDE requirement ?
<table0>[circular_initiatives] { <col0>[region]:[VARCHAR] <col1>[year]:[INT] <col2>[initiative]:[VARCHAR] }
SELECT COUNT( * ) FROM `<table0>` WHERE `<col0>` = 'Africa' AND `<col1>` >= 2015;
How many circular economy initiatives were launched in 'Africa' since 2015?
<table0>[city] { <col0>[City_ID]:[number] <col1>[City]:[text] <col2>[Hanzi]:[text] <col3>[Hanyu_Pinyin]:[text] <col4>[Regional_Population]:[number] <col5>[GDP]:[number] } <table1>[match] { <col0>[Match_ID]:[number] <col1>[Date]:[text] <col2>[Venue]:[text] <col3>[Score]:[text] <col4>[Result]:[text] <col5>[Competition]:...
SELECT T2.year FROM `<table0>` AS T1 JOIN hosting_`<table0>` AS T2 ON T1.`<table0>`_id = T2.host_`<table0>` WHERE T1.`<table0>` = "Taizhou ( Zhejiang )"
IN which year did city "Taizhou ( Zhejiang )" serve as a host city?
<table0>[table_name_96] { <col0>[record]:[VARCHAR] <col1>[attendance]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "rose garden 20,126"
What is the record for the game that shows the Rose Garden 20,126 as attendance?
<table0>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table1>[VoteTypes] { <col0>[number]:[text] } <table2>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Descriptio...
SELECT Id, Body FROM `<table17>` WHERE Body LIKE '%developer.salesforce.com/page/An_Introduction_to_Force_IDE%'
Posts that contain URLs that are being decommissioned by Salesforce.
<table0>[households] { <col0>[INT]:[county] <col1>[TEXT]:[state] <col2>[TEXT]:[income] <col3>[INT]:[INSERT] }
SELECT county, AVG( income ) as avg_income FROM `<table0>` WHERE state = 'Texas' GROUP BY county;
What is the average income of households in the state of Texas, grouped by county?
<table0>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table1>[dual_carrier] { <col0>[main_airline]:[varchar] <col1>[low_flight_number]:[int] <col2>[high_flight_number]:[int] <col3>[dual_airline]:[varchar] <col4>[service_name]:[text] } <table2>[airport] { <col0>[airport_code]:[varchar] <col...
SELECT DISTINCT flight.flight_id FROM `<table9>` AS AIRPORT_SERVICE_0, `<table9>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days, flight WHERE ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND days.day_name = 'SUNDAY' AND flight.flight_days = days.days_code AND flight....
what are the SUNDAY flights from OAKLAND to WASHINGTON
<table0>[fzzmzjzjlb] { <col0>[HXPLC]:[number] <col1>[HZXM]:[text] <col2>[JLSJ]:[time] <col3>[JZJSSJ]:[time] <col4>[JZKSBM]:[text] <col5>[JZKSMC]:[text] <col6>[JZKSRQ]:[time] <col7>[JZLSH]:[number] <col8>[JZZDBM]:[text] <col9>[JZZDSM]:[text] <col10>[JZZTDM]:[number] <col11>[JZZTMC]:[text] <col12>[text]:[KLX] <col13>[num...
SELECT COUNT( * ) FROM `<table6>` JOIN hz_info JOIN zzmzjzjlb ON `<table6>`.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX WHERE `<table6>`.XM = '苗乐池' AND zzmzjzjlb.JZKSRQ BETWEEN '2005-05-11' AND '2021-10-27' AND zzmzjzjlb.YLJGDM = '4321914' UNIO...
二零零五年五月十一日到二零二一年十月二十七日,患者苗乐池去4321914医疗机构挂过几次门诊
<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_Games, `<col8>` FROM `<table0>` ORDER BY `<col8>` DESC
Return a bar chart about the distribution of All_Games and All_Games_Percent , I want to display total number in descending order.
<table0>[head] { <col0>[head_ID]:[int] <col1>[name]:[text] <col2>[born_state]:[text] <col3>[age]:[real] } <table1>[department] { <col0>[Department_ID]:[int] <col1>[text]:[Creation] <col2>[text]:[Ranking] <col3>[int]:[Budget_in_Billions] <col4>[real]:[Num_Employees] } <table2>[management] { <col0>[department_ID]:[int]...
SELECT Creation, SUM( Budget_in_Billions ) FROM `<table1>`
Show sum of budget in each year and bin creation time by year in a line chart.
<table0>[HistoricalSites] { <col0>[SiteID]:[INT] <col1>[SiteName]:[VARCHAR] <col2>[255]:[Country] <col3>[VARCHAR]:[255] <col4>[PreservationStatus]:[VARCHAR] <col5>[255]:[INSERT] } <table1>[VisitorCounts] { <col0>[SiteID]:[INT] <col1>[Year]:[INT] <col2>[VisitorCount]:[INT] }
SELECT `<table0>`.SiteName, `<table0>`.PreservationStatus, SUM( VisitorCounts.VisitorCount ) FROM `<table0>` INNER JOIN VisitorCounts ON `<table0>`.SiteID = VisitorCounts.SiteID WHERE `<table0>`.Country = 'Italy' GROUP BY `<table0>`.SiteName, `<table0>`.PreservationStatus;
List all historical sites with their preservation status and number of annual visitors from Italy.
<table0>[table_28180840_15] { <col0>[semifinal__week]:[VARCHAR] <col1>[age_s]:[VARCHAR] }
SELECT semifinal__week_ FROM `<table0>` WHERE age_s_ = "29"
How many performers are 29 that made it to the semi finals?
<table0>[langs] { <col0>[lid]:[integer] <col1>[lang]:[text] <col2>[locale]:[text] <col3>[pages]:[integer] <col4>[words]:[integer] } <table1>[pages] { <col0>[pid]:[integer] <col1>[lid]:[integer] <col2>[page]:[integer] <col3>[revision]:[integer] <col4>[title]:[text] <col5>[words]:[integer] } <table2>[words] { <col0>[wi...
SELECT CAST( ( SUM( CASE WHEN T3.title = 'Àbac' THEN T2.occurrences END ) - SUM( CASE WHEN T3.title = 'Astronomia' THEN T2.occurrences END ) ) AS REAL ) * 100 / SUM( CASE WHEN T3.title = 'Astronomia' THEN T2.occurrences END ) FROM `<table2>` AS T1 INNER JOIN pages_`<table2>` AS T2 ON T1.wid = T2.wid INNER JOIN pages AS...
How much higher in percentage does the word "grec" occur on the page titled "Àbac" than on the page titled "Astronomia"?
<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>[admissions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[admittim...
SELECT DISTINCT `<table16>`.route FROM `<table16>` WHERE `<table16>`.drug = 'nifedipine cr'
what is the intake method of the nifedipine cr?
<table0>[movie] { <col0>[mid]:[number] <col1>[title]:[text] <col2>[year]:[number] <col3>[director]:[text] } <table1>[reviewer] { <col0>[rid]:[number] <col1>[name]:[text] } <table2>[rating] { <col0>[rid]:[number] <col1>[mid]:[number] <col2>[stars]:[number] <col3>[ratingdate]:[time] }
SELECT T2.title, AVG( T1.stars ) FROM `<table2>` AS T1 JOIN movie AS T2 ON T1.mid = T2.mid GROUP BY T1.mid ORDER BY AVG( T1.stars ) LIMIT 1
What are the titles and average ratings for all movies that have the lowest average rating?
<table0>[table_name_97] { <col0>[result]:[VARCHAR] <col1>[couple]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "steve & anna"
What was the result when the couple was steve & anna?
<table0>[state_water_usage] { <col0>[state]:[VARCHAR] <col1>[water_consumption]:[FLOAT] <col2>[usage_date]:[DATE] }
SELECT state, `<col1>` FROM ( SELECT state, water_consumption, ROW_NUMBER( ) OVER ( ORDER BY `<col1>` DESC ) as rn FROM `<table0>` WHERE EXTRACT( MONTH FROM `<col2>` ) = 3 AND EXTRACT( YEAR FROM `<col2>` ) = 2022 ) t WHERE rn <= 3;
List the top 3 states with the highest water consumption in March 2022, sorted by consumption in descending order.
<table0>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table1>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text...
SELECT `<table3>`.`<table3>`resulttime FROM `<table3>` WHERE `<table3>`.`<table7>`unitstayid IN ( SELECT `<table7>`.`<table7>`unitstayid FROM `<table7>` WHERE `<table7>`.`<table7>`healthsystemstayid IN ( SELECT `<table7>`.`<table7>`healthsystemstayid FROM `<table7>` WHERE `<table7>`.uniquepid = '027-24468' AND NOT `<ta...
what time patient 027-24468 got a lab test for the first time on the first hospital encounter?
<table0>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } <table1>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[...
SELECT t3.culturesite FROM ( SELECT t2.culturesite, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT patient.uniquepid, `<table7>`.`<table7>`time, patient.patienthealthsystemstayid FROM `<table7>` JOIN patient ON `<table7>`.patientunitstayid = patient.patientunitstayid WHERE `<table7>`.`<table7>`name...
what are the four most commonly given microbiology tests for patients who have previously had their tracheal suctioning done in the same hospital encounter until 2 years ago?
<table0>[table_name_4] { <col0>[place]:[INTEGER] <col1>[artist]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "all mixed up"
Where did the artist All Mixed Up place?
<table0>[table_name_23] { <col0>[laps]:[INTEGER] <col1>[rider]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "imre toth"
what is the smallest number of laps imre toth has?
<table0>[MemberWorkout] { <col0>[member_id]:[INT] <col1>[workout_id]:[INT] }
SELECT AVG( DATEDIFF( 'day', dob, CURDATE( ) ) )/365 as median_age FROM Member m JOIN MemberWorkout mw ON m.id = mw.member_id JOIN WorkoutType wt ON mw.workout_id = wt.id WHERE wt.workout_name = 'Yoga' GROUP BY m.id ORDER BY median_age;
Calculate the median age of members who have participated in yoga workouts.
<table0>[table_name_49] { <col0>[athlete]:[VARCHAR] <col1>[time]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "6:36.05"
Who is the Athlete with a rowing Time of 6:36.05?
<table0>[community_health_workers] { <col0>[INT]:[name] <col1>[VARCHAR]:[ethnicity] <col2>[VARCHAR]:[salary] }
INSERT INTO community_health_workers ( id, name, ethnicity, salary ) VALUES ( 3, 'Mohammed Ahmed', 'Asian', 65000 );
Insert a new record for a community health worker with ID 3, name 'Mohammed Ahmed', ethnicity 'Asian', and salary $65,000.
<table0>[table_75477] { <col0>[Round]:[real] <col1>[Pick]:[real] <col2>[Overall]:[real] <col3>[text]:[Position] <col4>[text]:[College] }
SELECT COUNT( "Pick #" ) FROM `<table0>` WHERE "College" = 'texas'
What numbered pick was the player from texas?
<table0>[table_name_13] { <col0>[league]:[VARCHAR] <col1>[position]:[VARCHAR] <col2>[goals]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "7th of 24" AND `<col2>` < 24
Position of 7th of 24, and a Goals smaller than 24 is what league?
<table0>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table1>[PostHistoryTypes] { <col0>[number]:[text] } <table2>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time...
SELECT `<table22>`.Id AS "user_link", Posts.Id AS "post_link" FROM `<table22>` INNER JOIN Posts ON Posts.OwnerUserId = `<table22>`.Id INNER JOIN PostTags ON Posts.Id = PostTags.PostId INNER JOIN Tags ON Tags.Id = PostTags.TagId WHERE Tags.TagName LIKE 'identification' AND Posts.ParentId IS NULL AND `<table22>`.Id IN ( ...
Users with one [identification] question and no answers (original).
<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 COUNT( * ) > 0 FROM `<table12>` WHERE `<table12>`.hadm_id IN ( SELECT `<table11>`.hadm_id FROM `<table11>` WHERE `<table11>`.subject_id = 61527 ) AND `<table12>`.drug IN ( 'docusate sodium', 'potassium chloride', 'spironolactone' ) AND DATETIME( `<table12>`.startdate, 'start of year' ) = DATETIME( CURRENT_TIME( ...
was spironolactone, docusate sodium, or potassium chloride prescribed for patient 61527 in the previous year?
<table0>[table_name_17] { <col0>[venue]:[VARCHAR] <col1>[date]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "november 14, 2007"
What was the Venue on November 14, 2007?
<table0>[lutetium_prices] { <col0>[country]:[VARCHAR] <col1>[price]:[DECIMAL] <col2>[year]:[INT] }
SELECT AVG( `<col1>` ) FROM `<table0>` WHERE `<col0>` = 'South Africa';
What is the average price of lutetium in South Africa?
<table0>[Rooms] { <col0>[RoomId]:[TEXT] <col1>[roomName]:[TEXT] <col2>[beds]:[INTEGER] <col3>[bedType]:[TEXT] <col4>[maxOccupancy]:[INTEGER] <col5>[basePrice]:[INTEGER] <col6>[decor]:[TEXT] } <table1>[Reservations] { <col0>[Code]:[INTEGER] <col1>[Room]:[TEXT] <col2>[CheckIn]:[TEXT] <col3>[CheckOut]:[TEXT] <col4>[Rate]...
SELECT roomName, COUNT( roomName ) FROM `<table1>` AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE `<col6>` LIKE '%ROY%' GROUP BY roomName ORDER BY roomName
What are the name of rooms booked by customers whose first name has 'ROY' in part, and count them by a bar chart, and rank x-axis in asc order please.
<table0>[european_sites] { <col0>[site_id]:[INT] <col1>[num_artifacts]:[INT] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` > 50;
List excavation sites with more than 50 artifacts in 'european_sites'?
<table0>[Publications] { <col0>[publication_id]:[INT] <col1>[author_id]:[INT] <col2>[title]:[TEXT] }
SELECT `<col1>` FROM `<table0>` GROUP BY `<col1>` HAVING COUNT( * ) > 1;
Which authors have published more than one paper?
<table0>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>...
SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN diagnoses ON `<table1>`.hadm_id = diagnoses.hadm_id WHERE `<table1>`.age < "71" AND diagnoses.long_title = "Other specified procedures as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at time...
count the number of patients whose age is less than 71 and diagnoses long title is other specified procedures as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at time of procedure?
<table0>[t_kc24] { <col0>[MED_SAFE_PAY_ID]:[text] <col1>[OVERALL_CD_ORG]:[text] <col2>[OVERALL_CD_PERSON]:[text] <col3>[MED_CLINIC_ID]:[text] <col4>[REF_SLT_FLG]:[number] <col5>[CLINIC_SLT_DATE]:[time] <col6>[COMP_ID]:[text] <col7>[PERSON_ID]:[text] <col8>[FLX_MED_ORG_ID]:[text] <col9>[INSU_TYPE]:[text] <col10>[MED_AMO...
SELECT SOC_SRT_DIRE_CD, `<col6>` FROM `<table1>` WHERE `<col3>` = '91920586675' AND HOSP_DOC_NM LIKE '水%'
91920586675就诊中,水医师有开过什么药
<table0>[Apartment_Buildings] { <col0>[building_id]:[INTEGER] <col1>[building_short_name]:[CHAR] <col2>[building_full_name]:[VARCHAR] <col3>[building_description]:[VARCHAR] <col4>[255]:[building_address] <col5>[VARCHAR]:[255] <col6>[building_manager]:[VARCHAR] <col7>[building_phone]:[VARCHAR] } <table1>[Apartment_Faci...
SELECT apt_number, `<col6>` FROM `<table3>`
Return a bar chart on what are the apartment number and the room count of each apartment?
<table0>[Infrastructure_All] { <col0>[Type]:[VARCHAR] <col1>[Country]:[VARCHAR] <col2>[Cost]:[FLOAT] }
SELECT Country, SUM( `<col2>` ) as Total_Cost, ROW_NUMBER( ) OVER ( ORDER BY SUM( `<col2>` ) DESC ) as Rank FROM `<table0>` GROUP BY Country;
What is the total cost of infrastructure projects for each country, ranked from highest to lowest?
<table0>[Employee_Salaries] { <col0>[company]:[VARCHAR] <col1>[employee_id]:[INT] <col2>[job_title]:[VARCHAR] <col3>[salary]:[DECIMAL] }
SELECT job_title, SUM( `<col3>` ) FROM `<table0>` WHERE `<col0>` IN ( 'Boeing', 'Airbus', 'SpaceX' ) GROUP BY job_title;
What are the combined salaries of all employees working for Boeing, Airbus, or SpaceX, grouped by job title?
<table0>[songs] { <col0>[INT]:[title] <col1>[TEXT]:[length] <col2>[FLOAT]:[genre] <col3>[TEXT]:[INSERT] }
SELECT MIN( length ) FROM `<table0>` WHERE genre = 'Rock';
What is the minimum length (in seconds) of all rock songs?
<table0>[table_name_33] { <col0>[date]:[VARCHAR] <col1>[road_team]:[VARCHAR] <col2>[result]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "chicago" AND `<col2>` = "88-85 ( ot )"
Which Date has a Road Team of chicago, and a Result of 88-85 (ot)?
<table0>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table1>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table2>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_typ...
SELECT `<table16>`.startdate FROM `<table16>` WHERE `<table16>`.hadm_id IN ( SELECT `<table14>`.hadm_id FROM `<table14>` WHERE `<table14>`.subject_id = 20898 ) AND `<table16>`.drug = 'bisacodyl' AND STRFTIME( '%y-%m', `<table16>`.startdate ) = '2105-12' ORDER BY `<table16>`.startdate LIMIT 1
the first time patient 20898 was prescribed bisacodyl in 12/2105?
<table0>[table_8099] { <col0>[text]:[Built] <col1>[text]:[Listed] <col2>[text]:[Location] <col3>[text]:[County] <col4>[text]:[Type] }
SELECT "Built" FROM `<table0>` WHERE "Name" = 'moores creek bridge'
When was Moores Creek Bridge built?
<table0>[table_name_63] { <col0>[laps]:[INTEGER] <col1>[time_retired]:[VARCHAR] <col2>[grid]:[VARCHAR] <col3>[constructor]:[VARCHAR] }
SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col2>` > 6 AND `<col3>` = "renault" AND `<col1>` = "ignition"
When renault is the constructor, the grid is over 6, and the time was labeled ignition, what's the largest amount of laps on record?
<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>` WHERE `<table1>`.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND `<table1>`.admityear < "2145"
what is the number of american indian/alaska native patients who were admitted to hospital before 2145?
<table0>[departments] { <col0>[DEPARTMENT_ID]:[decimal] <col1>[DEPARTMENT_NAME]:[varchar] <col2>[MANAGER_ID]:[decimal] <col3>[LOCATION_ID]:[decimal] } <table1>[job_history] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[START_DATE]:[date] <col2>[END_DATE]:[date] <col3>[JOB_ID]:[varchar] <col4>[DEPARTMENT_ID]:[decimal] } <tab...
SELECT HIRE_DATE, AVG( `<col7>` ) FROM `<table2>` WHERE `<col5>` < '2002-06-21'
For those employees who was hired before 2002-06-21, return a bar chart about the distribution of hire_date and the average of salary bin hire_date by weekday.
<table0>[table_name_69] { <col0>[january]:[INTEGER] <col1>[score]:[VARCHAR] <col2>[game]:[VARCHAR] }
SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "7–4" AND `<col2>` < 42
Which January has a Score of 7–4, and a Game smaller than 42?
<table0>[table_27615896_20] { <col0>[INTEGER]:[player] }
SELECT MIN( sd ) FROM `<table0>` WHERE player = "Kaia Kanepi"
What's Kaia Kanepi's Sd?
<table0>[table_name_67] { <col0>[pick__number]:[INTEGER] <col1>[overall]:[VARCHAR] <col2>[name]:[VARCHAR] <col3>[round]:[VARCHAR] <col4>[position]:[VARCHAR] }
SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col3>` > 5 AND `<col4>` = "wide receiver" AND `<col2>` = "gregory spann" AND `<col1>` > 228
Which Pick # has a Round larger than 5, and a Position of wide receiver, and a Name of gregory spann, and an Overall larger than 228?
<table0>[NegotiationTraining] { <col0>[EmployeeID]:[INT] <col1>[Salary]:[DECIMAL] }
SELECT MAX( `<col1>` ) FROM `<table0>` WHERE `<table0>` = TRUE;
What is the maximum salary for employees who have completed training on negotiation skills?
<table0>[games] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[name] <col2>[VARCHAR]:[genre] <col3>[VARCHAR]:[INSERT] }
DELETE FROM `<table0>` WHERE genre = 'Strategy';
Delete all games from the genre 'Strategy'
<table0>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table1>[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]:[in...
SELECT DISTINCT fare.fare_id FROM `<table14>` AS AIRPORT_SERVICE_0, `<table14>` 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...
what is the COACH fare between BOSTON and ATLANTA on DL
<table0>[table_47389] { <col0>[Date]:[text] <col1>[Visitor]:[text] <col2>[Score]:[text] <col3>[Home]:[text] <col4>[Decision]:[text] <col5>[Attendance]:[real] <col6>[Record]:[text] <col7>[Points]:[real] }
SELECT "Date" FROM `<table0>` WHERE "Attendance" > '20,066' AND "Visitor" = 'boston bruins'
What is Date, when Attendance is greater than 20,066, and when Visitor is 'Boston Bruins'?
<table0>[table_27597] { <col0>[Team]:[text] <col1>[Outgoing]:[manager] <col2>[text]:[Manner] <col3>[departure]:[text] <col4>[Date]:[vacancy] <col5>[text]:[Position] <col6>[table]:[text] <col7>[Replaced]:[text] <col8>[Date]:[appointment] }
SELECT "Replaced by" FROM `<table0>` WHERE "Date of vacancy" = 'August 9' AND "Date of appointment" = 'August 9'
Name the replaced by for august 9
<table0>[table_47046] { <col0>[Squad]:[real] <col1>[text]:[Position] <col2>[text]:[League] <col3>[Apps]:[text] <col4>[League]:[Goals] <col5>[real]:[Cup] <col6>[Apps]:[text] <col7>[Cup]:[Goals] <col8>[real]:[League] <col9>[Cup]:[Apps] <col10>[text]:[League] <col11>[Cup]:[Goals] <col12>[real]:[FLT] <col13>[Apps]:[text] <...
SELECT SUM( "Total Goals" ) FROM `<table0>` WHERE "Playoff Apps" = '2' AND "FA `<col7>` Apps" = '2' AND "League `<col7>` Goals" < '0'
How many total goals did the squad with 2 playoff apps, 2 FA Cup Apps, and 0 League Cup goals get?
<table0>[asian_countries] { <col0>[INT]:[name] } <table1>[mining_operations] { <col0>[INT]:[country_id] <col1>[INT]:[region] <col2>[VARCHAR]:[annual_co2_emissions] <col3>[INT]:[INSERT] <col4>[asian_countries]:[name] <col5>[VALUES]:[China] <col6>[India]:[INSERT] }
SELECT m.annual_co2_emissions, m.region FROM `<table1>` m INNER JOIN `<col4>` c ON m.country_id = c.id WHERE c.name IN ( 'China', 'India' );
List all environmental impact statistics for mining operations in Asia?
<table0>[table_55246] { <col0>[Year]:[text] <col1>[President]:[text] <col2>[Vice]:[President] <col3>[text]:[Gen] <col4>[Secretary]:[text] <col5>[Treasurer]:[text] }
SELECT "Year" FROM `<table0>` WHERE "Gen.-Secretary" = 'silvana jansen'
Which year has a Gen.-Secretary of silvana jansen?
<table0>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditor...
SELECT Id AS "post_link", Body FROM `<table0>` AS p WHERE NOT p.Body LIKE '%<p>%' AND p.Body LIKE '%<blockquote>%' AND PostTypeId = 1 AND CreationDate > '2018-03-01' LIMIT 50
Questions that are only code.
<table0>[locations] { <col0>[LOCATION_ID]:[decimal] <col1>[STREET_ADDRESS]:[varchar] <col2>[POSTAL_CODE]:[varchar] <col3>[CITY]:[varchar] <col4>[STATE_PROVINCE]:[varchar] <col5>[COUNTRY_ID]:[varchar] } <table1>[regions] { <col0>[REGION_ID]:[decimal] <col1>[REGION_NAME]:[varchar] } <table2>[employees] { <col0>[EMPLOYE...
SELECT JOB_ID, AVG( `<col0>` ) FROM `<table2>` WHERE NOT `<col0>` IN ( SELECT `<col0>` FROM `<table5>` ) GROUP BY `<col6>`
For those employees who did not have any job in the past, draw a bar chart about the distribution of job_id and the average of employee_id , and group by attribute job_id.
<table0>[mzjzjlb] { <col0>[HXPLC]:[number] <col1>[HZXM]:[text] <col2>[JLSJ]:[time] <col3>[JZJSSJ]:[time] <col4>[JZKSBM]:[text] <col5>[JZKSMC]:[text] <col6>[JZKSRQ]:[time] <col7>[JZLSH]:[text] <col8>[JZZDBM]:[text] <col9>[JZZDSM]:[text] <col10>[JZZTDM]:[number] <col11>[JZZTMC]:[text] <col12>[text]:[KLX] <col13>[number]:...
SELECT `<table5>`.MZBMLX, `<table5>`.MZZDBM, `<table5>`.MZZDMC FROM `<table5>` WHERE `<table5>`.JZLSH = '72457081873' UNION SELECT `<table2>`.MZBMLX, `<table2>`.MZZDBM, `<table2>`.MZZDMC FROM `<table2>` WHERE `<table2>`.JZLSH = '72457081873'
查一下住院就诊72457081873门诊的主要诊断名称列表,还有编码的类型和编码列表
<table0>[table_45706] { <col0>[Date]:[text] <col1>[Opponent]:[text] <col2>[Site]:[text] <col3>[Result]:[text] <col4>[Attendance]:[text] }
SELECT "Attendance" FROM `<table0>` WHERE "Result" = 't7-7'
What is the attendance for the t7-7 result?
<table0>[table_name_2] { <col0>[pair]:[VARCHAR] <col1>[dance]:[VARCHAR] <col2>[date]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "cha-cha-cha" AND `<col2>` = "november 18, 2008"
Who danced the Cha-Cha-Cha on November 18, 2008?
<table0>[table_name_57] { <col0>[home_team]:[VARCHAR] }
SELECT `<col0>` AS score FROM `<table0>` WHERE `<col0>` = "north melbourne"
What is the home team's score for north melbourne?
<table0>[astronauts_in_space] { <col0>[INT]:[name] <col1>[VARCHAR]:[launch_date] <col2>[DATE]:[return_date] }
SELECT COUNT( DISTINCT name ) FROM `<table0>` WHERE return_date IS NULL;
What is the maximum number of people in space at the same time?
<table0>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <table1>[prescriptions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[startdate]:[time] <col4>[e...
SELECT t3.drug FROM ( SELECT t2.drug, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT admissions.subject_id, `<table12>`.charttime FROM `<table12>` JOIN admissions ON `<table12>`.hadm_id = admissions.hadm_id WHERE `<table12>`.icd9_code = ( SELECT `<table8>`.icd9_code FROM `<table8>` WHERE `<table8>`...
what are the four most frequent drugs that were prescribed in the same month to the patients aged 20s after they had been diagnosed with atrial fibrillation in this year?
<table0>[CountryRegion] { <col0>[CountryRegionCode]:[text] <col1>[text]:[ModifiedDate] } <table1>[Culture] { <col0>[CultureID]:[text] <col1>[text]:[ModifiedDate] } <table2>[Currency] { <col0>[CurrencyCode]:[text] <col1>[text]:[ModifiedDate] } <table3>[CountryRegionCurrency] { <col0>[CountryRegionCode]:[text] <col1>[...
SELECT T1.ShipToAddressID FROM `<table64>` AS T1 INNER JOIN Address AS T2 ON T1.BillToAddressID = T2.AddressID WHERE T1.SalesOrderID = 43873 GROUP BY T1.ShipToAddressID
What is the shipping address for the sales order "43873"?
<table0>[jobs] { <col0>[JOB_ID]:[varchar] <col1>[JOB_TITLE]:[varchar] <col2>[MIN_SALARY]:[decimal] <col3>[MAX_SALARY]:[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] <col...
SELECT HIRE_DATE, SUM( `<col0>` ) FROM `<table4>` WHERE NOT `<col10>` IN ( SELECT `<col10>` FROM `<table6>` WHERE `<col9>` BETWEEN 100 AND 200 ) ORDER BY SUM( `<col0>` )
For those employees who do not work in departments with managers that have ids between 100 and 200, find hire_date and the sum of employee_id bin hire_date by weekday, and visualize them by a bar chart, rank Y-axis from low to high order.
<table0>[table_name_48] { <col0>[details_of_journey]:[VARCHAR] <col1>[narrator]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "simon hoggart"
Which details of journey had simon hoggart as a narrator?
<table0>[table_name_44] { <col0>[total]:[INTEGER] <col1>[finish]:[VARCHAR] }
SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "t47"
What is the average Total, when Finish is "T47"?
<table0>[table_80303] { <col0>[Year]:[text] <col1>[Winner]:[text] <col2>[Country]:[text] <col3>[Score]:[text] <col4>[Margin]:[text] <col5>[Runner]:[text] }
SELECT "Runner( s )-up" FROM `<table0>` WHERE "Year" = '2008'
Who was the runner-up when the year was 2008?
<table0>[table_name_52] { <col0>[season]:[INTEGER] <col1>[wins]:[VARCHAR] <col2>[races]:[VARCHAR] <col3>[series]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col2>` = "6" AND `<col3>` = "all-japan gt championship" AND `<col1>` = "2"
What is the smallest season with 6 races, 2 wins, and a Series of all-japan gt championship>
<table0>[table_name_62] { <col0>[crowd]:[VARCHAR] <col1>[away_team]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "north melbourne"
How large was the crowd when North Melbourne played as the away team?
<table0>[table_name_22] { <col0>[abbr]:[VARCHAR] <col1>[zodiac_sign]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "capricorn"
What is the abbreviation for the sign of Capricorn?
<table0>[table_name_90] { <col0>[result]:[VARCHAR] <col1>[venue]:[VARCHAR] <col2>[extra]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "melbourne , australia" AND `<col2>` = "200 m"
Venue of melbourne , australia, and a Extra of 200 m has what results?
<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 `<table3>`.subject_id ) FROM `<table3>` INNER JOIN prescriptions ON `<table3>`.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "OU"
provide the number of patients whose drug route is ou?
<table0>[musical] { <col0>[Musical_ID]:[int] <col1>[text]:[Year] <col2>[int]:[Award] <col3>[text]:[Category] <col4>[text]:[Nominee] <col5>[text]:[Result] } <table1>[actor] { <col0>[Actor_ID]:[int] <col1>[text]:[Musical_ID] <col2>[int]:[Character] <col3>[text]:[Duration] <col4>[text]:[age] }
SELECT Nominee, COUNT( * ) FROM `<table0>` GROUP BY Nominee ORDER BY COUNT( * )
Show different nominees and the number of musicals they have been nominated Plot them as bar chart, and list Y-axis in ascending order.
<table0>[table_48830] { <col0>[Rank]:[real] <col1>[Location]:[text] <col2>[2008]:[real] <col3>[2009]:[real] <col4>[2010]:[real] <col5>[2011]:[real] <col6>[2012]:[real] }
SELECT AVG( "2010" ) FROM `<table0>` WHERE "Rank" = '1' AND "2009" > '17,233,000'
Which 2010 has a Rank of 1, and a 2009 larger than 17,233,000?
<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>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <...
SELECT `<table6>`.label FROM `<table6>` WHERE `<table6>`.itemid IN ( SELECT `<table12>`.itemid FROM `<table12>` WHERE `<table12>`.hadm_id IN ( SELECT `<table11>`.hadm_id FROM `<table11>` WHERE `<table11>`.subject_id = 6374 ) AND DATETIME( `<table12>`.charttime ) >= DATETIME( CURRENT_TIME( ), '-34 month' ) ORDER BY `<ta...
what was the first test that was given to patient 6374 since 34 months ago?
<table0>[table_4743] { <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 `<col2>` score" = '12.4 ( 76 )'
What is the home team that played against an away team scoring 12.4 (76)?
<table0>[HaircareProducts] { <col0>[product_id]:[INT] <col1>[product_name]:[VARCHAR] <col2>[255]:[rating] <col3>[INT]:[sales_date] <col4>[DATE]:[country] }
SELECT COUNT( * ) FROM `<table0>` WHERE rating >= 4 AND sales_date >= DATE_SUB( CURRENT_DATE, INTERVAL 1 MONTH ) AND country = 'Germany';
How many haircare products were sold in Germany in the last month that have a rating of 4 or higher?
<table0>[table_73049] { <col0>[Dam]:[GNIS] <col1>[query]:[Link] <col2>[real]:[Lake] <col3>[GNIS]:[query] <col4>[Link]:[real] <col5>[Reservoir]:[GNIS] <col6>[query]:[Link] <col7>[real]:[Borough] <col8>[Census]:[area] <col9>[text]:[Comment] }
SELECT MIN( "# s `<col5>` and `<col3>` `<col1>` Link" ) FROM `<table0>` WHERE "# s Lake and `<col3>` `<col1>` Link" = '60'
Name the minimum number of reservoir for gnis query link where numbers lake gnis query link being 60
<table0>[table_name_53] { <col0>[week]:[INTEGER] <col1>[result]:[VARCHAR] }
SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "l 16–12"
What was the highest week with a result of l 16 12?
<table0>[table_25568] { <col0>[real]:[Player] <col1>[text]:[Position] <col2>[text]:[League] <col3>[real]:[Champions] <col4>[League]:[real] <col5>[Copa]:[del] <col6>[Rey]:[real] <col7>[Total]:[real] }
SELECT "Copa del Rey" FROM `<table0>` WHERE "Position" = 'FB'
If the position is FB, what is the Copa Del Rey?
<table0>[Farm] { <col0>[FarmID]:[int] <col1>[FarmName]:[varchar] <col2>[WaterTemperature]:[numeric] <col3>[numeric]:[INSERT] }
SELECT AVG( `<col2>` ) FROM `<table0>` WHERE pH BETWEEN 7.2 AND 7.5;
What is the average water temperature in farms with a pH level between 7.2 and 7.5?
<table0>[CountryRegion] { <col0>[CountryRegionCode]:[text] <col1>[text]:[ModifiedDate] } <table1>[Culture] { <col0>[CultureID]:[text] <col1>[text]:[ModifiedDate] } <table2>[Currency] { <col0>[CurrencyCode]:[text] <col1>[text]:[ModifiedDate] } <table3>[CountryRegionCurrency] { <col0>[CountryRegionCode]:[text] <col1>[...
SELECT `<col3>` FROM `<table47>` WHERE `<col0>` = 912
What is the price for the product with the id "912"?
<table0>[table_204_442] { <col0>[number]:[institution] <col1>[text]:[location] <col2>[text]:[enrollment] <col3>[number]:[nickname] <col4>[text]:[varsity] <col5>[nsports]:[number] <col6>[rugby]:[nsince] <col7>[text]:[head] <col8>[coach]:[text] }
SELECT "location" FROM `<table0>` WHERE "head coach" = 'jon roberts'
head coach , jon roberts , had his team from where ?
<table0>[table_33421] { <col0>[Lane]:[real] <col1>[Swimmer]:[text] <col2>[Nationality]:[text] <col3>[100]:[real] <col4>[200]:[text] <col5>[300]:[text] <col6>[400]:[text] <col7>[500]:[text] <col8>[600]:[text] <col9>[700]:[text] <col10>[Time]:[text] }
SELECT "200m" FROM `<table0>` WHERE "100m" > '57.34' AND "600m" = '5:54.45'
Which swimmer has a 100m time longer than 57.34 and a 600m of 5:54.45?
<table0>[table_name_68] { <col0>[runner_up]:[VARCHAR] <col1>[location]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "hossegor"
Who was the Runner-up in Hossegor?
<table0>[table_name_36] { <col0>[country]:[VARCHAR] <col1>[year_opened]:[VARCHAR] <col2>[span_feet]:[VARCHAR] <col3>[material]:[VARCHAR] <col4>[span_metres]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col3>` = "concrete" AND `<col4>` < 270 AND `<col2>` > 837 AND `<col1>` = "1943"
Which country's material was concrete when the span metres were less than 270, span feet is more than 837, and the year opened was 1943?
<table0>[table_name_10] { <col0>[directed_by]:[VARCHAR] <col1>[original_airdate]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "february 25, 2001"
Who directed the episode that originally aired on February 25, 2001?
<table0>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[PostTypes] { <col0>[number]:[text] } <table2>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <...
SELECT Id, Title FROM `<table14>` WHERE OwnerUserId = 499 AND LastEditorUserId != 499
my posts edited by someone else.
<table0>[table_name_63] { <col0>[december]:[INTEGER] <col1>[record]:[VARCHAR] <col2>[game]:[VARCHAR] }
SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "7-2-2" AND `<col2>` < 11
What day in December was the game before game 11 with a record of 7-2-2?
<table0>[vehicle_maintenance] { <col0>[facility_location]:[VARCHAR] <col1>[num_vehicles]:[INT] }
SELECT SUM( `<col1>` ) FROM `<table0>` WHERE `<col0>` = 'West End';
What is the total number of vehicles maintained in the 'West End' facility?
<table0>[table_33208] { <col0>[Week]:[real] <col1>[Date]:[text] <col2>[Opponent]:[text] <col3>[Result]:[text] <col4>[Stadium]:[text] <col5>[Record]:[text] <col6>[Attendance]:[real] }
SELECT "Result" FROM `<table0>` WHERE "Stadium" = 'rich stadium'
What was the score of the game at RIch Stadium?
<table0>[rental] { <col0>[rental_id]:[number] <col1>[rental_date]:[time] <col2>[inventory_id]:[number] <col3>[customer_id]:[number] <col4>[return_date]:[time] <col5>[staff_id]:[number] <col6>[last_update]:[time] } <table1>[language] { <col0>[language_id]:[number] <col1>[name]:[text] <col2>[last_update]:[time] } <tabl...
SELECT `<col1>` FROM `<table9>` WHERE `<col11>` LIKE '%Deleted Scenes%'
Return the titles of films that include 'Deleted Scenes' in their special feature section.
<table0>[table_29470] { <col0>[Team]:[text] <col1>[Head]:[coach] <col2>[text]:[Team] <col3>[captain]:[text] <col4>[Kit]:[maker] <col5>[text]:[Shirt] <col6>[sponsor]:[text] <col7>[Past]:[Season] }
SELECT "Shirt sponsor" FROM `<table0>` WHERE "Kit maker" = 'Merooj' AND "Team captain" = 'Pejman Nouri'
What sponsor has merooj kit maker and captain Pejman Nouri?
<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 `<table4>`.subject_id ) FROM `<table4>` WHERE `<table4>`.gender = "M" AND `<table4>`.days_stay > "7"
how many patients whose gender is m and days of hospital stay is greater than 7?
<table0>[table_name_92] { <col0>[college]:[VARCHAR] <col1>[pick]:[INTEGER] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` < 5
Which college had a pick of under 5?
<table0>[venue] { <col0>[venueid]:[int] <col1>[venuename]:[varchar] } <table1>[author] { <col0>[authorid]:[int] <col1>[authorname]:[varchar] } <table2>[paperdataset] { <col0>[paperid]:[int] <col1>[datasetid]:[int] } <table3>[cite] { <col0>[citingpaperid]:[int] <col1>[citedpaperid]:[int] } <table4>[paperfield] { <co...
SELECT DISTINCT paper.paperid FROM dataset, keyphrase, paper, paperdataset, paperkeyphrase, venue WHERE dataset.datasetname = 'Jeopardy! Questions' AND keyphrase.keyphrasename = 'Parsing' AND paperdataset.datasetid = dataset.datasetid AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paperkeyphrase.paperid = p...
papers about Parsing that used Jeopardy! Questions and were published at ACL 2014