schema
stringlengths
20
14.6k
query
stringlengths
17
2.58k
question
stringlengths
8
1.06k
<table0>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table1>[food_service] { <col0>[meal_code]:[text] <col1>[meal_number]:[int] <col2>[compartment]:[text] <col3>[meal_description]:[varchar] } <table2>[f...
SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'DALLAS' AND ground_service.city_code = city.city_code
i need ground transportation in DALLAS please show me what 's available
<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>` WHERE `<table1>`.insurance = "Medicaid" AND `<table1>`.diagnosis = "LIVER TRANSPLANT"
how many patients with medicaid insurance had liver transplant?
<table0>[table_47715] { <col0>[Res]:[text] <col1>[Record]:[text] <col2>[Opponent]:[text] <col3>[Method]:[text] <col4>[Event]:[text] <col5>[Round]:[text] <col6>[Time]:[text] <col7>[Location]:[text] }
SELECT "Round" FROM `<table0>` WHERE "Time" = '3:01'
Which round has a time of 3:01?
<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>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text]...
SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN prescriptions ON `<table1>`.hadm_id = prescriptions.hadm_id WHERE `<table1>`.admission_type = "URGENT" AND prescriptions.drug_type = "MAIN"
give me the number of patients whose admission type is urgent and drug type is main?
<table0>[requirement] { <col0>[requirement_id]:[int] } <table1>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table2>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table3>[gsi] { <col0>[course_offering_id]...
SELECT DISTINCT `<col12>` FROM `<table14>` WHERE `<col2>` = 'EECS' AND `<col3>` = 545
Is there a project in class 545 ?
<table0>[building_projects] { <col0>[INT]:[name] <col1>[TEXT]:[state] <col2>[TEXT]:[is_sustainable] } <table1>[project_costs] { <col0>[INT]:[project_id] <col1>[INT]:[cost] <col2>[INT]:[INSERT] <col3>[building_projects]:[name] <col4>[state]:[is_sustainable] <col5>[VALUES]:[Eco] <col6>[Tower]:[Oregon] <col7>[true]:[INSE...
SELECT SUM( cost ) FROM `<table1>` JOIN `<col3>` ON `<table1>`.project_id = building_projects.id WHERE building_projects.state = 'Oregon' AND building_projects.is_sustainable = true;
What is the total cost of sustainable building projects in Oregon?
<table0>[menus] { <col0>[menu_category]:[VARCHAR] <col1>[avg_price]:[DECIMAL] }
SELECT menu_category, AVG( `<col1>` ) FROM `<table0>` GROUP BY `<col0>` ORDER BY AVG( `<col1>` ) DESC LIMIT 1;
Which menu category has the highest average price?
<table0>[competition_result] { <col0>[Competition_ID]:[int] <col1>[Club_ID_1]:[int] <col2>[Club_ID_2]:[int] <col3>[Score]:[text] } <table1>[club] { <col0>[Club_ID]:[int] <col1>[name]:[text] <col2>[Region]:[text] <col3>[Start_year]:[text] } <table2>[club_rank] { <col0>[Rank]:[real] <col1>[Club_ID]:[int] <col2>[Gold]:[...
SELECT Competition_type, COUNT( * ) FROM `<table4>` GROUP BY `<col2>` ORDER BY COUNT( * ) DESC
List the types of competition and the number of competitions of each type Visualize by bar chart, and I want to order the total number from high to low order.
<table0>[area] { <col0>[course_id]:[int] } <table1>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table2>[jobs] { <col0>[job_id]:[int] <col1>[job_title]:[varchar] <col2>[description]:[varchar] <col3>[requirement]:[varchar] <col4>[city]:[varchar] <col5>[state]:[varchar]...
SELECT COUNT( * ) = 0 FROM `<table9>` INNER JOIN `<table9>`_offering ON `<table9>`.`<table9>`_id = `<table9>`_offering.`<table9>`_id INNER JOIN semester ON semester.semester_id = `<table9>`_offering.semester WHERE ( `<table9>`.number = 431 OR `<table9>`.number = 823 ) AND `<table9>`_offering.end_time > '17:00:00' AND s...
Will I be finished with my classes for the day by 5:00 P.M. if I take 431 and 823 ?
<table0>[table_name_27] { <col0>[date]:[VARCHAR] <col1>[away_team]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "north melbourne"
What date did the Away team, North Melbourne, play Geelong?
<table0>[member] { <col0>[VARCHAR]:[College_ID] } <table1>[college] { <col0>[College_Location]:[VARCHAR] <col1>[College_ID]:[VARCHAR] }
SELECT T2.Name, T1.College_Location FROM `<table1>` AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID ORDER BY T2.Name
Show the names of members and the locations of colleges they go to in ascending alphabetical order of member names.
<table0>[table_name_49] { <col0>[captain]:[VARCHAR] <col1>[team]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "norwich city"
What is the name of the captain for team Norwich City?
<table0>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <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] } <ta...
SELECT DISTINCT flight.flight_id FROM `<table6>` AS AIRPORT_SERVICE_0, `<table6>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight.arrival_time <= 1200 AND flight.to_airport = AIRPORT_SERVICE_1.airport_code ) ...
i'd like to see flights from BALTIMORE to ATLANTA that arrive before 1200
<table0>[Sustainable_Ratings] { <col0>[INT]:[property_id] <col1>[INT]:[sustainable_rating] <col2>[INT]:[CREATE] <col3>[VIEW]:[High_Sustainable_Properties] <col4>[SELECT]:[property_id] <col5>[address]:[sustainable_rating] }
SELECT hsp.address, AVG( p.price ) as avg_price FROM High_Sustainable_Properties hsp JOIN Property p ON hsp.property_id = p.id GROUP BY hsp.address;
What is the average price of properties with a sustainable rating above 70 in each city?
<table0>[table_24399615_10] { <col0>[episode_no]:[VARCHAR] <col1>[bbc_three_weekly_ranking]:[VARCHAR] <col2>[cable_rank]:[VARCHAR] }
SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "N/A" AND `<col2>` = "N/A"
Which episode had bbc ranking and canle ranking of n/a?
<table0>[vessels] { <col0>[INT]:[name] <col1>[VARCHAR]:[flag_state] <col2>[VARCHAR]:[INSERT] } <table1>[transactions] { <col0>[INT]:[vessel_id] <col1>[INT]:[port_id] <col2>[INT]:[timestamp] <col3>[TIMESTAMP]:[INSERT] }
SELECT t.id, v.name as vessel_name, t.port_id, t.timestamp FROM `<table1>` t JOIN vessels v ON t.vessel_id = v.id WHERE v.flag_state = 'India';
List all cargo handling transactions and related vessel information for vessels from India.
<table0>[volunteers] { <col0>[INT]:[name] <col1>[TEXT]:[volunteer_hours] }
SELECT COUNT( * ) FROM volunteers;
How many volunteers are there in 'volunteers' table?
<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>` INNER JOIN lab ON `<table4>`.hadm_id = lab.hadm_id WHERE `<table4>`.admityear < "2124" AND lab."CATEGORY" = "Hematology"
count the number of patients who were admitted before 2124 and had hematology lab test category.
<table0>[jybgb] { <col0>[BBCJBW]:[text] <col1>[BBDM]:[text] <col2>[BBMC]:[text] <col3>[BBZT]:[number] <col4>[BGDH]:[text] <col5>[BGJGDM]:[text] <col6>[BGJGMC]:[text] <col7>[BGRGH]:[text] <col8>[BGRQ]:[time] <col9>[BGRXM]:[text] <col10>[BGSJ]:[time] <col11>[CJRQ]:[time] <col12>[JSBBRQSJ]:[time] <col13>[JSBBSJ]:[time] <c...
SELECT COUNT( * ) FROM `<table1>` JOIN hz_info JOIN mzjzjlb ON `<table1>`.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE `<table1>`.XM = '袁雅云' AND mzjzjlb.JZKSRQ BETWEEN '2001-04-21' AND '2019-08-21' AND mzjzjlb.YLJGDM = '3211067'
从01年4月21日至2019年8月21日之内袁雅云患者在医疗机构3211067的门诊共就诊的次数是多少?
<table0>[production] { <col0>[INT]:[element] <col1>[VARCHAR]:[year] <col2>[INT]:[quantity] <col3>[INT]:[INSERT] }
DELETE FROM `<table0>` WHERE element = 'dysprosium' AND year < 2019;
Delete records of dysprosium magnet production from the table 'production' before 2019
<table0>[rural_projects] { <col0>[INT]:[name] <col1>[VARCHAR]:[100] <col2>[country]:[VARCHAR] <col3>[investment]:[FLOAT] } <table1>[agri_innovations] { <col0>[INT]:[project_id] <col1>[INT]:[type] <col2>[VARCHAR]:[cost] <col3>[FLOAT]:[INSERT] }
SELECT AVG( a.cost ) FROM `<table1>` a JOIN rural_projects r ON a.project_id = r.id WHERE r.country LIKE 'Africa%';
What is the average agricultural innovation investment per rural infrastructure project in Africa?
<table0>[table_name_48] { <col0>[voice_actor__harmony_gold_ova_dub]:[VARCHAR] <col1>[japanese_voice_actor]:[VARCHAR] }
SELECT voice_actor__harmony_gold_ova_dub_ FROM `<table0>` WHERE `<col1>` = "yoku shioya"
Who is the voice actor of the character with the Japanese voice actor Yoku Shioya?
<table0>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table1>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <table2>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <tab...
SELECT DISTINCT ground_service.transport_type FROM airport, airport_service, city, ground_service WHERE airport.airport_code = airport_service.airport_code AND city.city_code = airport_service.city_code AND city.city_name = 'WESTCHESTER COUNTY' AND ground_service.airport_code = airport.airport_code
show me the ground transportation to WESTCHESTER COUNTY
<table0>[table_name_35] { <col0>[player]:[VARCHAR] <col1>[score]:[VARCHAR] <col2>[country]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 68 AND `<col2>` = "canada"
Which player has 68 as the score and canada as the country?
<table0>[conditions] { <col0>[condition_id]:[INT] <col1>[condition]:[VARCHAR] } <table1>[patients] { <col0>[patient_id]:[INT] <col1>[condition_id]:[INT] <col2>[country]:[VARCHAR] }
SELECT DISTINCT `<table0>`.condition FROM `<table0>` INNER JOIN patients ON `<table0>`.condition_id = patients.condition_id WHERE patients.country = 'India';
List of unique mental health conditions treated in India.
<table0>[table_27914] { <col0>[Settlement]:[text] <col1>[Cyrillic]:[Names] <col2>[text]:[Type] <col3>[text]:[Population] <col4>[2011]:[real] <col5>[Largest]:[ethnic] <col6>[group]:[2002] <col7>[text]:[Dominant] <col8>[religion]:[2002] }
SELECT "Type" FROM `<table0>` WHERE "Cyrillic Name Other Names" = 'Футог'
What type of settlement is ?
<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>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[...
SELECT COUNT( DISTINCT `<table13>`.subject_id ) FROM `<table13>` WHERE DATETIME( `<table13>`.admittime, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-0 year' )
calculate the number of patients who were admitted to hospital during this year.
<table0>[table_1817879_2] { <col0>[number_of_new_stations]:[VARCHAR] <col1>[length__miles]:[VARCHAR] }
SELECT COUNT( _number_of_new_stations ) FROM `<table0>` WHERE length__miles_ = "6.0"
How many new stations have a lenght (miles) of 6.0?
<table0>[table_name_96] { <col0>[country]:[VARCHAR] <col1>[player]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "hale irwin"
What is Country, when Player is 'Hale Irwin'?
<table0>[drug_approval] { <col0>[region]:[varchar] <col1>[year]:[int] <col2>[drug]:[varchar] }
SELECT DISTINCT `<col2>` FROM `<table0>` WHERE `<col0>` = 'RegionY' AND `<col1>` = 2018;
Which drugs were approved in 'RegionY' in 2018?
<table0>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table1>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text]...
SELECT COUNT( * ) > 0 FROM `<table9>` WHERE `<table9>`.`<table3>`unitstayid IN ( SELECT `<table3>`.`<table3>`unitstayid FROM `<table3>` WHERE `<table3>`.`<table3>`healthsystemstayid IN ( SELECT `<table3>`.`<table3>`healthsystemstayid FROM `<table3>` WHERE `<table3>`.uniquepid = '016-38131' ) ) AND `<table9>`.cellpath L...
today, did patient 016-38131 have any bulb #2 output?
<table0>[InfectiousDiseases] { <col0>[INT]:[Disease] <col1>[TEXT]:[Region] <col2>[TEXT]:[Date] <col3>[DATE]:[INSERT] }
DELETE FROM `<table0>` WHERE Region = 'Region C';
Delete all records of infectious diseases reported in Region C.
<table0>[restorative_justice] { <col0>[INT]:[country] <col1>[VARCHAR]:[255] <col2>[program]:[VARCHAR] <col3>[255]:[INSERT] } <table1>[legal_tech] { <col0>[INT]:[country] <col1>[VARCHAR]:[255] <col2>[initiative]:[VARCHAR] <col3>[255]:[INSERT] }
SELECT COUNT( * ) FROM ( SELECT * FROM `<table0>` UNION SELECT * FROM `<table1>` ) AS total_programs;
What is the total number of restorative justice programs and legal technology initiatives in the US and Canada?
<table0>[table_204_870] { <col0>[number]:[product] <col1>[text]:[main] <col2>[functionality]:[text] <col3>[input]:[format] <col4>[text]:[output] <col5>[format]:[text] <col6>[platform]:[text] <col7>[license]:[cost] <col8>[text]:[notes] }
SELECT "input format", "output format" FROM `<table0>` WHERE "product" = 'allegrograph'
what is the only input/output format for allegrograph ?
<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 procedures ON `<table1>`.hadm_id = procedures.hadm_id WHERE `<table1>`.admission_type = "ELECTIVE" AND procedures.long_title = "Fiber-optic bronchoscopy"
what is the number of patients whose admission type is elective and procedure long title is fiber-optic bronchoscopy?
<table0>[table_name_63] { <col0>[venue]:[VARCHAR] <col1>[year]:[VARCHAR] <col2>[result]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 2005 AND `<col2>` = "8th"
What is Venue, when Year is 2005, and when Result is 8th?
<table0>[table_66792] { <col0>[Date]:[text] <col1>[Opponent]:[text] <col2>[Score]:[text] <col3>[Loss]:[text] <col4>[Attendance]:[real] <col5>[Record]:[text] }
SELECT "Record" FROM `<table0>` WHERE "Attendance" > '39,980' AND "Date" = 'july 26'
What is the record that has an attendance greater than 39,980 with july 26 as the date?
<table0>[marine_species] { <col0>[INT]:[name] <col1>[VARCHAR]:[population] }
INSERT INTO marine_species ( name, population ) VALUES ( 'Oceanic Whitetip Shark', 1200 );
Insert a new record in the marine_species table for a species named 'Oceanic Whitetip Shark' with a population of 1200
<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 procedures ON `<table1>`.hadm_id = procedures.hadm_id WHERE `<table1>`.marital_status = "SINGLE" AND procedures.long_title = "Single internal mammary-coronary artery bypass"
how many single patients had the procedure long title single internal mammary-coronary artery bypass?
<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 `<table4>`.dischtime FROM `<table4>` WHERE `<table4>`.name = "Stephanie Suchan"
what is discharge time of subject name stephanie suchan?
<table0>[table_1385] { <col0>[Year]:[real] <col1>[January]:[text] <col2>[February]:[text] <col3>[March]:[text] <col4>[April]:[text] <col5>[text]:[June] <col6>[text]:[July] <col7>[text]:[August] <col8>[text]:[September] <col9>[text]:[October] <col10>[text]:[November] <col11>[text]:[December] <col12>[text]:[Annual] <col1...
SELECT "December" FROM `<table0>` WHERE "January" = '8.77'
What December is 8.77 in January
<table0>[safety_scores] { <col0>[INT]:[vehicle] <col1>[VARCHAR]:[VARCHAR] <col2>[country]:[VARCHAR] <col3>[score]:[INT] }
SELECT * FROM `<table0>` WHERE `<col2>` = 'Japan';
Show safety testing scores for vehicles manufactured in Japan
<table0>[table_name_39] { <col0>[internet_explorer]:[VARCHAR] <col1>[firefox]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "27.85%"
What percentage of browsers were using Internet Explorer during the period in which 27.85% were using Firefox?
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[lab...
SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` WHERE `<table4>`.language = "SPAN" AND `<table4>`.age < "76"
provide the number of patients aged below 76 years whose language is spanish.
<table0>[mangrove_forests] { <col0>[INT]:[region] <col1>[VARCHAR]:[name] <col2>[VARCHAR]:[area_sqkm] <col3>[FLOAT]:[INSERT] }
SELECT region, SUM( area_sqkm ) FROM `<table0>` GROUP BY region;
What is the total area covered by mangrove forests in each region?
<table0>[student] { <col0>[student_id]:[int] <col1>[lastname]:[varchar] <col2>[firstname]:[varchar] <col3>[program_id]:[int] <col4>[declare_major]:[varchar] <col5>[total_credit]:[int] <col6>[total_gpa]:[float] <col7>[entered_as]:[varchar] <col8>[admit_term]:[int] <col9>[predicted_graduation_semester]:[int] <col10>[degr...
SELECT DISTINCT course.department, course.name, course.number FROM course, program, program_course WHERE course.department <> 'NAVSCI' AND program_course.course_id = course.course_id AND program.program_id = program_course.program_id
Are there any courses required for the major that are not in the NAVSCI department ?
<table0>[table_62308] { <col0>[Season]:[real] <col1>[Team]:[text] <col2>[Country]:[text] <col3>[League]:[text] <col4>[Level]:[real] <col5>[Apps]:[real] <col6>[Goals]:[real] }
SELECT SUM( "Level" ) FROM `<table0>` WHERE "Apps" = '27' AND "Season" > '2006'
What is the total Level with 27 Apps after 2006?
<table0>[table_name_75] { <col0>[number]:[INTEGER] <col1>[song_title]:[VARCHAR] }
SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "o sudha"
What is the average number for the song 'O Sudha'?
<table0>[EventAttendance] { <col0>[event_id]:[INT] <col1>[attendance]:[INT] <col2>[free_admission]:[BOOLEAN] }
SELECT SUM( `<col1>` ) AS total_attendance FROM `<table0>` WHERE `<col2>` = true AND `<col0>` IN ( SELECT `<col0>` FROM Events WHERE event_date BETWEEN '2022-01-01' AND '2022-06-30' );
What was the total attendance for events with free admission in H1 2022?
<table0>[sales] { <col0>[INT]:[dispensary_name] <col1>[TEXT]:[state] <col2>[TEXT]:[revenue] <col3>[INT]:[date] <col4>[DATE]:[INSERT] }
SELECT SUM( revenue ) FROM `<table0>` WHERE state = 'California' AND date BETWEEN '2021-01-01' AND '2021-12-31';
What was the total revenue for the state of California in 2021?
<table0>[artists] { <col0>[INT]:[name] <col1>[VARCHAR]:[country] <col2>[VARCHAR]:[INSERT] }
SELECT name FROM `<table0>` WHERE country IN ( 'Nigeria', 'South Africa' );
Which artists are from Africa?
<table0>[donors] { <col0>[donor_id]:[INT] <col1>[donor_name]:[VARCHAR] <col2>[255]:[donation_date] <col3>[DATE]:[cause] <col4>[VARCHAR]:[255] }
SELECT cause, COUNT( DISTINCT `<col0>` ) AS num_unique_`<table0>` FROM `<table0>` WHERE donation_date BETWEEN '2022-01-01' AND '2022-06-30' GROUP BY cause;
How many unique donors contributed to each cause in H1 2022?
<table0>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table1>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table2>[labevents] { <col0>[row_id]:[number] <co...
SELECT `<table15>`.short_title FROM `<table15>` WHERE `<table15>`.icd9_code IN ( SELECT t1.icd9_code FROM ( SELECT `<table11>`.icd9_code, COUNT( `<table11>`.charttime ) AS c1 FROM `<table11>` WHERE `<table11>`.hadm_id IN ( SELECT `<table12>`.hadm_id FROM `<table12>` WHERE `<table12>`.subject_id = 61003 ) AND DATETIME( ...
what is the name of the procedure that has been done two or more times in 01/last year to patient 61003?
<table0>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table1>[VoteTypes] { <col0>[number]:[text] } <table2>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionD...
SELECT COUNT( * ) AS Total`<table6>` FROM `<table6>` WHERE LOWER( Location ) LIKE LOWER( '%##NombrePais##%' )
Total Users Of A Especific Country.
<table0>[Donations] { <col0>[INT]:[name] <col1>[TEXT]:[region] <col2>[TEXT]:[donation] <col3>[FLOAT]:[INSERT] }
SELECT AVG( donation ) FROM `<table0>` WHERE region = 'East Coast';
What is the average donation amount in the 'East Coast' region?
<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 t.TagName, t2.TagName FROM `<table2>` AS t, `<table2>` AS t2 WHERE t.TagName = REPLACE( t2.TagName, '.', '' ) AND t.Id != t2.Id
find tags with tag dot tag not dot.
<table0>[table_51142] { <col0>[2004]:[text] <col1>[2007]:[text] <col2>[2010]:[text] <col3>[2011]:[text] <col4>[2012]:[text] }
SELECT "2012/ 13" FROM `<table0>` WHERE "2011/ 12" = 'non-ranking'
What is the 2012/ 13 when the 2011/ 12 is non-ranking?
<table0>[borders] { <col0>[Country1]:[text] <col1>[Country2]:[text] <col2>[Length]:[real] } <table1>[city] { <col0>[text]:[Country] <col1>[text]:[Province] <col2>[text]:[Population] <col3>[integer]:[Longitude] <col4>[real]:[Latitude] } <table2>[continent] { <col0>[text]:[Area] } <table3>[country] { <col0>[text]:[Cod...
SELECT CAST( T1.Population AS REAL ) * 100 / T2.Population FROM `<table1>` AS T1 INNER JOIN province AS T2 ON T1.Province = T2.Name WHERE T1.Name = 'Edmonton'
Calculate the percentage of population in Edmonton city to the population of its province.
<table0>[txmzjzjlb] { <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>[numb...
SELECT `<table0>`.JZKSRQ FROM `<table0>` WHERE `<table0>`.JZLSH = '45399366381' UNION SELECT f`<table0>`.JZKSRQ FROM f`<table0>` WHERE f`<table0>`.JZLSH = '45399366381'
能提供出门诊就诊45399366381的日期是多少吗?
<table0>[military_innovation_spending] { <col0>[spending_id]:[INT] <col1>[country]:[VARCHAR] <col2>[year]:[INT] <col3>[spending]:[INT] }
SELECT mi.country, YEAR( mi.year ), SUM( mi.spending ) as total_spending FROM `<table0>` mi GROUP BY mi.country, YEAR( mi.year );
What is the total spending on military innovation by country and year?
<table0>[table_203_88] { <col0>[number]:[language] <col1>[text]:[number] <col2>[number]:[percentage] <col3>[number]:[males] <col4>[number]:[females] }
SELECT "language" FROM `<table0>` WHERE "language" <> 'polish' ORDER BY "percentage ( % )" DESC LIMIT 1
what is the highest percentage of speakers other than polish ?
<table0>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <table1>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[itemid]:[...
SELECT t3.drug FROM ( SELECT t2.drug, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT admissions.subject_id, `<table15>`.charttime, admissions.hadm_id FROM `<table15>` JOIN admissions ON `<table15>`.hadm_id = admissions.hadm_id WHERE `<table15>`.icd9_code = ( SELECT `<table4>`.icd9_code FROM `<table...
since 2105 what are the five most frequent medications prescribed during the same hospital visit to female patients of age 50s after they have been diagnosed with tobacco use disorder?
<table0>[site_visits] { <col0>[site_id]:[INT] <col1>[site_name]:[VARCHAR] <col2>[255]:[country] <col3>[VARCHAR]:[255] <col4>[visits]:[INT] }
SELECT site_name, `<col4>` FROM `<table0>` WHERE country = 'Spain' ORDER BY `<col4>` DESC LIMIT 3;
List the names and number of visits for the top 3 most visited cultural heritage sites in Spain.
<table0>[table_39751] { <col0>[Office]:[text] <col1>[Democratic]:[ticket] <col2>[text]:[Republican] <col3>[ticket]:[text] <col4>[Socialist]:[ticket] <col5>[text]:[Workers] <col6>[ticket]:[text] }
SELECT "Democratic ticket" FROM `<table0>` WHERE "Workers ticket" = 'franklin p. brill'
What is the name on the Democratic ticket when the Workers ticket is franklin p. brill?
<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 Id AS "post_link", 'owneruserid' AS "user_link" FROM `<table13>` WHERE OwnerUserId = '##UserId##' AND Body LIKE '%##text##%' COLLATE sql_latin1_general_cp1_ci_as AND PostTypeId = 2
Resposta por usu rio e conte do.
<table0>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table1>[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] } <table2>[labevents] { <col0>[row_id...
SELECT COUNT( DISTINCT `<table16>`.hadm_id ) FROM `<table16>` WHERE `<table16>`.subject_id = 12572 AND DATETIME( `<table16>`.admittime, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-1 year' )
how many times have patient 12572 been in the hospital a year before?
<table0>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModer...
SELECT Score, COUNT( Score ) AS "count" FROM `<table13>` WHERE AnswerCount IS NULL GROUP BY Score ORDER BY Score DESC
Answer Score Frequency (whole site).
<table0>[table_51160] { <col0>[Actor]:[text] <col1>[Character]:[text] <col2>[Title]:[Rank] <col3>[text]:[Series] <col4>[text]:[Years] }
SELECT "Series" FROM `<table0>` WHERE "Title/Rank" = 'various'
What series had the title rank of various?
<table0>[country] { <col0>[integer]:[country_name] } <table1>[ranking_system] { <col0>[integer]:[system_name] } <table2>[ranking_criteria] { <col0>[integer]:[ranking_system_id] <col1>[integer]:[criteria_name] } <table3>[university] { <col0>[integer]:[country_id] <col1>[integer]:[university_name] } <table4>[universi...
SELECT SUM( T1.num_students ) - SUM( CAST( T1.num_students * T1.pct_international_students AS REAL ) / 100 ) FROM `<table5>` AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Harvard University' AND T1.year BETWEEN 2011 AND 2012
What is the difference in overall student enrollment and international student enrollment at the Harvard university from 2011 to 2012?
<table0>[CREATE] { <col0>[SCHEMA]:[exists] } <table1>[exists] { <col0>[funding_data]:[startups] <col1>[INT]:[PRIMARY] <col2>[KEY]:[name] <col3>[VARCHAR]:[255] <col4>[country]:[VARCHAR] <col5>[255]:[year] <col6>[INT]:[funding] <col7>[DECIMAL]:[INSERT] <col8>[funding_data]:[startups] <col9>[name]:[country] <col10>[year]...
SELECT name, funding, NTILE( 4 ) OVER ( ORDER BY funding DESC ) AS quartile FROM funding_data.startups;
What is the total funding per biotech startup and their corresponding quartile, ordered by total funding?
<table0>[delivery] { <col0>[route]:[VARCHAR] <col1>[delivery_time]:[INT] }
SELECT route, MIN( `<table0>`_time ) FROM `<table0>` GROUP BY route;
What is the minimum delivery time for each route in the delivery database?
<table0>[table_name_78] { <col0>[opponent]:[VARCHAR] <col1>[round]:[VARCHAR] <col2>[event]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` > 4 AND `<col2>` = "draka v"
Which Opponent has a Round larger than 4 and the Event, Draka V?
<table0>[table_51852] { <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 "Away team" FROM `<table0>` WHERE "Home `<col2>` score" = '12.10 ( 82 )'
Which away team has a home team score of 12.10 (82)?
<table0>[event] { <col0>[Event_ID]:[int] <col1>[Date]:[text] <col2>[Venue]:[text] <col3>[text]:[Event_Attendance] } <table1>[journalist] { <col0>[journalist_ID]:[int] <col1>[text]:[Nationality] <col2>[text]:[Age] <col3>[text]:[Years_working] } <table2>[news_report] { <col0>[journalist_ID]:[int] <col1>[Event_ID]:[int]...
SELECT Nationality, COUNT( * ) FROM `<table1>` GROUP BY Nationality ORDER BY Nationality
Show the different nationalities and the number of journalists of each nationality Visualize by bar chart, and I want to order x-axis from low to high order.
<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 COUNT( T2.country_id ) FROM `<table4>` AS T1 INNER JOIN country AS T2 ON T2.country_id = T1.country_id WHERE T2.country_name = 'Philippines'
How many addresses are from the Philippines?
<table0>[table_45288] { <col0>[Rank]:[text] <col1>[Nation]:[text] <col2>[Gold]:[real] <col3>[Silver]:[real] <col4>[Bronze]:[real] <col5>[Total]:[real] }
SELECT COUNT( "Total" ) FROM `<table0>` WHERE "Bronze" > '13' AND "Rank" = '8' AND "Silver" < '11'
How many Total(s) are there, when the number of Bronze is greater than 13, when the Rank is 8, and when the number of Silver is less than 11?
<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>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[te...
SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN diagnoses ON `<table4>`.hadm_id = diagnoses.hadm_id WHERE `<table4>`.dod_year <= "2183.0" AND diagnoses.long_title = "Cerebral thrombosis with cerebral infarction"
provide the number of patients whose year of death is less than or equal to 2183 and diagnoses long title is cerebral thrombosis with cerebral infarction?
<table0>[table_name_82] { <col0>[record]:[VARCHAR] <col1>[attendance]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "31,467"
What was the Indians' record during the game that had 31,467 in attendance?
<table0>[location] { <col0>[locationID]:[integer] <col1>[locationcity]:[text] <col2>[address]:[text] <col3>[state]:[text] <col4>[zipcode]:[integer] <col5>[officephone]:[text] } <table1>[position] { <col0>[positionID]:[integer] <col1>[positiontitle]:[text] <col2>[educationrequired]:[text] <col3>[minsalary]:[text] <col4...
SELECT AVG( CAST( REPLACE( SUBSTR( T1.salary, 4 ), ',', '' ) AS REAL ) ) FROM `<table2>` AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.performance = 'Poor' AND T2.positiontitle = 'Manager'
What is the average salary of the worst performing managers?
<table0>[table_name_56] { <col0>[primary_conference]:[VARCHAR] <col1>[ihsaa_football_class]:[VARCHAR] <col2>[school]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "a" AND `<col2>` = "south decatur"
What is the primary conference with a IHSAA Football Class of A, at South Decatur school?
<table0>[table_17625876_1] { <col0>[original_air_date]:[VARCHAR] <col1>[no_in_season]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 1
Name the original air date for number in season being 1
<table0>[table_79164] { <col0>[Year]:[real] <col1>[Date]:[text] <col2>[Home]:[Team] <col3>[text]:[Result] <col4>[text]:[Visiting] <col5>[Team]:[text] <col6>[Venue]:[text] <col7>[Attendance]:[real] }
SELECT "Home Team" FROM `<table0>` WHERE "Visiting Team" = 'san francisco 49ers' AND "Attendance" > '45,532' AND "Date" = 'september 30'
When the san francisco 49ers are visiting with an attendance of more than 45,532 on September 30, who was the home team?
<table0>[table_203_562] { <col0>[number]:[state] <col1>[text]:[candidates] <col2>[number]:[elected] <col3>[number]:[total] <col4>[seats]:[assembly] <col5>[number]:[year] <col6>[election]:[number] }
SELECT "state" FROM `<table0>` WHERE "no. of elected" = 17
who elected 17 ?
<table0>[table_name_62] { <col0>[tournament]:[VARCHAR] <col1>[score]:[VARCHAR] <col2>[date]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "w/o" AND `<col2>` = "november 5, 2007"
What is the tournament with a w/o score on November 5, 2007?
<table0>[table_name_1] { <col0>[series]:[VARCHAR] <col1>[release_date]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "1946-01-05"
What is the Series of the Filmography with Release date of 1946-01-05?
<table0>[table_13498403_1] { <col0>[barrier]:[INTEGER] <col1>[trainer]:[VARCHAR] }
SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Daniel Morton"
How old is Daniel Morton
<table0>[cargo_ships] { <col0>[INT]:[name] <col1>[VARCHAR]:[capacity] <col2>[INT]:[owner_id] <col3>[INT]:[INSERT] }
UPDATE cargo_ships SET capacity = 175000 WHERE name = 'Sea Titan';
Update the capacity of the cargo ship named 'Sea Titan' to 175,000.
<table0>[flight] { <col0>[flno]:[number] <col1>[origin]:[varchar2] <col2>[destination]:[varchar2] <col3>[distance]:[number] <col4>[departure_date]:[date] <col5>[arrival_date]:[date] <col6>[price]:[number] <col7>[aid]:[number] } <table1>[employee] { <col0>[eid]:[number] <col1>[name]:[varchar2] <col2>[salary]:[number] ...
SELECT name, COUNT( * ) FROM `<table0>` AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid ORDER BY name
Display a bar chart for what is the name of each aircraft and how many flights does each one complete?, show in asc by the names.
<table0>[table_20963074_1] { <col0>[year__ceremony]:[VARCHAR] <col1>[original_title]:[VARCHAR] }
SELECT year__ceremony_ FROM `<table0>` WHERE `<col1>` = "Reportaje a la muerte"
Name the year for reportaje a la muerte
<table0>[table_name_39] { <col0>[enrollment]:[VARCHAR] <col1>[ihsaa_class]:[VARCHAR] <col2>[mascot]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "a" AND `<col2>` = "vikings"
What is the enrollment at the school with IHSAA class A and where mascot is the Vikings?
<table0>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug...
SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` INNER JOIN diagnoses ON `<table2>`.hadm_id = diagnoses.hadm_id INNER JOIN lab ON `<table2>`.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "87340" AND lab.flag = "delta"
what is the number of patients whose diagnoses icd9 code is 87340 and lab test abnormal status is delta?
<table0>[table_1571238_2] { <col0>[fourth_place]:[VARCHAR] <col1>[team]:[VARCHAR] }
SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Colgate"
When colgate is the team how many times did they place fourth?
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type...
SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN diagnoses ON `<table3>`.hadm_id = diagnoses.hadm_id INNER JOIN lab ON `<table3>`.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Anemia in chronic kidney disease" AND lab.flag = "delta"
count the number of patients whose diagnoses long title is anemia in chronic kidney disease and lab test abnormal status is delta?
<table0>[table_name_80] { <col0>[venue]:[VARCHAR] <col1>[competition]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "euro 2012 qualifier"
Which venue held the Euro 2012 Qualifier?
<table0>[table_name_1] { <col0>[winning_team]:[VARCHAR] <col1>[round]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "3"
Who was the winning team for round 3?
<table0>[arctic_reserves] { <col0>[reserve_name]:[VARCHAR] <col1>[255]:[reserve_area] <col2>[FLOAT]:[INSERT] }
SELECT SUM( reserve_area ) FROM arctic_reserves;
What is the total area of all marine reserves in the Arctic region?
<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>` WHERE `<table0>`.admission_location = "TRSF WITHIN THIS FACILITY" AND `<table0>`.diagnosis = "POSTERIOR COMMUNICATING ANEURYSM/SDA"
give me the number of patients whose admission location is trsf within this facility and primary disease is posterior communicating aneurysm/sda?
<table0>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table2>[Comments] { <col0>[number]:[PostId] <co...
SELECT Questions.Id AS "post_link", Questions.Tags, Questions.AnswerCount, Questions.ViewCount, Questions.ClosedDate FROM `<table18>` AS Questions INNER JOIN PostTags ON PostTags.PostId = Questions.Id INNER JOIN Tags ON Tags.Id = PostTags.TagId WHERE Tags.TagName = @Tag AND Questions.AnswerCount = 0 ORDER BY ViewCount ...
Most viewed questions in tag with 0 answers.
<table0>[CommunityGardens] { <col0>[state]:[VARCHAR] <col1>[city]:[VARCHAR] <col2>[area_ha]:[INT] }
SELECT state, SUM( `<col2>` ) FROM `<table0>` GROUP BY state;
What is the total area (in hectares) of community gardens in the US, disaggregated by state?
<table0>[table_203_1] { <col0>[number]:[entrant] <col1>[text]:[constructor] <col2>[text]:[chassis] <col3>[text]:[engine] <col4>[text]:[number] <col5>[driver]:[text] }
SELECT COUNT( "driver" ) FROM `<table0>`
what is the total number of drivers listed ?