answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT "Height" FROM table_16392 WHERE "Weight" = '320' | What is the height of the person that weighs 320 pounds? | CREATE TABLE table_16392 (
"Round" real,
"Choice" real,
"Player name" text,
"Position" text,
"Height" text,
"Weight" real,
"College" text
) |
SELECT driver FROM table_name_45 WHERE laps > 8 AND constructor = "ferrari" AND grid = 8 | I want the driver for Laps more than 8 and ferrari with Grid of 8 | CREATE TABLE table_name_45 (driver VARCHAR, grid VARCHAR, laps VARCHAR, constructor VARCHAR) |
SELECT vacator FROM table_1958768_3 WHERE district = "Wisconsin 1st" | Name the vacator for wisconsin 1st | CREATE TABLE table_1958768_3 (vacator VARCHAR, district VARCHAR) |
SELECT "Score" FROM table_31666 WHERE "Opponent" = 'richmond' | What was the score when Richmond was the opponent? | CREATE TABLE table_31666 (
"Year" text,
"Competition" text,
"Opponent" text,
"Score" text,
"Venue" text
) |
SELECT title FROM table_name_28 WHERE translation = "vesoul" | Which title has the Translation of vesoul? | CREATE TABLE table_name_28 (title VARCHAR, translation VARCHAR) |
SELECT successor FROM table_1958768_3 WHERE district = "Pennsylvania 15th" | Name the successor for pennsylvania 15th | CREATE TABLE table_1958768_3 (successor VARCHAR, district VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "9" AND lab.label = "C4" | tell me the number of patients who had c4 lab test and were hospitalized for more than 9 days. | 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 t... |
SELECT original_title FROM table_name_56 WHERE year = "1996 (11th)" AND winner_and_nominees = "breaking the waves" | What was the orignal title for the winner and nominee, Breaking the Waves, in 1996 (11th)? | CREATE TABLE table_name_56 (original_title VARCHAR, year VARCHAR, winner_and_nominees VARCHAR) |
SELECT circuit FROM table_19598014_2 WHERE challenge_winning_team = "#47 Orbit Racing" | Name the circuit for #47 orbit racing | CREATE TABLE table_19598014_2 (circuit VARCHAR, challenge_winning_team VARCHAR) |
SELECT "Record" FROM table_48338 WHERE "Year" > '1992' AND "Manager" = 'tom kotchman' AND "Finish" = '2nd' | what is the record when the year is after 1992, manager is tom kotchman and finish is 2nd? | CREATE TABLE table_48338 (
"Year" real,
"MLB Club" text,
"Record" text,
"Finish" text,
"Manager" text
) |
SELECT original_title FROM table_name_25 WHERE winner_and_nominees = "secrets & lies" | What is the original title for the winner and nominees 'Secrets & Lies'? | CREATE TABLE table_name_25 (original_title VARCHAR, winner_and_nominees VARCHAR) |
SELECT gt2_winning_team FROM table_19598014_2 WHERE lmp2_winning_team = "Butch Leitzinger Marino Franchitti Ben Devlin" | Name the gt2 winning team where lmp2 winning team and butch leitzinger marino franchitti ben devlin | CREATE TABLE table_19598014_2 (gt2_winning_team VARCHAR, lmp2_winning_team VARCHAR) |
SELECT "origin" FROM table_204_430 WHERE "model" = 'mitsubishi l200' | what country uses the mitsubishi l200 by their military ? | CREATE TABLE table_204_430 (
id number,
"model" text,
"origin" text,
"type" text,
"version" text,
"in service" text,
"notes" text
) |
SELECT country FROM table_name_69 WHERE winner_and_nominees = "hidden agenda" | The winner and nominee 'Hidden Agenda' is from which country? | CREATE TABLE table_name_69 (country VARCHAR, winner_and_nominees VARCHAR) |
SELECT lmp1_winning_team FROM table_19598014_2 WHERE rnd = 2 AND lmp2_winning_team = "Adrian Fernández Luis Díaz" | Name the lmp 1 winning team for rnd being 2 and adrian fernández luis díaz | CREATE TABLE table_19598014_2 (lmp1_winning_team VARCHAR, rnd VARCHAR, lmp2_winning_team VARCHAR) |
SELECT COUNT(total) FROM table_name_2 WHERE finish = "1" | What is the Total of the Player with a Finish of 1? | CREATE TABLE table_name_2 (
total VARCHAR,
finish VARCHAR
) |
SELECT total_produced FROM table_name_49 WHERE service = "freight" AND builder’s_model = "u28c" | What is the total amount of freight produced of u28c? | CREATE TABLE table_name_49 (total_produced VARCHAR, service VARCHAR, builder’s_model VARCHAR) |
SELECT capital FROM table_19605700_1 WHERE area_km² = 377930 | Which capitals have an area of exactly 377930 square km? | CREATE TABLE table_19605700_1 (capital VARCHAR, area_km² VARCHAR) |
SELECT "Episode" FROM table_73280 WHERE "Coach" = 'Travis Brown' | Name the episode for travis brown | CREATE TABLE table_73280 (
"Season" real,
"Episode" real,
"Episode Summary" text,
"Premier date" text,
"External Link" text,
"Coach" text
) |
SELECT build_date FROM table_name_80 WHERE prr_class = "gf30a" | What is the build date for PRR Class gf30a? | CREATE TABLE table_name_80 (build_date VARCHAR, prr_class VARCHAR) |
SELECT COUNT(capital) FROM table_19605700_1 WHERE area_km² = 1104 | What is the total number of capitals that have an area of exactly 1104 square km? | CREATE TABLE table_19605700_1 (capital VARCHAR, area_km² VARCHAR) |
SELECT AVG(effic) FROM table_name_9 WHERE avg_g > 3.7 AND gp_gs = "13" AND cmp_att_int = "318-521-15" | Which Effic is the average one that has an Avg/G larger than 3.7, and a GP-GS of 13, and a Cmp-Att-Int of 318-521-15? | CREATE TABLE table_name_9 (
effic INTEGER,
cmp_att_int VARCHAR,
avg_g VARCHAR,
gp_gs VARCHAR
) |
SELECT prr_class FROM table_name_80 WHERE wheel_arrangement = "c-c" AND total_produced < 15 | What is the PRR class for wheel arrangement c-c and total less than 15? | CREATE TABLE table_name_80 (prr_class VARCHAR, wheel_arrangement VARCHAR, total_produced VARCHAR) |
SELECT capital FROM table_19605700_1 WHERE population = 1339724852 | What capital has a population of exactly 1339724852? | CREATE TABLE table_19605700_1 (capital VARCHAR, population VARCHAR) |
SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE STRFTIME('%y', diagnosis.diagnosistime) <= '2100' GROUP BY diagnosis.diagnosisname) AS t1 WHERE t1.c1 <= 3 | tell me, what is the top three most common diagnosis until 2100? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsysto... |
SELECT builder’s_model FROM table_name_61 WHERE service = "freight" AND prr_class = "gf28a" | What was the model for PRR class of gf28a freight? | CREATE TABLE table_name_61 (builder’s_model VARCHAR, service VARCHAR, prr_class VARCHAR) |
SELECT COUNT(population) FROM table_19605700_1 WHERE capital = "Hong Kong" | How many populations have a capital of Hong Kong? | CREATE TABLE table_19605700_1 (population VARCHAR, capital VARCHAR) |
SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-43795') AND NOT patient.admissionweight IS NULL AND patient.unitadmittime = '2103-12-18 05:43:00') - (SELECT patient.admissionweight FROM p... | how much does patient 006-43795 change in weight measured at 2103-12-18 05:43:00 compared to the value measured at 2103-08-01 17:39:00? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime... |
SELECT queens FROM table_name_21 WHERE manhattan = "189,524" | Who got 189,524 votes? | CREATE TABLE table_name_21 (queens VARCHAR, manhattan VARCHAR) |
SELECT male_population_2001 FROM table_19589113_5 WHERE growth_rate_1991_01 = "36.16" | 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 artist FROM table_name_28 WHERE weeks_on_top = "9 ¶" | Who was the artist of the single that spent 9 weeks on top? | CREATE TABLE table_name_28 (
artist VARCHAR,
weeks_on_top VARCHAR
) |
SELECT owner FROM table_name_51 WHERE frequency = "103.3 fm" | Which owner has the frequency of 103.3 FM? | CREATE TABLE table_name_51 (owner VARCHAR, frequency VARCHAR) |
SELECT MIN(total_population_2001) FROM table_19589113_5 WHERE growth_rate_1991_01 = "33.08" | What is the least value for total population in 2001 with a growth rate in 1991-01 of 33.08? | CREATE TABLE table_19589113_5 (total_population_2001 INTEGER, growth_rate_1991_01 VARCHAR) |
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-91239')) AND NOT vitalperiodic.heartrate IS NUL... | when was the first time that patient 015-91239 on this month/31 had the minimum heartrate value. | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE l... |
SELECT call_sign FROM table_name_25 WHERE format = "classic country" | What is the call sign of the Classic Country Music station? | CREATE TABLE table_name_25 (call_sign VARCHAR, format VARCHAR) |
SELECT male_population_2001 FROM table_19589113_5 WHERE sex_ratio_‡_1991 = 896 | What are all values for male population in 2001 when sex ratio in 1991 is 896? | CREATE TABLE table_19589113_5 (male_population_2001 VARCHAR, sex_ratio_‡_1991 VARCHAR) |
SELECT SUM(wins) FROM table_name_53 WHERE team = "ottawa hockey club" AND games_played < 10 | what is the sum of wins for the ottawa hockey club when the games played is less than 10? | CREATE TABLE table_name_53 (
wins INTEGER,
team VARCHAR,
games_played VARCHAR
) |
SELECT name FROM table_name_88 WHERE call_sign = "kdsu" | Which owner has the call sign of KDSU? | CREATE TABLE table_name_88 (name VARCHAR, call_sign VARCHAR) |
SELECT growth_rate_1991_01 FROM table_19589113_5 WHERE sex_ratio_‡_2001 = 937 | What is every growth rate in 1991-2001 when sex ratio in 2001 is 937? | CREATE TABLE table_19589113_5 (growth_rate_1991_01 VARCHAR, sex_ratio_‡_2001 VARCHAR) |
SELECT tenure FROM table_name_14 WHERE lineage = "3rd son of tadatsune" | What's the tenure of 3rd son of tadatsune? | CREATE TABLE table_name_14 (
tenure VARCHAR,
lineage VARCHAR
) |
SELECT call_sign FROM table_name_62 WHERE name = "thunder 106.1" | What is the call sign for Thunder 106.1? | CREATE TABLE table_name_62 (call_sign VARCHAR, name VARCHAR) |
SELECT districts_of_bihar FROM table_19589113_5 WHERE sex_ratio_‡_1991 = 864 | What districts of Bihar have a sex ratio in 1991 of 864? | CREATE TABLE table_19589113_5 (districts_of_bihar VARCHAR, sex_ratio_‡_1991 VARCHAR) |
SELECT "Purse" FROM table_6130 WHERE "Trainer" = 'aidan o''brien' | What was the purse when the trainer was Aidan O'Brien? | CREATE TABLE table_6130 (
"Year" real,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Time" text,
"Purse" text
) |
SELECT name FROM table_name_45 WHERE format = "contemporary christian music" AND frequency = "97.9 fm" | Which owner has a Contemporary Christian music station on 97.9 FM? | CREATE TABLE table_name_45 (name VARCHAR, format VARCHAR, frequency VARCHAR) |
SELECT marriages_between_women FROM table_19614212_1 WHERE _percentage_same_sex_marriages = "1.06" | How many marriages between women have % same-sex marriages of 1.06? | CREATE TABLE table_19614212_1 (marriages_between_women VARCHAR, _percentage_same_sex_marriages VARCHAR) |
SELECT MAX("Season") FROM table_42229 WHERE "Rank" < '1' | What is the highest season that had rank under 1? | CREATE TABLE table_42229 (
"Rank" real,
"Celebrity" text,
"Professional Partner" text,
"Season" real,
"Average" real
) |
SELECT leading_scorer FROM table_name_35 WHERE visitor = "pistons" | Who was the leading scorer in the game where the visiting team was the Pistons? | CREATE TABLE table_name_35 (leading_scorer VARCHAR, visitor VARCHAR) |
SELECT _percentage_same_sex_marriages FROM table_19614212_1 WHERE year = "2011" | What is the % of same-sex marriages for the year of 2011? | CREATE TABLE table_19614212_1 (_percentage_same_sex_marriages VARCHAR, year VARCHAR) |
SELECT capital FROM table_name_89 WHERE sno < 7 AND name_of_janapada = "punia" | What capital has an S.Number under 7, and a Name of janapada of Punia? | CREATE TABLE table_name_89 (
capital VARCHAR,
sno VARCHAR,
name_of_janapada VARCHAR
) |
SELECT MIN(attendance) FROM table_name_96 WHERE leading_scorer = "tim duncan (24)" AND home = "spurs" | How many people attended the game where the leading scorer was Tim Duncan (24), and the home team was the Spurs? | CREATE TABLE table_name_96 (attendance INTEGER, leading_scorer VARCHAR, home VARCHAR) |
SELECT COUNT(_percentage_same_sex_marriages) FROM table_19614212_1 WHERE year = "2008" | How many % same-sex marriages are there for the year 2008? | CREATE TABLE table_19614212_1 (_percentage_same_sex_marriages VARCHAR, year VARCHAR) |
SELECT COUNT(team__b_) FROM table_1594772_2 WHERE margin = "35 runs" AND winner = "India" | Name the number of team for 35 runs margin and india winner | CREATE TABLE table_1594772_2 (
team__b_ VARCHAR,
margin VARCHAR,
winner VARCHAR
) |
SELECT AVG(laps) FROM table_name_53 WHERE time_retired = "water leak" AND grid > 12 | What is the mean number of laps where Time/retired was a water leak and the grid number was bigger than 12? | CREATE TABLE table_name_53 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) |
SELECT COUNT(_percentage_same_sex_marriages) FROM table_19614212_1 WHERE marriages_between_men = 923 | How many % same-sex marriages are marriages between men for 923? | CREATE TABLE table_19614212_1 (_percentage_same_sex_marriages VARCHAR, marriages_between_men VARCHAR) |
SELECT COUNT("Goals Against") FROM table_46704 WHERE "Points 1" = '44' AND "Goals For" > '65' | When the Points 1 were 44 and the Goals For were larger than 65, what was the total number of Goals Against? | CREATE TABLE table_46704 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" real
) |
SELECT AVG(laps) FROM table_name_60 WHERE time_retired = "spun off" AND driver = "nick heidfeld" | What is the mean number of laps when time/retired was spun off and the driver was Nick Heidfeld? | CREATE TABLE table_name_60 (laps INTEGER, time_retired VARCHAR, driver VARCHAR) |
SELECT original_air_date FROM table_19632728_1 WHERE episode__number = 2 | When was the episode number 2 originally aired? | CREATE TABLE table_19632728_1 (original_air_date VARCHAR, episode__number VARCHAR) |
SELECT "date" FROM table_203_405 ORDER BY "attendance" DESC LIMIT 1 | which date has the most attendance ? | CREATE TABLE table_203_405 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
) |
SELECT COUNT(grid) FROM table_name_55 WHERE driver = "luciano burti" | What is the sum grid number when the driver was Luciano Burti? | CREATE TABLE table_name_55 (grid VARCHAR, driver VARCHAR) |
SELECT MAX(season__number) FROM table_19632728_1 | What was the highest season number? | CREATE TABLE table_19632728_1 (season__number INTEGER) |
SELECT power FROM table_name_40 WHERE years = "1975-84" | What is the power for the years 1975-84? | CREATE TABLE table_name_40 (
power VARCHAR,
years VARCHAR
) |
SELECT constructor FROM table_name_5 WHERE laps > 3 AND driver = "jarno trulli" | Which constructor had a laps number bigger than 3 when the driver was Jarno Trulli? | CREATE TABLE table_name_5 (constructor VARCHAR, laps VARCHAR, driver VARCHAR) |
SELECT margin_of_victory FROM table_19630743_2 WHERE runner_s__up = "Steve Stricker" | What was the margin of victory of Steve Stricker as a runner up? | CREATE TABLE table_19630743_2 (margin_of_victory VARCHAR, runner_s__up VARCHAR) |
SELECT "Incumbent" FROM table_42000 WHERE "Democratic" = 'mike carroll' | Which incumbent's democratic candidate was mike carroll? | CREATE TABLE table_42000 (
"District" real,
"Incumbent" text,
"2008 Status" text,
"Democratic" text,
"Republican" text
) |
SELECT head_of_household FROM table_name_32 WHERE married_filing_jointly_or_qualified_widow_er_ = "$137,051–$208,850" | Name the head of household for married filing jointly or qualified widow(er) being $137,051–$208,850 | CREATE TABLE table_name_32 (head_of_household VARCHAR, married_filing_jointly_or_qualified_widow_er_ VARCHAR) |
SELECT to_par FROM table_19630743_2 WHERE winning_score = 69 - 66 - 68 = 203 | How many to par has the winning score of 69-66-68=203. | CREATE TABLE table_19630743_2 (to_par VARCHAR, winning_score VARCHAR) |
SELECT tries FROM table_name_16 WHERE date = "06/07/1996" | How many tries took place on 06/07/1996? | CREATE TABLE table_name_16 (
tries VARCHAR,
date VARCHAR
) |
SELECT married_filing_jointly_or_qualified_widow_er_ FROM table_name_61 WHERE head_of_household = "$117,451–$190,200" | Name the married filing jointly or qualified widow(er) with head of household being $117,451–$190,200 | CREATE TABLE table_name_61 (married_filing_jointly_or_qualified_widow_er_ VARCHAR, head_of_household VARCHAR) |
SELECT MIN(no) FROM table_19630743_2 WHERE tournament = "BMW Championship" | What is the minimum number of the bmw championship tournament. | CREATE TABLE table_19630743_2 (no INTEGER, tournament VARCHAR) |
SELECT HIRE_DATE, SUM(SALARY) 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 sum of salary bin hire_date by weekday. | 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),
DEPARTMENT_ID decimal(... |
SELECT married_filing_separately FROM table_name_77 WHERE single = "$0–$8,350" | Name the married filing separately for single of $0–$8,350 | CREATE TABLE table_name_77 (married_filing_separately VARCHAR, single VARCHAR) |
SELECT COUNT(no) FROM table_19630743_2 WHERE runner_s__up = "John Merrick" | What is the total number of John Merrick as a runner up? | CREATE TABLE table_19630743_2 (no VARCHAR, runner_s__up VARCHAR) |
SELECT MAX("Year born") FROM table_26233 WHERE "Player" = 'Ido Kozikaro' | What is the date of birth for basket baller called ido kozikaro | CREATE TABLE table_26233 (
"No" real,
"Player" text,
"Height (m)" text,
"Height (f)" text,
"Position" text,
"Year born" real,
"Current Club" text
) |
SELECT head_of_household FROM table_name_89 WHERE married_filing_separately = "$104,426–$186,475" | Name the head of household that has married filing separately of $104,426–$186,475 | CREATE TABLE table_name_89 (head_of_household VARCHAR, married_filing_separately VARCHAR) |
SELECT horse FROM table_19624708_1 WHERE owner = "R. A. Scott" | What horses does r. a. Scott own? | CREATE TABLE table_19624708_1 (horse VARCHAR, owner VARCHAR) |
SELECT COUNT(*) FROM table_204_227 WHERE "score" >= 30 | which games did they not score under 30 points ? | CREATE TABLE table_204_227 (
id number,
"week" number,
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
) |
SELECT marginal_ordinary_income_tax_rate FROM table_name_40 WHERE head_of_household = "$372,951+" | Name the marginal ordinary income tax rate that has a head of household of $372,951+ | CREATE TABLE table_name_40 (marginal_ordinary_income_tax_rate VARCHAR, head_of_household VARCHAR) |
SELECT COUNT(number) FROM table_19624708_1 WHERE sp = "20/1" AND finishing_position = "Fence 19" | How many numbers have sp of 20/1 and a finishing position of fence 19? | CREATE TABLE table_19624708_1 (number VARCHAR, sp VARCHAR, finishing_position VARCHAR) |
SELECT * FROM table_train_250 WHERE creatinine_clearance_cl < 75 | creatinine clearance < 75 ml / min / 1.73 m2 | CREATE TABLE table_train_250 (
"id" int,
"gender" string,
"waist_to_hip_ratio" float,
"creatinine_clearance_cl" float,
"panel_reactive_antibodies" int,
"insulin_requirement" float,
"serum_creatinine" float,
"NOUSE" float
) |
SELECT AVG(points) FROM table_name_48 WHERE fgm___fga = "11-28" AND number < 7 | What is the point average for the game that has FGM-FGA of 11-28 and a number smaller than 7? | CREATE TABLE table_name_48 (points INTEGER, fgm___fga VARCHAR, number VARCHAR) |
SELECT handicap__st_lb_ FROM table_19624708_1 WHERE horse = "Knowhere" | Which handicap has the horse knowhere? | CREATE TABLE table_19624708_1 (handicap__st_lb_ VARCHAR, horse VARCHAR) |
SELECT AVG("Wins") FROM table_39031 WHERE "Top 10" < '5' AND "Winnings" = '$39,190' AND "Starts" < '2' | What is the average number of wins of the year with less than 5 top 10s, a winning of $39,190 and less than 2 starts? | CREATE TABLE table_39031 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" real,
"Avg. Finish" real,
"Winnings" text,
"Position" text
) |
SELECT MIN(floors) FROM table_name_82 WHERE name = "dubai marriott harbour hotel & suites" | What is the lowest number of floors recorded for buildings built by Dubai Marriott Harbour Hotel & Suites? | CREATE TABLE table_name_82 (floors INTEGER, name VARCHAR) |
SELECT colours FROM table_19624708_1 WHERE owner = "David Langdon" | What colors does David Langdon use? | CREATE TABLE table_19624708_1 (colours VARCHAR, owner VARCHAR) |
SELECT name FROM table_14962287_2 WHERE league = 142 | What name is associated with League 142? | CREATE TABLE table_14962287_2 (
name VARCHAR,
league VARCHAR
) |
SELECT name FROM table_name_55 WHERE year > 2006 AND floors > 101 | What is the name of the building housing more than 101 floors, that was built after 2006? | CREATE TABLE table_name_55 (name VARCHAR, year VARCHAR, floors VARCHAR) |
SELECT result FROM table_19625976_1 WHERE film_title_used_in_nomination = "Baran" | If the film title nominated is Baran, what was the result? | CREATE TABLE table_19625976_1 (result VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find hire_date and the average of department_id bin hire_date by time, and visualize them by a bar chart. | 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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE T... |
SELECT crowd FROM table_name_41 WHERE date = "4 july 1981" AND away_team = "essendon" | What was the crowd size on 4 july 1981, and a Away team of essendon? | CREATE TABLE table_name_41 (crowd VARCHAR, date VARCHAR, away_team VARCHAR) |
SELECT result FROM table_19625976_1 WHERE persian_title = "میم مثل مادر" | For the Persian Title میم مثل مادر, what were the results? | CREATE TABLE table_19625976_1 (result VARCHAR, persian_title VARCHAR) |
SELECT Tags.TagName, CAST(SUM(CASE WHEN Posts.Score < 0 THEN 1 ELSE 0 END) AS FLOAT) / CAST(COUNT(*) AS FLOAT) AS fraction_of_negative_Qs FROM (PostTags INNER JOIN Tags ON PostTags.TagId = Tags.Id) INNER JOIN Posts ON Posts.Id = PostTags.PostId WHERE Tags.Count > 9 GROUP BY Tags.TagName ORDER BY fraction_of_negative_Qs... | fraction of negatively-scored Qs per tag. | CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
P... |
SELECT date FROM table_name_53 WHERE away_team = "essendon" | When did essendon play away? | CREATE TABLE table_name_53 (date VARCHAR, away_team VARCHAR) |
SELECT film_title_used_in_nomination FROM table_19625976_1 WHERE persian_title = "گبه" | For the Persian title گبه, What was the film title used for the nomination? | CREATE TABLE table_19625976_1 (film_title_used_in_nomination VARCHAR, persian_title VARCHAR) |
SELECT surface FROM table_name_47 WHERE runner_up = "brian gottfried" | What is the surface of the match with Brian Gottfried as the runner-up? | CREATE TABLE table_name_47 (
surface VARCHAR,
runner_up VARCHAR
) |
SELECT category FROM table_name_95 WHERE result = "won" AND year = 1998 AND award = "sundance film festival" | Which category won the Sundance Film Festival award in 1998? | CREATE TABLE table_name_95 (category VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR) |
SELECT year FROM table_19643196_1 WHERE transmission = "Allison B400R" AND model = "BRT" | What year had an Allison B400R transmission and a model of BRT? | CREATE TABLE table_19643196_1 (year VARCHAR, transmission VARCHAR, model VARCHAR) |
SELECT score FROM table_name_90 WHERE round = "rd 26, 2001" | What was the score of the game that had a round of Rd 26, 2001? | CREATE TABLE table_name_90 (
score VARCHAR,
round VARCHAR
) |
SELECT category FROM table_name_20 WHERE result = "nominated" AND film_or_series = "the wire" AND year > 2005 | Which award category was the film series The Wire nominated for after 2005? | CREATE TABLE table_name_20 (category VARCHAR, year VARCHAR, result VARCHAR, film_or_series VARCHAR) |
SELECT fleet__number FROM table_19643196_1 WHERE length__ft_ = 30 | What is the fleet number when the length (ft) is 30? | CREATE TABLE table_19643196_1 (fleet__number VARCHAR, length__ft_ VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE course.department LIKE '%TURKISH%' AND program_course.category LIKE 'PreMajor' AND program_course.course_id = course.course_id | What are the classes required to declare a major in TURKISH ? | CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE requirement (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.