answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT "Episode #" FROM table_11011 WHERE "Title" = 'threshold of pain' | What is the episode number of the episode titled 'Threshold of Pain'? | CREATE TABLE table_11011 (
"Episode #" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text
) |
SELECT tournament FROM table_name_6 WHERE score = "5–7, 2–6" | What Tournament has a Score of 5–7, 2–6? | CREATE TABLE table_name_6 (tournament VARCHAR, score VARCHAR) |
SELECT directed_by FROM table_26982362_2 WHERE production_code = "693-004" | Who directed the episode with production code 693-004? | CREATE TABLE table_26982362_2 (directed_by VARCHAR, production_code VARCHAR) |
SELECT MIN("Laps") FROM table_76655 WHERE "Time/Retired" = '+23.215' AND "Grid" > '11' | Which Laps have a Time/Retired of +23.215, and a Grid larger than 11? | CREATE TABLE table_76655 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) |
SELECT place FROM table_name_7 WHERE score = 71 - 70 = 141 | Which Place has a Score of 71-70=141? | CREATE TABLE table_name_7 (place VARCHAR, score VARCHAR) |
SELECT COUNT(original_airdate) FROM table_26982362_2 WHERE production_code = "693-002" | The episode with production code 693-002, has how many original airdates? | CREATE TABLE table_26982362_2 (original_airdate VARCHAR, production_code VARCHAR) |
SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Road, All_Home ORDER BY All_Home DESC | Find All_Home and Team_ID , and group by attribute ACC_Road, and visualize them by a bar chart, and order in desc by the x axis. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... |
SELECT country FROM table_name_76 WHERE score = 69 - 66 = 135 | Which Country has a Score of 69-66=135? | CREATE TABLE table_name_76 (country VARCHAR, score VARCHAR) |
SELECT title FROM table_26982362_2 WHERE original_airdate = "April 23, 2010" | What is the title of the episode whose original airdate is April 23, 2010? | CREATE TABLE table_26982362_2 (title VARCHAR, original_airdate VARCHAR) |
SELECT city_code FROM student WHERE fname = "Linda" AND lname = "Smith" | Which city does student Linda Smith live in? | CREATE TABLE visits_restaurant (
stuid number,
resid number,
time time,
spent number
)
CREATE TABLE restaurant_type (
restypeid number,
restypename text,
restypedescription text
)
CREATE TABLE type_of_restaurant (
resid number,
restypeid number
)
CREATE TABLE restaurant (
resi... |
SELECT country FROM table_name_33 WHERE to_par = "–9" | Which Country has a To par of –9? | CREATE TABLE table_name_33 (country VARCHAR, to_par VARCHAR) |
SELECT rider FROM table_26986076_7 WHERE tues_24_aug = "22' 09.44 93.840mph" | Who had the time of 22' 09.44 93.840mph on Tuesday August 24th? | CREATE TABLE table_26986076_7 (rider VARCHAR, tues_24_aug VARCHAR) |
SELECT mpg_uk_urban__cold_ FROM table_name_8 WHERE fuel_type = "diesel" AND mpg_uk_extra_urban > 68.9 AND engine_capacity = 1422 AND l_100km_urban__cold_ > 5.1 | What is the mpg-UK urban (cold) for a fuel type of diesel, extraurban MPG in the UK over 68.9, engine capacity of 1422, and L/100km urban (cold) over 5.1? | CREATE TABLE table_name_8 (
mpg_uk_urban__cold_ VARCHAR,
l_100km_urban__cold_ VARCHAR,
engine_capacity VARCHAR,
fuel_type VARCHAR,
mpg_uk_extra_urban VARCHAR
) |
SELECT to_par FROM table_name_14 WHERE country = "united states" AND score = 71 - 70 = 141 | Which To par has a Country of united states, and a Score of 71-70=141? | CREATE TABLE table_name_14 (to_par VARCHAR, country VARCHAR, score VARCHAR) |
SELECT l3_cache__mb_ FROM table_269920_16 WHERE speed__ghz_ = "2.93" | What is the L3 cache for the processor having a speed of 2.93 GHz? | CREATE TABLE table_269920_16 (l3_cache__mb_ VARCHAR, speed__ghz_ VARCHAR) |
SELECT "Finsbury Division" FROM table_20952 WHERE "Inns of Court and Chancery" = '1546' | When 1546 is inns of court and chancery what is the finsbury division? | CREATE TABLE table_20952 (
"Year" real,
"Edmonton Hundred" real,
"Elthorne Hundred" real,
"Gore Hundred" real,
"Isleworth Hundred" real,
"Holborn Division" real,
"Finsbury Division" real,
"Kensington Division" real,
"Tower Division" real,
"Spelthorne Hundred" real,
"Within th... |
SELECT player FROM table_name_5 WHERE to_par = "–5" AND country = "england" | Which Player has a To par of –5, and a Country of england? | CREATE TABLE table_name_5 (player VARCHAR, to_par VARCHAR, country VARCHAR) |
SELECT COUNT(cores) FROM table_269920_16 WHERE speed__ghz_ = "2.53" | How many entries have a speed of exactly 2.53 GHz? | CREATE TABLE table_269920_16 (cores VARCHAR, speed__ghz_ VARCHAR) |
SELECT Category, COUNT(Category) FROM music_festival WHERE Result = "Awarded" GROUP BY Category ORDER BY Category DESC | A bar chart for what are the number of the category of music festivals with result 'Awarded'?, and I want to order by the X-axis from high to low. | CREATE TABLE artist (
Artist_ID int,
Artist text,
Age int,
Famous_Title text,
Famous_Release_date text
)
CREATE TABLE volume (
Volume_ID int,
Volume_Issue text,
Issue_Date text,
Weeks_on_Top real,
Song text,
Artist_ID int
)
CREATE TABLE music_festival (
ID int,
Musi... |
SELECT category FROM table_name_89 WHERE award = "monte carlo tv festival awards" AND year > 2010 | Which Category has an Award of monte carlo tv festival awards, and a Year larger than 2010? | CREATE TABLE table_name_89 (category VARCHAR, award VARCHAR, year VARCHAR) |
SELECT speed__ghz_ FROM table_269920_16 WHERE model = "W3540" | What is the speed of the model whose number is W3540? | CREATE TABLE table_269920_16 (speed__ghz_ VARCHAR, model VARCHAR) |
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'endo polpectomy lrge ... | how many patients was given endo polpectomy lrge int since 2 years ago for two times? | CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... |
SELECT COUNT(year) FROM table_name_42 WHERE result = "nominated" | How many years have a Result of nominated? | CREATE TABLE table_name_42 (year VARCHAR, result VARCHAR) |
SELECT wed_25_aug FROM table_26986076_6 WHERE fri_27_aug = "22' 23.97 101.065mph" | What was the Weds 25 Aug time for the driver whose Aug 27 time was 22' 23.97 101.065mph? | CREATE TABLE table_26986076_6 (wed_25_aug VARCHAR, fri_27_aug VARCHAR) |
SELECT "Date" FROM table_11735 WHERE "Away team score" = '4.7 (31)' | What is the date that the away team scored 4.7 (31)? | CREATE TABLE table_11735 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT result FROM table_name_82 WHERE category = "outstanding actor (drama)" | Which Result has a Category of outstanding actor (drama)? | CREATE TABLE table_name_82 (result VARCHAR, category VARCHAR) |
SELECT sat_21_aug FROM table_26986076_6 WHERE thurs_26_aug = "20' 56.01 108.143mph" | What was the Sat 21 Aug time for the driver whose Thurs 26 Aug time was 20' 56.01 108.143mph? | CREATE TABLE table_26986076_6 (sat_21_aug VARCHAR, thurs_26_aug VARCHAR) |
SELECT COUNT("nation") FROM table_203_165 | what is the total number of nations that participated in the beach games of 2012 ? | CREATE TABLE table_203_165 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) |
SELECT result FROM table_name_45 WHERE award = "virgin media tv awards" | Which Result has an Award of virgin media tv awards? | CREATE TABLE table_name_45 (result VARCHAR, award VARCHAR) |
SELECT sat_21_aug FROM table_26986076_6 WHERE tues_24_aug = "20' 38.40 109.680mph" | What was the Sat 21 Aug time for the rider whose Tues 24 Aug time was 20' 38.40 109.680mph? | CREATE TABLE table_26986076_6 (sat_21_aug VARCHAR, tues_24_aug VARCHAR) |
SELECT AVG(rank) FROM table_name_57 WHERE bronze < 1 AND silver > 1 | What rank was the country with no bronze but at least 1 silver medals? | CREATE TABLE table_name_57 (
rank INTEGER,
bronze VARCHAR,
silver VARCHAR
) |
SELECT prize_money FROM table_name_60 WHERE round = "second round qualifying" | What is the prize money for the second round qualifying that is listed? | CREATE TABLE table_name_60 (prize_money VARCHAR, round VARCHAR) |
SELECT area__km²_ FROM table_269888_1 WHERE population__2010_ = 53542 | Name the area for population of 53542 | CREATE TABLE table_269888_1 (area__km²_ VARCHAR, population__2010_ VARCHAR) |
SELECT HIRE_DATE, AVG(EMPLOYEE_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, return a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by time. | 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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... |
SELECT SUM(year) FROM table_name_83 WHERE outcome = "runner-up" AND championship = "indian wells" | How many years have runner-up as the outcome, and indian wells as the championship? | CREATE TABLE table_name_83 (year INTEGER, outcome VARCHAR, championship VARCHAR) |
SELECT no_of_s_barangay FROM table_269888_1 WHERE pop_density__per_km²_ = "205.4" | Name the number of barangay for 205.4 density | CREATE TABLE table_269888_1 (no_of_s_barangay VARCHAR, pop_density__per_km²_ VARCHAR) |
SELECT transfers.wardid FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27739) AND NOT transfers.wardid IS NULL AND DATETIME(transfers.intime) >= DATETIME(CURRENT_TIME(), '-3 year') ORDER BY transfers.intime DESC LIMIT 1 | what was the last ward id that patient 27739 went since 3 years ago? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
... |
SELECT score FROM table_name_80 WHERE year = 2000 | What score has 2000 as the year? | CREATE TABLE table_name_80 (score VARCHAR, year VARCHAR) |
SELECT COUNT(fsb__mhz_) FROM table_269920_3 WHERE model = "7140N" | How many different FSB are there for the 7140N model? | CREATE TABLE table_269920_3 (fsb__mhz_ VARCHAR, model VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Phlebitis and thrombophlebitis of superficial veins of upper extremities" AND lab.flag = "abnormal" | count the number of patients whose diagnosis long title is phlebitis and thrombophlebitis of superficial veins of upper extremities and lab test abnormal status is abnormal. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 t... |
SELECT surface FROM table_name_63 WHERE championship = "indian wells" AND outcome = "winner" | What surface has indian wells as the championship, with winner as the outcome? | CREATE TABLE table_name_63 (surface VARCHAR, championship VARCHAR, outcome VARCHAR) |
SELECT COUNT(l2_cache__mb_) FROM table_269920_3 WHERE model = "7130M" | How many different L2 cache numbers are there for the 7130M model? | CREATE TABLE table_269920_3 (l2_cache__mb_ VARCHAR, model VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester... | Is there a list for next semester of 300 -level courses being offered ? | CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varc... |
SELECT AVG(money___) AS $__ FROM table_name_16 WHERE to_par > 12 | Which average money has a To par larger than 12? | CREATE TABLE table_name_16 (money___ INTEGER, to_par INTEGER) |
SELECT MAX(l2_cache__mb_) FROM table_269920_3 | What's the maximal L3 cache for any of the models given? | CREATE TABLE table_269920_3 (l2_cache__mb_ INTEGER) |
SELECT "Frequency MHz" FROM table_35480 WHERE "ERP W" > '4' AND "Call sign" = 'w218ap' | Which Frequency MHz has an ERP W larger than 4, and a Call sign of w218ap? | CREATE TABLE table_35480 (
"Call sign" text,
"Frequency MHz" text,
"City of license" text,
"ERP W" real,
"FCC info" text
) |
SELECT country FROM table_name_18 WHERE to_par < 6 AND money___$__ > 700 AND score = 69 - 73 - 70 - 71 = 283 | Which Country has a To par smaller than 6, and a Money ($) larger than 700, and a Score of 69-73-70-71=283? | CREATE TABLE table_name_18 (country VARCHAR, to_par VARCHAR, money___$__ VARCHAR, score VARCHAR) |
SELECT MIN(tdp__w_) FROM table_269920_3 WHERE model = "7130N" | What's the TDP for the 7130N model? | CREATE TABLE table_269920_3 (tdp__w_ INTEGER, model VARCHAR) |
SELECT Location_Code, COUNT(*) FROM Document_Locations GROUP BY Location_Code | Give me a pie to show the total number from different location code. | CREATE TABLE Documents_to_be_Destroyed (
Document_ID INTEGER,
Destruction_Authorised_by_Employee_ID INTEGER,
Destroyed_by_Employee_ID INTEGER,
Planned_Destruction_Date DATETIME,
Actual_Destruction_Date DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE Employees (
Employee_ID INTEGER,
... |
SELECT AVG(money___) AS $__ FROM table_name_76 WHERE place = "t10" AND player = "denny shute" AND to_par > 12 | Which average money has a Place of t10, and a Player of denny shute, and a To par larger than 12? | CREATE TABLE table_name_76 (money___ INTEGER, to_par VARCHAR, place VARCHAR, player VARCHAR) |
SELECT l2_cache__mb_ FROM table_269920_3 WHERE model = "7140N" | What's the L2 cache for the 7140N model? | CREATE TABLE table_269920_3 (l2_cache__mb_ VARCHAR, model VARCHAR) |
SELECT name FROM instructor WHERE salary > (SELECT MIN(salary) FROM instructor WHERE dept_name = 'Biology') | Find names of instructors with salary greater than that of some (at least one) instructor in the Biology department. | CREATE TABLE classroom (
building text,
room_number text,
capacity number
)
CREATE TABLE instructor (
id text,
name text,
dept_name text,
salary number
)
CREATE TABLE prereq (
course_id text,
prereq_id text
)
CREATE TABLE department (
dept_name text,
building text,
bud... |
SELECT country FROM table_name_93 WHERE money___$__ = 0 AND place = "t10" | Which Country has a Money ($) of 0, and a Place of t10? | CREATE TABLE table_name_93 (country VARCHAR, money___$__ VARCHAR, place VARCHAR) |
SELECT COUNT(cfl_team) FROM table_26996293_4 WHERE college = "Waterloo" | what is the cfl team where college is waterloo? | CREATE TABLE table_26996293_4 (cfl_team VARCHAR, college VARCHAR) |
SELECT AVG("Rank by average") FROM table_77663 WHERE "Total" > '245' AND "Average" = '27.1' AND "Number of dances" < '15' | What is the rank by average where the total was larger than 245 and the average was 27.1 with fewer than 15 dances? | CREATE TABLE table_77663 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total" real,
"Number of dances" real,
"Average" real
) |
SELECT MAX(flap) FROM table_name_97 WHERE bike = "honda nsr500" AND race > 16 | What is the highest FLap by a Honda NSR500 bike after Race 16? | CREATE TABLE table_name_97 (flap INTEGER, bike VARCHAR, race VARCHAR) |
SELECT college FROM table_26996293_1 WHERE player = "Jim Bennett" | What college did Jim Bennett attend? | CREATE TABLE table_26996293_1 (college VARCHAR, player VARCHAR) |
SELECT 1993 FROM table_name_44 WHERE 1990 = "qf" AND 1995 = "2r" | What is the 1993 finish for the event that had a 1990 of QF and 1995 of 2R? | CREATE TABLE table_name_44 (
Id VARCHAR
) |
SELECT COUNT(tonnage__grt_) FROM table_name_8 WHERE nationality = "united kingdom" AND date = "27 june 1941" | How much tonnage Tonnage (GRT) has a Nationality of united kingdom, and a Date of 27 june 1941? | CREATE TABLE table_name_8 (tonnage__grt_ VARCHAR, nationality VARCHAR, date VARCHAR) |
SELECT cfl_team FROM table_26996293_1 WHERE player = "Barry Jamieson" | What CFL Team was Barry Jamieson a part of? | CREATE TABLE table_26996293_1 (cfl_team VARCHAR, player VARCHAR) |
SELECT margin FROM table_name_88 WHERE year = 2001 AND championship = "mcdonald's lpga championship" | What was the margin in 2001 at the McDonald's LPGA Championship? | CREATE TABLE table_name_88 (
margin VARCHAR,
year VARCHAR,
championship VARCHAR
) |
SELECT nationality FROM table_name_39 WHERE date = "8 may 1942" | Which Nationality has a Date of 8 may 1942? | CREATE TABLE table_name_39 (nationality VARCHAR, date VARCHAR) |
SELECT college FROM table_26996293_1 WHERE position = "DE" | What college did the player who played DE go to? | CREATE TABLE table_26996293_1 (college VARCHAR, position VARCHAR) |
SELECT "Winning jockey" FROM table_10940 WHERE "Track" = 'tampa bay downs' AND "Winning horse" = 'barkley sound' | What Winning Jockey ran in the Tampa Bay Downs Track on Winning Horse Barkley Sound? | CREATE TABLE table_10940 (
"Date" text,
"Track" text,
"Race" text,
"Distance" text,
"Purse ( US$ )" text,
"Surface track" text,
"Winning horse" text,
"Winning jockey" text
) |
SELECT MAX(round) FROM table_name_39 WHERE nationality = "canada" AND draft < 1973 | What is Canada's highest round before 1973? | CREATE TABLE table_name_39 (round INTEGER, nationality VARCHAR, draft VARCHAR) |
SELECT MAX(pick__number) FROM table_26996293_1 WHERE player = "Barry Jamieson" | What was Barry Jamieson's pick number? | CREATE TABLE table_26996293_1 (pick__number INTEGER, player VARCHAR) |
SELECT AVG("Population (Hervey Bay)") FROM table_68365 WHERE "Population (Maryborough)" > '11,415' AND "Population (Region total)" < '48,308' AND "Population (Tiaro)" < '2,066' AND "Population (Woocoo)" = '491' | Name the average population hervey bay with population maryborough more than 11,415 and population region total less than 48,308 and population tiaro less than 2,066 and population woocoo of 491 | CREATE TABLE table_68365 (
"Year" real,
"Population (Region total)" real,
"Population (Maryborough)" real,
"Population (Hervey Bay)" real,
"Population (Woocoo)" real,
"Population (Tiaro)" real
) |
SELECT AVG(year) FROM table_name_17 WHERE title_of_work = "saber" AND category = "best action" | What year was The Saber nominated for best action? | CREATE TABLE table_name_17 (year INTEGER, title_of_work VARCHAR, category VARCHAR) |
SELECT college FROM table_26996293_1 WHERE player = "Bob LaRose" | What college did Bob Larose attend? | CREATE TABLE table_26996293_1 (college VARCHAR, player VARCHAR) |
SELECT COUNT("Specimen weight/size") FROM table_28430 WHERE "Estimated exposure ( mRem )/hr*" = '0.28' | if the estimated exposure ( mrem )/hr* is 0.28, what is the specimen weight/size? | CREATE TABLE table_28430 (
"Specimen weight/size" text,
"Calculated activity ( Bq )" real,
"Calculated activity ( Ci )" text,
"Estimated activity GR(api)" text,
"Estimated exposure ( mRem )/hr*" text
) |
SELECT award FROM table_name_93 WHERE year < 2013 AND title_of_work = "saber" AND category = "best action" | What was awarded before 2013 to the Saber in the category of Best Action? | CREATE TABLE table_name_93 (award VARCHAR, category VARCHAR, year VARCHAR, title_of_work VARCHAR) |
SELECT player FROM table_26996293_2 WHERE college = "British Columbia" | where college is british columbia what are all the player | CREATE TABLE table_26996293_2 (player VARCHAR, college VARCHAR) |
SELECT outcome FROM table_name_43 WHERE opponent_in_the_final = "simone colombo" | Which Outcome has an Opponent in the final of simone colombo? | CREATE TABLE table_name_43 (
outcome VARCHAR,
opponent_in_the_final VARCHAR
) |
SELECT date FROM table_name_97 WHERE plant_patent_number = "us plant patent 12098" | What date had the patent number US plant patent 12098? | CREATE TABLE table_name_97 (date VARCHAR, plant_patent_number VARCHAR) |
SELECT pick__number FROM table_26996293_2 WHERE college = "St. Francis Xavier" | where college is st. francis xavier what are all the pick # | CREATE TABLE table_26996293_2 (pick__number VARCHAR, college VARCHAR) |
SELECT T1.name FROM genre AS T1 JOIN track AS T2 ON T1.genreid = T2.genreid GROUP BY T2.genreid ORDER BY COUNT(*) DESC LIMIT 1 | Find the name of the genre that is most frequent across all tracks. | CREATE TABLE playlisttrack (
playlistid number,
trackid number
)
CREATE TABLE invoice (
invoiceid number,
customerid number,
invoicedate time,
billingaddress text,
billingcity text,
billingstate text,
billingcountry text,
billingpostalcode text,
total number
)
CREATE TABLE ... |
SELECT mutated_from FROM table_name_39 WHERE plant_patent_number = "us plant patent 9645" | What's the mutated having a patent number of US plant patent 9645? | CREATE TABLE table_name_39 (mutated_from VARCHAR, plant_patent_number VARCHAR) |
SELECT position FROM table_26996293_2 WHERE player = "Jim Henshall" | player is jim henshall what are all the position | CREATE TABLE table_26996293_2 (position VARCHAR, player VARCHAR) |
WITH FirstQuestions AS (SELECT OwnerUserId, RANK() OVER (PARTITION BY OwnerUserId ORDER BY Id) AS Rank, PostTypeId, AcceptedAnswerId FROM Posts WHERE NOT OwnerUserId IS NULL), AttractedUsers AS (SELECT A.OwnerUserId, COUNT(*) AS Count FROM FirstQuestions, Posts AS A WHERE FirstQuestions.Rank = 1 AND FirstQuestions.Acce... | Who attracted the most people into the system. | CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownV... |
SELECT plant_patent_number FROM table_name_63 WHERE habit = "standard" AND mutated_from = "yakata 7001" | What's the patent number when it was mutated from Yakata 7001 and a standard habit? | CREATE TABLE table_name_63 (plant_patent_number VARCHAR, habit VARCHAR, mutated_from VARCHAR) |
SELECT position FROM table_26996293_2 WHERE cfl_team = "Edmonton (2)" | where cfl team is edmonton (2) what are all the position | CREATE TABLE table_26996293_2 (position VARCHAR, cfl_team VARCHAR) |
SELECT "Place" FROM table_41296 WHERE "Player" = 'chris dimarco' | What is the Place, when the Player is Chris Dimarco? | CREATE TABLE table_41296 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) |
SELECT plant_patent_number FROM table_name_21 WHERE "inventor" = "fukuda" | What's the patent number of Fukuda? | CREATE TABLE table_name_21 (plant_patent_number VARCHAR) |
SELECT player FROM table_26996293_2 WHERE cfl_team = "Winnipeg (3) via Hamilton" | where cfl team is winnipeg (3) via hamilton what are all the player | CREATE TABLE table_26996293_2 (player VARCHAR, cfl_team VARCHAR) |
SELECT AVG(t1.c1) FROM (SELECT COUNT(DISTINCT diagnosis.patientunitstayid) AS c1 FROM diagnosis WHERE diagnosis.diagnosisname = 's/p vascular bypass' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-5 year') GROUP BY STRFTIME('%y-%m-%d', diagnosis.diagnosistime)) AS t1 | what are the average daily number of patients diagnosed with s/p vascular bypass since 5 years ago? | 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 patient (
uniquepid text,
pati... |
SELECT "inventor" FROM table_name_2 WHERE habit = "spur" AND pattern = "stripe" AND mutated_from = "redsport type 2" | Who's the inventor when it was mutated from Redsport Type 2, has a stripe pattern and a spur habit? | CREATE TABLE table_name_2 (mutated_from VARCHAR, habit VARCHAR, pattern VARCHAR) |
SELECT COUNT(cfl_team) FROM table_26996293_3 WHERE college = "Mount Allison" | How many CFL teams drafted someone from mount allison college? | CREATE TABLE table_26996293_3 (cfl_team VARCHAR, college VARCHAR) |
SELECT MAX("Lane") FROM table_13822 WHERE "Rank" < '6' AND "Nationality" = 'poland' | What is the highest lane for the poland swimmer who ranked under 6? | CREATE TABLE table_13822 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) |
SELECT mutated_from FROM table_name_19 WHERE assignee = "auvil" | What's the mutated of Auvil? | CREATE TABLE table_name_19 (mutated_from VARCHAR, assignee VARCHAR) |
SELECT player FROM table_26996293_3 WHERE position = "OG" | What player drafted was an OG? | CREATE TABLE table_26996293_3 (player VARCHAR, position VARCHAR) |
SELECT Category, COUNT(Category) FROM music_festival WHERE Result = "Awarded" GROUP BY Category ORDER BY COUNT(Category) DESC | What are the category of music festivals with result 'Awarded', and count them by a bar chart, and show by the Y-axis from high to low. | CREATE TABLE artist (
Artist_ID int,
Artist text,
Age int,
Famous_Title text,
Famous_Release_date text
)
CREATE TABLE music_festival (
ID int,
Music_Festival text,
Date_of_ceremony text,
Category text,
Volume int,
Result text
)
CREATE TABLE volume (
Volume_ID int,
V... |
SELECT model FROM table_name_37 WHERE top_speed = "231km/h (143mph)" | Which model has a top speed of 231km/h (143mph)? | CREATE TABLE table_name_37 (model VARCHAR, top_speed VARCHAR) |
SELECT position FROM table_26996293_7 WHERE player = "Bill Simmons" | What is the position of the player bill simmons? | CREATE TABLE table_26996293_7 (position VARCHAR, player VARCHAR) |
SELECT date_joined_staff FROM staff WHERE first_name = "Janessa" AND last_name = "Sawayn" | When did the staff member named Janessa Sawayn join the company? | CREATE TABLE vehicles (
vehicle_id number,
vehicle_details text
)
CREATE TABLE lessons (
lesson_id number,
customer_id number,
lesson_status_code text,
staff_id number,
vehicle_id number,
lesson_date time,
lesson_time text,
price number
)
CREATE TABLE staff (
staff_id numbe... |
SELECT 0 AS _100km_h__62mph_ FROM table_name_26 WHERE model = "slk200k" AND top_speed = "236km/h (147mph)" | How fast can the SLK200K, with a top speed of 236km/h (147mph), accelerate to 100km/h (62mph)? | CREATE TABLE table_name_26 (model VARCHAR, top_speed VARCHAR) |
SELECT position FROM table_26996293_7 WHERE cfl_team = "Saskatchewan (7)" | What is the position of cfl team saskatchewan (7)? | CREATE TABLE table_26996293_7 (position VARCHAR, cfl_team VARCHAR) |
SELECT "Finale" FROM table_22888 WHERE "Rank" = '7' | What is the finale number ranked at number 7? | CREATE TABLE table_22888 (
"Rank" real,
"English title" text,
"Chinese title" text,
"Average" real,
"Peak" real,
"Premiere" real,
"Finale" real,
"HK viewers" text
) |
SELECT 0 AS _100km_h__62mph_ FROM table_name_68 WHERE top_speed = "208km/h (129mph)" | What is the 0–100km/h (62mph) acceleration of the model with a top speed of 208km/h (129mph)? | CREATE TABLE table_name_68 (top_speed VARCHAR) |
SELECT COUNT(pick__number) FROM table_26996293_7 WHERE player = "Brian Currie" | How many times was player brian currie picked? | CREATE TABLE table_26996293_7 (pick__number VARCHAR, player 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 PHONE_NUMBER | For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of phone_number and manager_id , and show from low to high by the x-axis. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.