instruction
stringlengths
0
1.06k
input
stringlengths
11
5.3k
response
stringlengths
2
4.44k
information on ground transportation from airport to downtown BOS
CREATE TABLE city (city_code varchar,city_name varchar,state_code varchar,country_name varchar,time_zone_code varchar)CREATE TABLE food_service (meal_code text,meal_number int,compartment text,meal_description varchar)CREATE TABLE flight_fare (flight_id int,fare_id int)CREATE TABLE month (month_number int,month_name te...
SELECT DISTINCT ground_service.transport_type FROM airport, airport_service, city AS CITY_0, city AS CITY_1, ground_service WHERE airport.airport_code = airport_service.airport_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = airport_service.city_code AND CITY_1.city_name = 'BOSTON' AND ground_service.airpor...
What method had Adriano Martins as an opponent and a time of 5:00?
CREATE TABLE table_78195 ("Res." text,"Record" text,"Opponent" text,"Method" text,"Round" real,"Time" text,"Location" text)
SELECT "Method" FROM table_78195 WHERE "Time" = '5:00' AND "Opponent" = 'adriano martins'
What is Status, when Opposing Teams is 'Italy'?
CREATE TABLE table_61572 ("Opposing Teams" text,"Against" real,"Date" text,"Venue" text,"Status" text)
SELECT "Status" FROM table_61572 WHERE "Opposing Teams" = 'italy'
Who is the leading scorer of the Villa De Los Barrios visitor?
CREATE TABLE table_41351 ("Date" text,"Visitor" text,"Score" text,"Home" text,"Leading scorer" text,"Record" text)
SELECT "Leading scorer" FROM table_41351 WHERE "Visitor" = 'villa de los barrios'
Out of the courses I 've had , are any MDE courses ?
CREATE TABLE offering_instructor (offering_instructor_id int,offering_id int,instructor_id int)CREATE TABLE comment_instructor (instructor_id int,student_id int,score int,comment_text varchar)CREATE TABLE student_record (student_id int,course_id int,semester int,grade varchar,how varchar,transfer_source varchar,earn_cr...
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN student_record ON student_record.course_id = course.course_id INNER JOIN program_course ON student_record.course_id = program_course.course_id WHERE program_course.category LIKE '%MDE%' AND student_record.student_id = 1
Name the least season # for the first time
CREATE TABLE table_3264 ("Season #" real,"Title Italian" text,"Title English" text,"Directed by" text,"Original air date" text)
SELECT MIN("Season #") FROM table_3264 WHERE "Title English" = 'The first time'
Who had points less than 73 and drop more than 0?
CREATE TABLE table_12050 ("Points" real,"Name" text,"Club" text,"Apps" real,"Tries" real,"Drop" real)
SELECT "Name" FROM table_12050 WHERE "Points" < '73' AND "Drop" > '0'
What is the average price for each type of product Visualize by bar chart, and could you sort by the X-axis in asc please?
CREATE TABLE Product_Suppliers (product_id INTEGER,supplier_id INTEGER,date_supplied_from DATETIME,date_supplied_to DATETIME,total_amount_purchased VARCHAR(80),total_value_purchased DECIMAL(19,4))CREATE TABLE Addresses (address_id INTEGER,address_details VARCHAR(255))CREATE TABLE Staff (staff_id INTEGER,staff_gender VA...
SELECT product_type_code, AVG(product_price) FROM Products GROUP BY product_type_code ORDER BY product_type_code
what's the result with district illinois 15
CREATE TABLE table_18190 ("District" text,"Incumbent" text,"Party" text,"First elected" text,"Result" text,"Candidates" text)
SELECT "Result" FROM table_18190 WHERE "District" = 'Illinois 15'
how many patients who belong to the religion christian scientist had lab test named mchc?
CREATE TABLE procedures (subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)CREATE TABLE demographic (subject_id text,hadm_id text,name text,marital_status text,age text,dob text,gender text,language text,religion text,admission_type text,days_stay text,insurance text,ethnicity text,expire_fla...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "CHRISTIAN SCIENTIST" AND lab.label = "MCHC"
What average total has cuba as the nation, and a bronze greater than 1?
CREATE TABLE table_7532 ("Rank" text,"Nation" text,"Gold" real,"Silver" real,"Bronze" real,"Total" real)
SELECT AVG("Total") FROM table_7532 WHERE "Nation" = 'cuba' AND "Bronze" > '1'
Which Overall is the highest one that has a Name of daimon shelton, and a Round larger than 6?
CREATE TABLE table_39404 ("Round" real,"Pick #" real,"Overall" real,"Name" text,"Position" text,"College" text)
SELECT MAX("Overall") FROM table_39404 WHERE "Name" = 'daimon shelton' AND "Round" > '6'
What is the average decile of Westport South School?
CREATE TABLE table_14696 ("Name" text,"Years" text,"Area" text,"Authority" text,"Decile" real,"Roll" real)
SELECT AVG("Decile") FROM table_14696 WHERE "Name" = 'westport south school'
Where was the competition that took place that had a 5-1 result?
CREATE TABLE table_name_7 (venue VARCHAR,result VARCHAR)
SELECT venue FROM table_name_7 WHERE result = "5-1"
Which class starts after 1939 and has a road number smaller than 3508?
CREATE TABLE table_80292 ("NBR number" real,"Year" real,"Original operator" text,"Class" text,"Wheel arrangement" text,"Road number" real,"Location" text)
SELECT "Class" FROM table_80292 WHERE "Year" > '1939' AND "Road number" < '3508'
What was the time of the game on April 5?
CREATE TABLE table_6695 ("Date" text,"Opponent" text,"Score" text,"Loss" text,"Time" text,"Att." text,"Record" text)
SELECT "Time" FROM table_6695 WHERE "Date" = 'april 5'
How many tries for are for 473 points for?
CREATE TABLE table_563 ("Club" text,"Played" text,"Won" text,"Drawn" text,"Lost" text,"Points for" text,"Points against" text,"Tries for" text,"Tries against" text,"Try bonus" text,"Losing bonus" text,"Points" text)
SELECT COUNT("Tries for") FROM table_563 WHERE "Points for" = '473'
For each customer who has at least two orders, find the customer name and number of orders made. Visualize by bar chart.
CREATE TABLE Orders (order_id INTEGER,customer_id INTEGER,order_status VARCHAR(10),date_order_placed DATETIME,order_details VARCHAR(255))CREATE TABLE Customers (customer_id INTEGER,customer_name VARCHAR(80),customer_details VARCHAR(255))CREATE TABLE Shipment_Items (shipment_id INTEGER,order_item_id INTEGER)CREATE TABLE...
SELECT customer_name, COUNT(*) FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id
For player is jamal mayers mention the minimum pick
CREATE TABLE table_2781227_4 (pick INTEGER,player VARCHAR)
SELECT MIN(pick) FROM table_2781227_4 WHERE player = "Jamal Mayers"
What week was the result of l 38 21?
CREATE TABLE table_name_63 (week INTEGER,result VARCHAR)
SELECT MAX(week) FROM table_name_63 WHERE result = "l 38–21"
Which call sign has a Class of A, and a Frequency MHz of 88.7?
CREATE TABLE table_69063 ("Call sign" text,"Frequency MHz" real,"City of license" text,"ERP W" text,"Class" text,"FCC info" text)
SELECT "Call sign" FROM table_69063 WHERE "Class" = 'a' AND "Frequency MHz" = '88.7'
Top 100 programmers in Marrakesh, Morocco.
CREATE TABLE Posts (Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,Ans...
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Location, Reputation FROM Users WHERE LOWER(Location) LIKE '%marrakesh%' ORDER BY Reputation DESC LIMIT 100
What lab measurements can help diagnosie ornithine transcarbamylase deficiency?
CREATE TABLE table_52257 ("Location" text,"Abb." text,"Enzyme" text,"Disorder" text,"Measurements" text)
SELECT "Measurements" FROM table_52257 WHERE "Disorder" = 'ornithine transcarbamylase deficiency'
Which 2011 has a 2012 larger than 9,998,000?
CREATE TABLE table_48829 ("Rank" real,"Location" text,"2008" real,"2009" real,"2010" real,"2011" real,"2012" real)
SELECT MAX("2011") FROM table_48829 WHERE "2012" > '9,998,000'
What's the record of the @ miami team?
CREATE TABLE table_27734577_8 (record VARCHAR,team VARCHAR)
SELECT record FROM table_27734577_8 WHERE team = "@ Miami"
how many total medals did argentina win ?
CREATE TABLE table_204_302 (id number,"rank" number,"nation" text,"gold" number,"silver" number,"bronze" number,"total" number)
SELECT "total" FROM table_204_302 WHERE "nation" = 'argentina'
What is the average rank of one who is at 76 laps?
CREATE TABLE table_name_98 (rank INTEGER,laps VARCHAR)
SELECT AVG(rank) FROM table_name_98 WHERE laps = 76
in 2105, what were the top three most common intakes?
CREATE TABLE patient (uniquepid text,patienthealthsystemstayid number,patientunitstayid number,gender text,age text,ethnicity text,hospitalid number,wardid number,admissionheight number,admissionweight number,dischargeweight number,hospitaladmittime time,hospitaladmitsource text,unitadmittime time,unitdischargetime tim...
SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%intake%' AND STRFTIME('%y', intakeoutput.intakeoutputtime) = '2105' GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 3
Which Loss has a Record of 41 32 6?
CREATE TABLE table_name_38 (loss VARCHAR,record VARCHAR)
SELECT loss FROM table_name_38 WHERE record = "41–32–6"
What are radio electricals when secretariat is wtr i?
CREATE TABLE table_1348246_3 (Radio VARCHAR,secretariat VARCHAR)
SELECT Radio AS electrical FROM table_1348246_3 WHERE secretariat = "WTR I"
What are the average prices of wines for different years?
CREATE TABLE WINE (YEAR VARCHAR,Price INTEGER)
SELECT AVG(Price), YEAR FROM WINE GROUP BY YEAR
Show the average transaction amount for different transaction types, I want to display by the total number in ascending please.
CREATE TABLE Ref_Transaction_Types (transaction_type_code VARCHAR(10),transaction_type_description VARCHAR(80))CREATE TABLE Sales (sales_transaction_id INTEGER,sales_details VARCHAR(255))CREATE TABLE Investors (investor_id INTEGER,Investor_details VARCHAR(255))CREATE TABLE Transactions (transaction_id INTEGER,investor_...
SELECT transaction_type_code, AVG(amount_of_transaction) FROM Transactions GROUP BY transaction_type_code ORDER BY AVG(amount_of_transaction)
What was the Attendance after Week 4 on October 10, 1971?
CREATE TABLE table_45982 ("Week" real,"Date" text,"Opponent" text,"Result" text,"Attendance" real)
SELECT AVG("Attendance") FROM table_45982 WHERE "Date" = 'october 10, 1971' AND "Week" > '4'
what is the frequency of visits to elmanana.com.mx
CREATE TABLE table_name_65 (frequency VARCHAR,website VARCHAR)
SELECT frequency FROM table_name_65 WHERE website = "elmanana.com.mx"
Which Census Ranking has an Area km 2 larger than 753.06, and an Official Name of stanley?
CREATE TABLE table_60609 ("Official Name" text,"Status" text,"Area km 2" real,"Population" real,"Census Ranking" text)
SELECT "Census Ranking" FROM table_60609 WHERE "Area km 2" > '753.06' AND "Official Name" = 'stanley'
provide the number of patients whose death status is 1 and drug code is alte1/5i?
CREATE TABLE diagnoses (subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)CREATE TABLE demographic (subject_id text,hadm_id text,name text,marital_status text,age text,dob text,gender text,language text,religion text,admission_type text,days_stay text,insurance text,ethnicity text,expire_flag...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.expire_flag = "1" AND prescriptions.formulary_drug_cd = "ALTE1/5I"
Who wrote the episode 'The Cold Turkey', which was viewed by 3.73 million viewers?
CREATE TABLE table_17467578_1 (written_by VARCHAR,us_viewers__million_ VARCHAR)
SELECT written_by FROM table_17467578_1 WHERE us_viewers__million_ = "3.73"
What are the dates of the orders made by the customer named 'Jeramie'?
CREATE TABLE invoices (invoice_number number,invoice_date time,invoice_details text)CREATE TABLE shipments (shipment_id number,order_id number,invoice_number number,shipment_tracking_number text,shipment_date time,other_shipment_details text)CREATE TABLE customers (customer_id number,customer_name text,customer_details...
SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie"
what is the total number of times the tournament was pga championship and evens is less than 4?
CREATE TABLE table_15834 ("Tournament" text,"Wins" real,"Top-5" real,"Top-25" real,"Events" real,"Cuts made" real)
SELECT COUNT("Top-5") FROM table_15834 WHERE "Tournament" = 'pga championship' AND "Events" < '4'
Which timeslot did episode no. 15 hold?
CREATE TABLE table_11274401_2 (timeslot VARCHAR,no VARCHAR)
SELECT timeslot FROM table_11274401_2 WHERE no = 15
How many patients on elective admission had a personal history of surgery to other organs?
CREATE TABLE procedures (subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)CREATE TABLE lab (subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text)CREATE TABLE diagnoses (subject_id text,hadm_id text,icd9_code text,short_title text,long_title ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND diagnoses.long_title = "Personal history of surgery to other organs"
Which Total has a Country of united states, and a Player of andy north?
CREATE TABLE table_46264 ("Player" text,"Country" text,"Year(s) won" text,"Total" real,"To par" text,"Finish" text)
SELECT AVG("Total") FROM table_46264 WHERE "Country" = 'united states' AND "Player" = 'andy north'
what is the flight schedule of the F28 from PITTSBURGH to BALTIMORE
CREATE TABLE food_service (meal_code text,meal_number int,compartment text,meal_description varchar)CREATE TABLE airport_service (city_code varchar,airport_code varchar,miles_distant int,direction varchar,minutes_distant int)CREATE TABLE airline (airline_code varchar,airline_name text,note text)CREATE TABLE time_interv...
SELECT DISTINCT FLIGHT_0.arrival_time, FLIGHT_0.departure_time FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, equipment_sequence, flight AS FLIGHT_0, flight AS FLIGHT_1, flight_leg WHERE (aircraft.aircraft_code = 'F28' AND CITY_1.city_code = AI...
What shows for 1992 when 2001 is 1r, 1994 is 1r, and the 2002 is qf?
CREATE TABLE table_name_3 (Id VARCHAR)
SELECT 1992 FROM table_name_3 WHERE 2001 = "1r" AND 1994 = "1r" AND 2002 = "qf"
Find all the songs produced by artists with first name 'Marianne'.
CREATE TABLE songs (songid number,title text)CREATE TABLE performance (songid number,bandmate number,stageposition text)CREATE TABLE vocals (songid number,bandmate number,type text)CREATE TABLE albums (aid number,title text,year number,label text,type text)CREATE TABLE tracklists (albumid number,position number,songid ...
SELECT T3.title FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T2.firstname = "Marianne"
Is there a section of HBEHED 900 that occurs after 07:15 P.M. ?
CREATE TABLE course (course_id int,name varchar,department varchar,number varchar,credits varchar,advisory_requirement varchar,enforced_requirement varchar,description varchar,num_semesters int,num_enrolled int,has_discussion varchar,has_lab varchar,has_projects varchar,has_exams varchar,num_reviews int,clarity_score i...
SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '07:15' AND course.course_id = course_offering.course_id AND course.department = 'HBEHED' AND course.number = 900 AND semester.semester = 'WN' AN...
What two teams were competing in the match with 103,158 in attendance?
CREATE TABLE table_name_50 (opponent VARCHAR,attendance VARCHAR)
SELECT opponent FROM table_name_50 WHERE attendance = "103,158"
when did patient 017-83061 leave hospital for the last time?
CREATE TABLE cost (costid number,uniquepid text,patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number)CREATE TABLE treatment (treatmentid number,patientunitstayid number,treatmentname text,treatmenttime time)CREATE TABLE lab (labid number,patientunitstayid number,labname text,labres...
SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '017-83061' ORDER BY patient.hospitaldischargetime DESC LIMIT 1
For those employees who was hired before 2002-06-21, give me the comparison about the sum of salary over the hire_date bin hire_date by weekday by a bar chart.
CREATE TABLE regions (REGION_ID decimal(5,0),REGION_NAME varchar(25))CREATE TABLE employees (EMPLOYEE_ID decimal(6,0),FIRST_NAME varchar(20),LAST_NAME varchar(25),EMAIL varchar(25),PHONE_NUMBER varchar(20),HIRE_DATE date,JOB_ID varchar(10),SALARY decimal(8,2),COMMISSION_PCT decimal(2,2),MANAGER_ID decimal(6,0),DEPARTME...
SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21'
which players have at least 4 in the europa league ?
CREATE TABLE table_204_784 (id number,"player" text,"league" number,"cup" number,"europa league" number,"total" number)
SELECT "player" FROM table_204_784 WHERE "europa league" >= 4
On what date did Goal 24 take place?
CREATE TABLE table_55525 ("Goal" real,"Date" text,"Venue" text,"Score" text,"Result" text,"Competition" text)
SELECT "Date" FROM table_55525 WHERE "Goal" = '24'
What home team played North Melbourne?
CREATE TABLE table_name_50 (home_team VARCHAR,away_team VARCHAR)
SELECT home_team FROM table_name_50 WHERE away_team = "north melbourne"
what is the lowest grid when the laps is more than 7 and the driver is rubens barrichello?
CREATE TABLE table_51932 ("Driver" text,"Constructor" text,"Laps" real,"Time/Retired" text,"Grid" real)
SELECT MIN("Grid") FROM table_51932 WHERE "Laps" > '7' AND "Driver" = 'rubens barrichello'
Name the money for the to par of -6
CREATE TABLE table_68357 ("Place" text,"Player" text,"Country" text,"Score" text,"To par" text,"Money (\u00a3)" text)
SELECT "Money ( \u00a3 )" FROM table_68357 WHERE "To par" = '-6'
What record has September 21 as the date?
CREATE TABLE table_name_59 (record VARCHAR,date VARCHAR)
SELECT record FROM table_name_59 WHERE date = "september 21"
What are the distinct names of customers with an order status of Pending, sorted by customer id?
CREATE TABLE customer_orders (order_id number,customer_id number,order_status_code text,order_date time)CREATE TABLE product_suppliers (product_id number,supplier_id number,date_supplied_from time,date_supplied_to time,total_amount_purchased text,total_value_purchased number)CREATE TABLE customers (customer_id number,p...
SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = "Pending" ORDER BY T2.customer_id
Who were the candidates in district Pennsylvania 3?
CREATE TABLE table_18129 ("District" text,"Incumbent" text,"Party" text,"First elected" real,"Results" text,"Candidates" text)
SELECT "Candidates" FROM table_18129 WHERE "District" = 'Pennsylvania 3'
How many games had less than 7 goals scored?
CREATE TABLE table_24565004_15 (appearances¹ VARCHAR,goals¹ VARCHAR)
SELECT COUNT(appearances¹) FROM table_24565004_15 WHERE goals¹ = 7
give me the number of patients whose drug name is caspofungin?
CREATE TABLE prescriptions (subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text)CREATE TABLE procedures (subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)CREATE TABLE lab (subject_id text,hadm_id text,itemid text,charttime te...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Caspofungin"
What is the least number of wins West Ham got when they tied 27 times?
CREATE TABLE table_48977 ("Competition" text,"Played" real,"Millwall wins" real,"Drawn" real,"West Ham wins" real,"Millwall goals" real,"West Ham goals" real)
SELECT MIN("West Ham wins") FROM table_48977 WHERE "Drawn" > '27'
How many lbs does a set 4 of 115lb x 8reps have?
CREATE TABLE table_name_53 (volume_lbs VARCHAR,set_4 VARCHAR)
SELECT volume_lbs FROM table_name_53 WHERE set_4 = "115lb x 8reps"
What is the highest No Result when there were less than 7 losses, and more than 3 away wins, with a success Rate of 50.00%?
CREATE TABLE table_41006 ("Year" text,"Matches" real,"Wins" real,"Losses" real,"No Result" real,"Success Rate" text,"Away Wins" real,"Away Losses" real)
SELECT MAX("No Result") FROM table_41006 WHERE "Losses" > '7' AND "Away Wins" > '3' AND "Success Rate" = '50.00%'
Count of users with a well-received question or answer by month. Well-received means: 1) not closed (for questions) 2) not deleted 3) positive score after 30 days
CREATE TABLE PostTypes (Id number,Name text)CREATE TABLE PostTags (PostId number,TagId number)CREATE TABLE CloseAsOffTopicReasonTypes (Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDat...
WITH Raw AS (SELECT Posts.Id, MIN(Posts.OwnerUserId) AS UserId, MIN(DATEFROMPARTS(DATEPART(yyyy, Posts.CreationDate), DATEPART(mm, Posts.CreationDate), 1)) AS Month, MIN(Posts.PostTypeId) AS PostTypeId, SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE -1 END) AS Score FROM Posts, Votes WHERE Posts.PostTypeId BETWEEN 1 AND 2 AN...
What is the name of the yacht where 12 is the overall place?
CREATE TABLE table_name_28 (yacht_name VARCHAR,overall_place VARCHAR)
SELECT yacht_name FROM table_name_28 WHERE overall_place = "12"
How many laps were ridden in the race that had a Time/Retired of +37.351?
CREATE TABLE table_68369 ("Rider" text,"Manufacturer" text,"Laps" real,"Time/Retired" text,"Grid" real)
SELECT COUNT("Laps") FROM table_68369 WHERE "Time/Retired" = '+37.351'
WHAT HINDI HAS Kannada of shukravara?
CREATE TABLE table_name_54 (hindi VARCHAR,kannada VARCHAR)
SELECT hindi FROM table_name_54 WHERE kannada = "shukravara"
Top 20 posts and the scores.
CREATE TABLE PendingFlags (Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text)CREATE TABLE PostsWithDeleted (Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate ti...
SELECT ViewCount, Score, Id AS "post_link" FROM Posts ORDER BY ViewCount DESC LIMIT 20
What is the nickname of the school located in Manchester, New Hampshire?
CREATE TABLE table_name_54 (nickname VARCHAR,location VARCHAR)
SELECT nickname FROM table_name_54 WHERE location = "manchester, new hampshire"
what is minimum days of hospital stay of patients whose primary disease is left colon cancer?
CREATE TABLE prescriptions (subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text)CREATE TABLE lab (subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text)CREATE TABLE demographic (subject_id text,hadm_id t...
SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = "LEFT COLON CANCER"
In how many locations was the game against Barcelona Dragons played?
CREATE TABLE table_1941183_2 (game_site VARCHAR,opponent VARCHAR)
SELECT COUNT(game_site) FROM table_1941183_2 WHERE opponent = "Barcelona Dragons"
Which Rush song was played for Mike Fincke?
CREATE TABLE table_name_4 (song VARCHAR,played_for VARCHAR,artist VARCHAR)
SELECT song FROM table_name_4 WHERE played_for = "mike fincke" AND artist = "rush"
had patient 022-43717 been prescribed a prescription of any drug?
CREATE TABLE intakeoutput (intakeoutputid number,patientunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time)CREATE TABLE diagnosis (diagnosisid number,patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text)CREATE TABLE microlab (microlabid number,patientuni...
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-43717'))
What venue did he finish 7th?
CREATE TABLE table_name_55 (venue VARCHAR,position VARCHAR)
SELECT venue FROM table_name_55 WHERE position = "7th"
what's the state with highest point being mount katahdin
CREATE TABLE table_1416612_1 (state VARCHAR,highest_point VARCHAR)
SELECT state FROM table_1416612_1 WHERE highest_point = "Mount Katahdin"
What year and the corresponding ceremony was the english titled movie 'time out' submitted?
CREATE TABLE table_22102732_1 (year__ceremony_ VARCHAR,english_title VARCHAR)
SELECT year__ceremony_ FROM table_22102732_1 WHERE english_title = "Time Out"
How much money has been raised that has $5,821,587 cash on hand?
CREATE TABLE table_56217 ("Candidate" text,"Money Raised,3Q" text,"Loans Received,3Q" text,"Money Spent,3Q" text,"Total Receipts" text,"Cash On Hand" text,"After Debt" text)
SELECT "Money Raised, 3Q" FROM table_56217 WHERE "Cash On Hand" = '$5,821,587'
What was the title of the episode directed by Jesse Warn?
CREATE TABLE table_27238 ("No." real,"#" real,"Title" text,"Directed by" text,"Written by" text,"Original air date" text,"Production code" text,"U.S. viewers (million)" text)
SELECT "Production code" FROM table_27238 WHERE "Directed by" = 'Jesse Warn'
What date was the Colonial Stadium?
CREATE TABLE table_name_62 (date VARCHAR,ground VARCHAR)
SELECT date FROM table_name_62 WHERE ground = "colonial stadium"
For those employees who was hired before 2002-06-21, show me about the change of employee_id over hire_date in a line chart.
CREATE TABLE regions (REGION_ID decimal(5,0),REGION_NAME varchar(25))CREATE TABLE locations (LOCATION_ID decimal(4,0),STREET_ADDRESS varchar(40),POSTAL_CODE varchar(12),CITY varchar(30),STATE_PROVINCE varchar(25),COUNTRY_ID varchar(2))CREATE TABLE employees (EMPLOYEE_ID decimal(6,0),FIRST_NAME varchar(20),LAST_NAME var...
SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE HIRE_DATE < '2002-06-21'
What is the title of the first episode of Garfield that is followed by the second episode of Garfield titled Mamma Manicotti?
CREATE TABLE table_22389 ("Episode" text,"Garfield Episode 1" text,"U.S. Acres Episode" text,"Garfield Episode 2" text,"Original Airdate" text)
SELECT "Garfield Episode 1" FROM table_22389 WHERE "Garfield Episode 2" = 'Mamma Manicotti'
which year was rosi mittermaier 's last season ?
CREATE TABLE table_204_339 (id number,"season" number,"age" number,"overall" number,"slalom" number,"giant\nslalom" number,"super g" text,"downhill" number,"combined" text)
SELECT MAX("season") FROM table_204_339
show me flights from ATLANTA to WASHINGTON
CREATE TABLE airport (airport_code varchar,airport_name text,airport_location text,state_code varchar,country_name varchar,time_zone_code varchar,minimum_connect_time int)CREATE TABLE airport_service (city_code varchar,airport_code varchar,miles_distant int,direction varchar,minutes_distant int)CREATE TABLE compartment...
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service 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 = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHIN...
medical conditions likely to limit life span and / or increase risk of intervention
CREATE TABLE table_train_204 ("id" int,"systolic_blood_pressure_sbp" int,"plasma_glucose_concentration" int,"fasting_plasma_glucose_fpg" float,"increase_risk_of_intervention" bool,"diastolic_blood_pressure_dbp" int,"life_span" bool,"body_mass_index_bmi" float,"NOUSE" float)
SELECT * FROM table_train_204 WHERE life_span = 1 OR increase_risk_of_intervention = 1
What is the value for 2005 when A is 2009 and 2000?
CREATE TABLE table_name_98 (Id VARCHAR)
SELECT 2005 FROM table_name_98 WHERE 2009 = "a" AND 2000 = "a"
count the number of patients whose admission type is emergency and diagnoses short title is respiratory distress syn?
CREATE TABLE demographic (subject_id text,hadm_id text,name text,marital_status text,age text,dob text,gender text,language text,religion text,admission_type text,days_stay text,insurance text,ethnicity text,expire_flag text,admission_location text,discharge_location text,diagnosis text,dod text,dob_year text,dod_year ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.short_title = "Respiratory distress syn"
What's the average Year that has Points that's smaller than 9 with a Rank of 24th?
CREATE TABLE table_5890 ("Year" real,"Class" text,"Team" text,"Points" real,"Rank" text,"Wins" real)
SELECT AVG("Year") FROM table_5890 WHERE "Points" < '9' AND "Rank" = '24th'
What is Score, when Location Attendance is 'US Airways Center 18,422', and when Game is less than 22?
CREATE TABLE table_44934 ("Game" real,"Date" text,"Team" text,"Score" text,"High rebounds" text,"High assists" text,"Location Attendance" text,"Record" text)
SELECT "Score" FROM table_44934 WHERE "Location Attendance" = 'us airways center 18,422' AND "Game" < '22'
What is the license for Jriver Media Center?
CREATE TABLE table_name_91 (license VARCHAR,name VARCHAR)
SELECT license FROM table_name_91 WHERE name = "jriver media center"
how many people attended the game on june 24 ?
CREATE TABLE table_203_746 (id number,"date" text,"opponent" text,"score" text,"leading scorer" text,"attendance" number,"record" text)
SELECT "attendance" FROM table_203_746 WHERE "date" = 'june 24'
how much weight was patient 25965's first weight until 11/2105?
CREATE TABLE d_icd_procedures (row_id number,icd9_code text,short_title text,long_title text)CREATE TABLE diagnoses_icd (row_id number,subject_id number,hadm_id number,icd9_code text,charttime time)CREATE TABLE procedures_icd (row_id number,subject_id number,hadm_id number,icd9_code text,charttime time)CREATE TABLE lab...
SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25965)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit wt'...
What time is MDT when EDT is set and PDT is 6:00 a.m.?
CREATE TABLE table_name_58 (mdt___6_utc_ VARCHAR,edt___4_utc_ VARCHAR,pdt___7_utc_ VARCHAR)
SELECT mdt___6_utc_ FROM table_name_58 WHERE edt___4_utc_ = "set" AND pdt___7_utc_ = "6:00 a.m."
count of users by location.
CREATE TABLE ReviewTaskTypes (Id number,Name text,Description text)CREATE TABLE PostFeedback (Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time)CREATE TABLE ReviewTaskStates (Id number,Name text,Description text)CREATE TABLE SuggestedEditVotes (Id number,SuggestedEditId number,UserId numbe...
SELECT COUNT(*), Users.Location FROM Users WHERE LOWER(Users.Location) = '%india%' GROUP BY Users.Location
how many total points has the lost angeles kings scored ?
CREATE TABLE table_204_964 (id number,"team" text,"seasons" number,"games" number,"wins" number,"ties" number,"losses" number,"goals\nfor" number,"goals\nagainst" number,"goal\ndiff" number,"points" number)
SELECT "team" FROM table_204_964 WHERE "team" = 'los angeles kings'
which person has directed most of the titles ?
CREATE TABLE table_201_39 (id number,"no" number,"title" text,"directed by" text,"released" number)
SELECT "directed by" FROM table_201_39 GROUP BY "directed by" ORDER BY COUNT("title") DESC LIMIT 1
What country is Alain Labrecque from?
CREATE TABLE table_2086 ("Pick #" real,"Player" text,"Position" text,"Nationality" text,"NHL team" text,"College/junior/club team" text)
SELECT "Nationality" FROM table_2086 WHERE "Player" = 'Alain Labrecque'
What is the sum of pick# for Don Majkowski?3
CREATE TABLE table_75180 ("Pick #" real,"Round" text,"Player" text,"Position" text,"College" text)
SELECT SUM("Pick #") FROM table_75180 WHERE "Player" = 'don majkowski'
Which of the radio stations has the organization of ente p blico radio televisi n madrid (eprtvm)?
CREATE TABLE table_25684 ("Autonomous Community" text,"Organization" text,"Television Channels" text,"Radio Stations" text,"Foundation" real)
SELECT "Radio Stations" FROM table_25684 WHERE "Organization" = 'Ente Público Radio Televisión Madrid (EPRTVM)'
What is the value for 2012 when the value for 2009 is 1R and the vale for 2007 is 2R?
CREATE TABLE table_32074 ("Tournament" text,"2006" text,"2007" text,"2008" text,"2009" text,"2010" text,"2011" text,"2012" text)
SELECT "2012" FROM table_32074 WHERE "2009" = '1r' AND "2007" = '2r'
what is gender of subject name kelly gallardo?
CREATE TABLE procedures (subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)CREATE TABLE lab (subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text)CREATE TABLE demographic (subject_id text,hadm_id text,name text,marital_status text,age text,do...
SELECT demographic.gender FROM demographic WHERE demographic.name = "Kelly Gallardo"
What are all values for the male population in 2001 with a growth rate in 1991-01 of 36.16?
CREATE TABLE table_19589113_5 (male_population_2001 VARCHAR,growth_rate_1991_01 VARCHAR)
SELECT male_population_2001 FROM table_19589113_5 WHERE growth_rate_1991_01 = "36.16"