answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT class_a FROM table_14601528_2 WHERE class_aAAAA = Pearland
Name the class a for pearland
CREATE TABLE table_14601528_2 (class_a VARCHAR, class_aAAAA VARCHAR, Pearland VARCHAR)
SELECT id_code_of_his_zero_fighter FROM table_name_1 WHERE count = "10"
Which Zero Fighter has a count of 10?
CREATE TABLE table_name_1 ( id_code_of_his_zero_fighter VARCHAR, count VARCHAR )
SELECT result FROM table_name_2 WHERE attendance = "46,456"
What was the result when the attendance was 46,456?
CREATE TABLE table_name_2 (result VARCHAR, attendance VARCHAR)
SELECT class_aAAAA FROM table_14601528_2 WHERE school_year = "2005-06"
Name the class aaaaa for 2005-06
CREATE TABLE table_14601528_2 (class_aAAAA VARCHAR, school_year VARCHAR)
SELECT PHONE_NUMBER, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of phone_number and manager_id , and sort y axis from low to high order please.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE job_history ( EMPLO...
SELECT opponent FROM table_name_16 WHERE date = "september 27, 1998"
Who was the opponent on september 27, 1998?
CREATE TABLE table_name_16 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(class_aAAAA) FROM table_14601528_2 WHERE school_year = "1988-89"
Name the number of class aaaaa for 1988-89
CREATE TABLE table_14601528_2 (class_aAAAA VARCHAR, school_year VARCHAR)
SELECT venue FROM table_20140132_1 WHERE team = "Terek"
What is the venue for the team Terek?
CREATE TABLE table_20140132_1 ( venue VARCHAR, team VARCHAR )
SELECT venue FROM table_name_39 WHERE score = "0:0" AND season > 2010 AND team_1 = "t&t hanoi"
Which Venue has a Score of 0:0, a Season larger than 2010, and a Team 1 of t&t hanoi?
CREATE TABLE table_name_39 (venue VARCHAR, team_1 VARCHAR, score VARCHAR, season VARCHAR)
SELECT females___percentage_ FROM table_14598_9 WHERE india_state_ut = "Maharashtra"
What is the percentage of females where in India and are maharashtra?
CREATE TABLE table_14598_9 (females___percentage_ VARCHAR, india_state_ut VARCHAR)
SELECT "Type" FROM table_49271 WHERE "Manufacturer" = 'unknown'
Which type had an unknown manufacturer?
CREATE TABLE table_49271 ( "Name" text, "Type" text, "Themed area" text, "Manufacturer" text, "Opened" text )
SELECT highest_league FROM table_name_2 WHERE total_seasons < 4 AND team = "nova scotia clippers"
What's the highest league of the Nova Scotia Clippers with a total season of less than 4?
CREATE TABLE table_name_2 (highest_league VARCHAR, total_seasons VARCHAR, team VARCHAR)
SELECT females___percentage_ FROM table_14598_9 WHERE literate_persons___percentage_ = "68.74"
What is the percentage of all females that are literate people have a percentage of 68.74?
CREATE TABLE table_14598_9 (females___percentage_ VARCHAR, literate_persons___percentage_ VARCHAR)
SELECT customer_first_name, customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name, T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id
Show the first names and last names of customers without any account.
CREATE TABLE Accounts ( customer_id VARCHAR ) CREATE TABLE Customers ( customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR )
SELECT seasons FROM table_name_49 WHERE total_seasons < 5 AND city = "ottawa, ontario"
What is the season that has fewer than 5 total seasons and is in Ottawa, Ontario?
CREATE TABLE table_name_49 (seasons VARCHAR, total_seasons VARCHAR, city VARCHAR)
SELECT females___percentage_ FROM table_14598_9 WHERE state_ut_code = 4
What is the percentage of females where the state code is a 4?
CREATE TABLE table_14598_9 (females___percentage_ VARCHAR, state_ut_code VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "49" AND lab.flag = "abnormal"
provide the number of patients whose age is less than 49 and lab test abnormal status is abnormal?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescription...
SELECT MIN(total_seasons) FROM table_name_58 WHERE team = "vancouver 86ers"
What is the least total seasons of the Vancouver 86ers?
CREATE TABLE table_name_58 (total_seasons INTEGER, team VARCHAR)
SELECT literate_persons___percentage_ FROM table_14598_9 WHERE females___percentage_ = "73.17"
What is the percentage of all the literate people where females are 73.17?
CREATE TABLE table_14598_9 (literate_persons___percentage_ VARCHAR, females___percentage_ VARCHAR)
SELECT part_id, chargeable_amount FROM Parts ORDER BY chargeable_amount LIMIT 1
Which part has the least chargeable amount? List the part id and amount.
CREATE TABLE Parts ( part_id VARCHAR, chargeable_amount VARCHAR )
SELECT opponent FROM table_name_28 WHERE week = 14
Who was the opponent in week 14?
CREATE TABLE table_name_28 (opponent VARCHAR, week VARCHAR)
SELECT literate_persons___percentage_ FROM table_14598_9 WHERE india_state_ut = "Andaman and Nicobar Islands"
What is the percentage of literate people where india is andaman and Nicobar Islands?
CREATE TABLE table_14598_9 (literate_persons___percentage_ VARCHAR, india_state_ut VARCHAR)
SELECT COUNT(*) > 0 FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course_offering.section_number = 496 AND course.department = 'DANCE' AND course.number = 103 AND semester.semester = 'Fall' AND semester...
Is DANCE 103 section 496 going to be offered in the Fall 2017 semester ?
CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as ...
SELECT date FROM table_name_87 WHERE city = "punta del este"
What is Date, when City is "Punta Del Este"?
CREATE TABLE table_name_87 (date VARCHAR, city VARCHAR)
SELECT class_aAAA FROM table_14603057_2 WHERE school_year = "2006-07"
Who was the Class AAAA champion in 2006-07?
CREATE TABLE table_14603057_2 (class_aAAA VARCHAR, school_year VARCHAR)
SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-23605')) AND microlab.culturesite = 'blood, venipuncture' ORD...
when did patient 031-23605 receive blood, venipuncture microbiology testing for the last time?
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE microlab ( microlabid number, ...
SELECT city FROM table_name_18 WHERE prize = "$146,000"
What is City, when Prize is "$146,000"?
CREATE TABLE table_name_18 (city VARCHAR, prize VARCHAR)
SELECT COUNT(class_a) FROM table_14603057_2 WHERE class_aAAA = Gregory - Portland
How many times was there a class A winner when Gregory-Portland was the class AAAA?
CREATE TABLE table_14603057_2 (class_a VARCHAR, class_aAAA VARCHAR, Gregory VARCHAR, Portland VARCHAR)
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 94229 AND admissions.dischtime IS NULL
how many hours has it passed since patient 94229 was admitted to hospital?
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id numbe...
SELECT date FROM table_name_66 WHERE winner = "murilo figueiredo"
What is Date, when Winner is "Murilo Figueiredo"?
CREATE TABLE table_name_66 (date VARCHAR, winner VARCHAR)
SELECT COUNT(class_aAAA) FROM table_14603057_2 WHERE school_year = "2002-03"
How many Class AAAA winners where in 2002-03?
CREATE TABLE table_14603057_2 (class_aAAA VARCHAR, school_year VARCHAR)
SELECT "Score" FROM table_68234 WHERE "Loss" = 'williams (1-1)'
What was the score of the game that had a loss of Williams (1-1)?
CREATE TABLE table_68234 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text )
SELECT aspect FROM table_name_12 WHERE programming = "saigon network television"
What Aspect has a Programming of Saigon Network Television?
CREATE TABLE table_name_12 (aspect VARCHAR, programming VARCHAR)
SELECT class_aAAAA FROM table_14603057_2 WHERE school_year = "2008-09"
Who was the class AAAAA in 2008-09?
CREATE TABLE table_14603057_2 (class_aAAAA VARCHAR, school_year VARCHAR)
SELECT "Country" FROM table_38639 WHERE "City" = 'johannesburg'
Name the country for johannesburg
CREATE TABLE table_38639 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text )
SELECT aspect FROM table_name_18 WHERE programming = "latv"
Which Aspect has a Programming of latv?
CREATE TABLE table_name_18 (aspect VARCHAR, programming VARCHAR)
SELECT class_aA FROM table_14603057_2 WHERE class_a = "Plains" AND class_aAAAA = Lubbock
Who was the Class AA winner when Plains was Class A winner and Lubbock was Class AAAAA winner?
CREATE TABLE table_14603057_2 (class_aA VARCHAR, class_a VARCHAR, class_aAAAA VARCHAR, Lubbock VARCHAR)
SELECT "Trophy presentation" FROM table_25075 WHERE "Year" = '1987'
Who is the trophy presentation in the year 1987?
CREATE TABLE table_25075 ( "Year" real, "Network" text, "Race caller" text, "s Host" text, "s Analyst" text, "Reporters" text, "Trophy presentation" text )
SELECT programming FROM table_name_53 WHERE channel > 51.2 AND psip_short_name = "kyaz-5"
Which Programming has a Channel greater than 51.2 and a PSIP Short Name of kyaz-5?
CREATE TABLE table_name_53 (programming VARCHAR, channel VARCHAR, psip_short_name VARCHAR)
SELECT class_a FROM table_14603057_2 WHERE school_year = "2006-07"
Who was the Class A winner in 2006-07?
CREATE TABLE table_14603057_2 (class_a VARCHAR, school_year VARCHAR)
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'biotene dry mouth mt liqd')
count the number of patients who had been prescribed an biotene dry mouth mt liqd.
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wa...
SELECT psip_short_name FROM table_name_70 WHERE channel < 51.6
What is the PSIP Short name for the Channel that is less than 51.6?
CREATE TABLE table_name_70 (psip_short_name VARCHAR, channel INTEGER)
SELECT school_year FROM table_14603212_1 WHERE class_aAA = Wimberley AND class_a = "Canadian"
If class a is canadian and class aaa is wimberley, which possible school years could this fall on?
CREATE TABLE table_14603212_1 (school_year VARCHAR, class_aAA VARCHAR, Wimberley VARCHAR, class_a VARCHAR)
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age B...
since 2104, what was the four most frequent procedure for patients 20s?
CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id num...
SELECT MAX(year) FROM table_name_62 WHERE beer_name = "maggs magnificent mild" AND competition = "camra reading branch beer festival" AND category = "overall"
What year did maggs magnificent mild bear win overall at the camra reading branch beer festival?
CREATE TABLE table_name_62 (year INTEGER, category VARCHAR, beer_name VARCHAR, competition VARCHAR)
SELECT school_year FROM table_14603212_1 WHERE class_aA = Franklin
For franklin of class aa, which school years does this occur?
CREATE TABLE table_14603212_1 (school_year VARCHAR, class_aA VARCHAR, Franklin VARCHAR)
SELECT "High assists" FROM table_21472 WHERE "High rebounds" = 'Erick Dampier (8)'
Who had the high assists while Erick Dampier (8) had the high rebounds?
CREATE TABLE table_21472 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT prize FROM table_name_31 WHERE year > 2002 AND competition = "camra london and south east regional competition" AND beer_name = "good old boy"
What prize did good old boy win in 2002 at the camra london and south east regional competition?
CREATE TABLE table_name_31 (prize VARCHAR, beer_name VARCHAR, year VARCHAR, competition VARCHAR)
SELECT school_year FROM table_14603212_1 WHERE class_a = "Lindsay" AND class_aAA = Cuero
Which school years have a class a being lindsay and a class aaa being cuero?
CREATE TABLE table_14603212_1 (school_year VARCHAR, class_a VARCHAR, class_aAA VARCHAR, Cuero VARCHAR)
SELECT "NTFS" FROM table_32636 WHERE "ReFS" = 'no' AND "HPFS" = 'yes'
Which NTFS has a no for ReFS and a yes for HPFS?
CREATE TABLE table_32636 ( "FAT16" text, "FAT32" text, "HPFS" text, "ISO 9660" text, "NTFS" text, "ReFS" text )
SELECT AVG(year) FROM table_name_93 WHERE beer_name = "maggs magnificent mild" AND prize = "gold medal" AND category = "mild and porter" AND competition = "siba south east region beer competition"
What year did maggs magnificent mild win a gold medal in the mild and porter category at the siba south east region beer competition?
CREATE TABLE table_name_93 (year INTEGER, competition VARCHAR, category VARCHAR, beer_name VARCHAR, prize VARCHAR)
SELECT season FROM table_14609295_4 WHERE overall = "29-7"
What season was the overall record 29-7?
CREATE TABLE table_14609295_4 (season VARCHAR, overall VARCHAR)
SELECT form__to_sing_ FROM table_25401_2 WHERE brazilian_portuguese = "[kɐ̃ˈtẽmus]"
What is the form ('to sing') when brazilian portuguese is [k t mus]?
CREATE TABLE table_25401_2 ( form__to_sing_ VARCHAR, brazilian_portuguese VARCHAR )
SELECT beer_name FROM table_name_33 WHERE prize = "silver medal" AND competition = "camra reading branch beer festival" AND year = 2008
What beer won a silver medal at the camra reading branch beer festival in 2008?
CREATE TABLE table_name_33 (beer_name VARCHAR, year VARCHAR, prize VARCHAR, competition VARCHAR)
SELECT postseason FROM table_14609295_4 WHERE overall = "29-7"
How far into the postseason did the Rams go when their record was 29-7?
CREATE TABLE table_14609295_4 (postseason VARCHAR, overall VARCHAR)
SELECT party FROM table_1342393_16 WHERE first_elected = 1920
Name the party or first elected is 1920
CREATE TABLE table_1342393_16 ( party VARCHAR, first_elected VARCHAR )
SELECT model_number FROM table_name_70 WHERE part_number_s_ = "ay80609003987ab"
What is Model Number, when Part Number(s) is AY80609003987AB?
CREATE TABLE table_name_70 (model_number VARCHAR, part_number_s_ VARCHAR)
SELECT conference FROM table_14609295_4 WHERE postseason = "CBI Champions"
What was the Ram's conference record when they were the CBI champions?
CREATE TABLE table_14609295_4 (conference VARCHAR, postseason VARCHAR)
SELECT MAX(drawn) FROM table_name_65 WHERE nationality = "england" AND games = 37
What is the largest draw with 37 games from England?
CREATE TABLE table_name_65 ( drawn INTEGER, nationality VARCHAR, games VARCHAR )
SELECT frequency FROM table_name_85 WHERE part_number_s_ = "ay80609004002ac"
What is Frequency, when Part Number(s) is AY80609004002AC?
CREATE TABLE table_name_85 (frequency VARCHAR, part_number_s_ VARCHAR)
SELECT season FROM table_14609295_4 WHERE overall = "24-10"
What season was the overall record 24-10?
CREATE TABLE table_14609295_4 (season VARCHAR, overall VARCHAR)
SELECT CAST(STR(DATEPART(hour, p.CreationDate)) AS INT) AS Hour, COUNT(DATEPART(hour, p.CreationDate)) AS "# of questions" FROM Posts AS p WHERE p.PostTypeId = 1 AND DATEDIFF(DAY, p.CreationDate, GETDATE()) < '##Days:int?7##' GROUP BY DATEPART(hour, p.CreationDate)
Site's questions per hour of the day. Questions grouped per hour of the day, posted less than X Days ago; also graphed
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number,...
SELECT sspec_number FROM table_name_98 WHERE frequency = "1 ghz"
What is sSpec Number, when Frequency is 1 GHZ?
CREATE TABLE table_name_98 (sspec_number VARCHAR, frequency VARCHAR)
SELECT school_year FROM table_14603212_5 WHERE class_aAA = Argyle
What are the school years where class "AAA" is argyle?
CREATE TABLE table_14603212_5 (school_year VARCHAR, class_aAA VARCHAR, Argyle VARCHAR)
SELECT AVG(t1.c1) FROM (SELECT COUNT(DISTINCT diagnosis.patientunitstayid) AS c1 FROM diagnosis WHERE diagnosis.diagnosisname = 'sepsis' AND STRFTIME('%y', diagnosis.diagnosistime) = '2104' GROUP BY STRFTIME('%y-%m-%d', diagnosis.diagnosistime)) AS t1
what is the average number of daily diagnosed cases of sepsis in 2104?
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartr...
SELECT release_date FROM table_name_22 WHERE sspec_number = "slbze(c0)slbr8"
What is Release Date, when sSpec Number is SLBZE(C0)SLBR8?
CREATE TABLE table_name_22 (release_date VARCHAR, sspec_number VARCHAR)
SELECT class_aAA FROM table_14603212_5 WHERE school_year = "2005-06"
What are all the AAA classes in the school years of 2005-06?
CREATE TABLE table_14603212_5 (class_aAA VARCHAR, school_year VARCHAR)
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%'
For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of hire_date and the average of manager_id bin hire_date by time.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25...
SELECT l2_cache FROM table_name_60 WHERE model_number = "atom z625"
What is L2 Cache, when Model Number is Atom Z625?
CREATE TABLE table_name_60 (l2_cache VARCHAR, model_number VARCHAR)
SELECT class_aAAA FROM table_14603212_5 WHERE school_year = "2004-05"
What are all the AAAA classes in the schools years 2004-05?
CREATE TABLE table_14603212_5 (class_aAAA VARCHAR, school_year VARCHAR)
SELECT Founder, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder
For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the average of price , and group by attribute founder, order by the x axis in ascending.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT COUNT(pick) FROM table_name_17 WHERE player = "renaldo wynn" AND round < 1
Which Pick has a Player of renaldo wynn, and a Round smaller than 1?
CREATE TABLE table_name_17 (pick VARCHAR, player VARCHAR, round VARCHAR)
SELECT school_year FROM table_14603212_5 WHERE class_aAAA = Gregory - Portland
What are all the school years where class AAAA is in Gregory-Portland?
CREATE TABLE table_14603212_5 (school_year VARCHAR, class_aAAA VARCHAR, Gregory VARCHAR, Portland VARCHAR)
SELECT AVG("Money ( $ )") FROM table_62412 WHERE "Place" = 't8' AND "Score" = '68-71-69-72=280'
What is the average amount of money of players in t8 place with a 68-71-69-72=280 score?
CREATE TABLE table_62412 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real )
SELECT SUM(round) FROM table_name_49 WHERE player = "damon jones"
Which Round has a Player of damon jones?
CREATE TABLE table_name_49 (round INTEGER, player VARCHAR)
SELECT class_aAA FROM table_14603212_5 WHERE school_year = "2004-05"
What are all the AAA classes in the school years of 2004-05?
CREATE TABLE table_14603212_5 (class_aAA VARCHAR, school_year VARCHAR)
SELECT "Name origin" FROM table_21101 WHERE "Longitude" = '355.0E'
At the longitude of 355.0e, what is the name origin?
CREATE TABLE table_21101 ( "Name" text, "Latitude" text, "Longitude" text, "Diameter (km)" text, "Year named" real, "Name origin" text )
SELECT college FROM table_name_50 WHERE round < 2
Which College has a Round smaller than 2?
CREATE TABLE table_name_50 (college VARCHAR, round INTEGER)
SELECT class FROM table_14624447_24 WHERE position = "SLB"
What are all classes for the position SLB?
CREATE TABLE table_14624447_24 (class VARCHAR, position VARCHAR)
SELECT "Country" FROM table_3733 WHERE "Last/Current driver(s) 3 November 2013" = 'Daniel Abt ( 2012 )'
What is the country when last/current driver(s) 3 november 2013 is daniel abt ( 2012 )?
CREATE TABLE table_3733 ( "Country" text, "Total Drivers" real, "Champions" text, "Championships" text, "Current 3 November 2013" real, "First driver(s)" text, "Last/Current driver(s) 3 November 2013" text )
SELECT event FROM table_name_94 WHERE location = "northfield, mn"
Which event is located in Northfield, Mn?
CREATE TABLE table_name_94 (event VARCHAR, location VARCHAR)
SELECT weight FROM table_14624447_24 WHERE number = 27
What are all weights for the number 27?
CREATE TABLE table_14624447_24 (weight VARCHAR, number VARCHAR)
SELECT T1.Name, COUNT(T1.Name) FROM Physician AS T1 JOIN Trained_In AS T2 ON T1.EmployeeID = T2.Physician JOIN Procedures AS T3 ON T3.Code = T2.Treatment WHERE T3.Cost > 5000 GROUP BY T1.Name ORDER BY COUNT(T1.Name)
Find the physicians who are trained in a procedure that costs more than 5000, and count them by a bar chart, display by the how many name from low to high.
CREATE TABLE Patient ( SSN INTEGER, Name VARCHAR(30), Address VARCHAR(30), Phone VARCHAR(30), InsuranceID INTEGER, PCP INTEGER ) CREATE TABLE Department ( DepartmentID INTEGER, Name VARCHAR(30), Head INTEGER ) CREATE TABLE Stay ( StayID INTEGER, Patient INTEGER, Room IN...
SELECT event FROM table_name_88 WHERE distance = "ft10in (m)"
Which event has a distance of ft10in (m)?
CREATE TABLE table_name_88 (event VARCHAR, distance VARCHAR)
SELECT name FROM table_14624447_24 WHERE position = "FS"
What are all names for the position FS?
CREATE TABLE table_14624447_24 (name VARCHAR, position VARCHAR)
SELECT COUNT("player") FROM table_204_170 WHERE "hometown" = 'ann arbor'
how many players were from ann arbor ?
CREATE TABLE table_204_170 ( id number, "player" text, "position" text, "games\nstarted" text, "hometown" text, "height" text, "weight" number, "age" number )
SELECT distance FROM table_name_97 WHERE event = "bass pro shops"
What distance does the Bass Pro Shops event have?
CREATE TABLE table_name_97 (distance VARCHAR, event VARCHAR)
SELECT call_sign FROM table_14623167_1 WHERE physical = 17
Name the call sign for the 17 physical
CREATE TABLE table_14623167_1 (call_sign VARCHAR, physical VARCHAR)
SELECT p.Id AS "post_link", p.CreationDate, p.OwnerUserId AS "user_link" FROM Posts AS p WHERE p.Body LIKE '% i %' COLLATE Latin1_General_BIN OR p.Title LIKE 'a-z%' COLLATE Latin1_General_BIN OR p.Body LIKE '%`%' ORDER BY p.CreationDate DESC
CLEANUP: find posts that could probably use some copy-editing.
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CRE...
SELECT date FROM table_name_56 WHERE handler = "mike jackson" AND event = "indianapolis boat, sport & travel show"
On what date was Mike Jackson a handler at the Indianapolis Boat, Sport & Travel Show?
CREATE TABLE table_name_56 (date VARCHAR, handler VARCHAR, event VARCHAR)
SELECT branding FROM table_14623167_1 WHERE owner = "Forum Communications"
Name the branding for forum communications
CREATE TABLE table_14623167_1 (branding VARCHAR, owner VARCHAR)
SELECT MAX("Pl GP") FROM table_78102 WHERE "Reg GP" > '18'
What's the highest Pl GP with a Reg GP over 18?
CREATE TABLE table_78102 ( "Rd #" real, "Pick #" real, "Player" text, "Team (League)" text, "Reg GP" real, "Pl GP" real )
SELECT opponent FROM table_name_78 WHERE attendance < 751
Who did they play when there were only 751 in attendance?
CREATE TABLE table_name_78 (opponent VARCHAR, attendance INTEGER)
SELECT COUNT(branding) FROM table_14623167_1 WHERE physical = 31
Name the number of branding for 31 physical
CREATE TABLE table_14623167_1 (branding VARCHAR, physical VARCHAR)
SELECT Id AS "user_link", * FROM (SELECT * FROM Users WHERE Age != '' AND Age >= 13 AND Reputation > 5000 ORDER BY Age LIMIT 100) AS users
Youngest Users With More than 5000 Reputation.
CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate tim...
SELECT date FROM table_name_14 WHERE venue = "away" AND opponent = "swindon wildcats"
When did they play the swindon wildcats away?
CREATE TABLE table_name_14 (date VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT COUNT(virtual) FROM table_14623167_1 WHERE network = "NBC"
Name the number of virtual for NBC
CREATE TABLE table_14623167_1 (virtual VARCHAR, network VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Hemorrhage complic proc" AND prescriptions.drug_type = "MAIN"
count the number of patients whose diagnoses short title is hemorrhage complic proc and drug type is main?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( ...
SELECT man_of_the_match FROM table_name_28 WHERE venue = "home" AND opponent = "romford raiders"
Who was the Man of the Match when they played the Romford Raiders at home?
CREATE TABLE table_name_28 (man_of_the_match VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT COUNT(virtual) FROM table_14623167_1 WHERE network = "Fox"
Name the virtual for Fox
CREATE TABLE table_14623167_1 (virtual VARCHAR, network VARCHAR)