answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT team_name FROM table_18304058_2 WHERE sports = "Football" AND schools = "Elverado Trico"
What is the name of the team from the Elverado Trico school in football?
CREATE TABLE table_18304058_2 (team_name VARCHAR, sports VARCHAR, schools VARCHAR)
SELECT release_price___usd__ FROM table_name_32 WHERE model_number = "pentium dual-core t2330"
What is the release price (USD) of the microprocessor with a model number pentium dual-core t2330?
CREATE TABLE table_name_32 ( release_price___usd__ VARCHAR, model_number VARCHAR )
SELECT alternate FROM table_name_58 WHERE nation = "sweden"
Who is the Alternate for Sweden?
CREATE TABLE table_name_58 (alternate VARCHAR, nation VARCHAR)
SELECT years_of_kindergarten AS provided FROM table_1831309_1 WHERE canton = "Ticino"
How many years of kindergarten is provided in Ticino?
CREATE TABLE table_1831309_1 (years_of_kindergarten VARCHAR, canton VARCHAR)
SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.dob_year > "2098"
what is average age of patients whose marital status is single and year of birth is greater than 2098?
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,...
SELECT third FROM table_name_56 WHERE nation = "germany"
Who is the third alternate for Germany?
CREATE TABLE table_name_56 (third VARCHAR, nation VARCHAR)
SELECT MAX(length_of_mandatory_secondary_school) FROM table_1831309_1
What is the longest length of mandatory secondary school?
CREATE TABLE table_1831309_1 (length_of_mandatory_secondary_school INTEGER)
SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'facial bone fracture - nasal fracture' AND STRFTIME(...
in 2102, what were the five most often ordered lab tests for patients who had previously been diagnosed with facial bone fracture - nasal fracture within 2 months?
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE lab ( labid number, pa...
SELECT translation FROM table_name_78 WHERE date = 1986
Which translation was published in 1986?
CREATE TABLE table_name_78 (translation VARCHAR, date VARCHAR)
SELECT writer_s FROM table_18305523_2 WHERE cover_date = "19 October 1985"
Who wrote the story that is cover date 19 October 1985?
CREATE TABLE table_18305523_2 (writer_s VARCHAR, cover_date VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "SNF" AND diagnoses.long_title = "Pneumonitis due to inhalation of food or vomitus"
what is the total number of patients who had pneumonitis due to inhalation of food or vomitus and discharged to snf
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 ...
SELECT title FROM table_name_86 WHERE content = "mysticism, spiritualism" AND translation = "the minaret of light"
Which title has content including mysticism, spiritualism, and a translation of the minaret of light?
CREATE TABLE table_name_86 (title VARCHAR, content VARCHAR, translation VARCHAR)
SELECT COUNT(cover_date) FROM table_18305523_2 WHERE story_title = "DEVASTATION DERBY! (Part 1)"
How many cover dates does the story "Devastation Derby! (part 1)" have?
CREATE TABLE table_18305523_2 (cover_date VARCHAR, story_title VARCHAR)
SELECT MAX(overall) FROM table_name_32 WHERE position = "linebacker" AND pick__number > 9
What is the largest overall where the position was linebacker and the pick number was more than 9?
CREATE TABLE table_name_32 ( overall INTEGER, position VARCHAR, pick__number VARCHAR )
SELECT employees__world_ FROM table_name_60 WHERE revenue__mil€_ = "104.000"
What is hte nuumber of employees that has a revenue of 104.000?
CREATE TABLE table_name_60 (employees__world_ VARCHAR, revenue__mil€_ VARCHAR)
SELECT comments FROM table_18305523_2 WHERE cover_date = "14 March 1987"
What is the comment on the issue dated 14 March 1987?
CREATE TABLE table_18305523_2 (comments VARCHAR, cover_date VARCHAR)
SELECT "Rank" FROM table_17586 WHERE "Municipality" = 'Sunndal'
Name the rank where the municipality is sunndal?
CREATE TABLE table_17586 ( "Rank" real, "Peak" text, "Elevation (m)" real, "Prominence (m)" real, "Isolation (km)" real, "Municipality" text, "County" text )
SELECT headquarters FROM table_name_23 WHERE employees__world_ = 100
Which HQ is associated with a number of employees of 100?
CREATE TABLE table_name_23 (headquarters VARCHAR, employees__world_ VARCHAR)
SELECT story_title FROM table_18305523_2 WHERE artist_s = "Barry Kitson and Farmer"
What is the title of the issue where the art was done by Barry Kitson and Farmer?
CREATE TABLE table_18305523_2 (story_title VARCHAR, artist_s VARCHAR)
SELECT "Score" FROM table_73524 WHERE "Date" = 'December 7'
What is the score for the date of December 7?
CREATE TABLE table_73524 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT MIN(silver) FROM table_name_80 WHERE bronze > 1 AND rank < 11
What is the low silver medal total for nations with over 1 bronze ranked above 11?
CREATE TABLE table_name_80 (silver INTEGER, bronze VARCHAR, rank VARCHAR)
SELECT MIN(_number) FROM table_18305523_1
What is the minimum number which is for title The Enemy Within part 1?
CREATE TABLE table_18305523_1 (_number INTEGER)
SELECT MAX("Silver") FROM table_13502 WHERE "Bronze" > '0' AND "Total" > '1' AND "Gold" > '0' AND "Nation" = 'china (chn)'
what is the most silver when bronze is more than 0, total is more than 1, gold is more than 0 and the nation is china (chn)?
CREATE TABLE table_13502 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT MAX(total) FROM table_name_55 WHERE gold = 1 AND bronze > 1
What is the high total for nations with 1 gold and over 1 bronze?
CREATE TABLE table_name_55 (total INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT hydroxymatairesinol FROM table_1831262_2 WHERE sesamin = "62724"
what is the number of hydroxymatairesinol where sesamin is 62724?
CREATE TABLE table_1831262_2 (hydroxymatairesinol VARCHAR, sesamin VARCHAR)
SELECT last_name, COUNT(last_name) FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id GROUP BY skill_description, last_name
List the number of enginners in a stacked bar chart. The x-axis is last name and group by skill description.
CREATE TABLE Skills ( skill_id INTEGER, skill_code VARCHAR(20), skill_description VARCHAR(255) ) CREATE TABLE Third_Party_Companies ( company_id INTEGER, company_type VARCHAR(5), company_name VARCHAR(255), company_address VARCHAR(255), other_company_details VARCHAR(255) ) CREATE TABLE ...
SELECT home FROM table_name_13 WHERE record = "4-6-0"
What was the home team with a 4-6-0 record?
CREATE TABLE table_name_13 (home VARCHAR, record VARCHAR)
SELECT sesamin FROM table_1831262_2 WHERE secoisolariciresinol = 240
what is the total number of sesamin were secoisolariciresinol is 240?
CREATE TABLE table_1831262_2 (sesamin VARCHAR, secoisolariciresinol VARCHAR)
SELECT semifinalists FROM table_name_86 WHERE champions = "michael chang 6-0 6-4"
Which Semifinalists has a Champions of michael chang 6-0 6-4?
CREATE TABLE table_name_86 ( semifinalists VARCHAR, champions VARCHAR )
SELECT decision FROM table_name_96 WHERE visitor = "washington" AND date = "october 13"
What was the decision of the game with Washington as the visitor team on October 13?
CREATE TABLE table_name_96 (decision VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT MAX(pinoresinol) FROM table_1831262_2 WHERE foodstuff = "Wheat bran"
what is the maximum number of pinorinol in wheat bran?
CREATE TABLE table_1831262_2 (pinoresinol INTEGER, foodstuff VARCHAR)
SELECT location___state FROM table_name_82 WHERE team = "castrol perkins motorsport" AND winner = "russell ingall"
Castrol Perkins Motorsport and the winner Russell Ingall was in what location/state?
CREATE TABLE table_name_82 ( location___state VARCHAR, team VARCHAR, winner VARCHAR )
SELECT AVG(ngc_number) FROM table_name_7 WHERE right_ascension___j2000__ = "05h33m30s"
What is the average NGC number of everything with a Right ascension (J2000) of 05h33m30s?
CREATE TABLE table_name_7 (ngc_number INTEGER, right_ascension___j2000__ VARCHAR)
SELECT sesamin FROM table_1831262_2 WHERE foodstuff = "Sesame seed"
how much sesamin is in sesame seed?
CREATE TABLE table_1831262_2 (sesamin VARCHAR, foodstuff VARCHAR)
SELECT demographic.language FROM demographic WHERE demographic.name = "Charles Deshay"
which language does the patient charles deshay prefer?
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 right_ascension___j2000__ FROM table_name_55 WHERE ngc_number > 2068 AND constellation = "dorado" AND declination___j2000__ = "°12′43″"
What is the right ascension (J2000) with a Declination (J2000) of °12′43″, is a constellation of dorado, and has an NGC number larger than 2068?
CREATE TABLE table_name_55 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, ngc_number VARCHAR, constellation VARCHAR)
SELECT MIN(lariciresinol) FROM table_1831262_2 WHERE matairesinol = 440
what is the minimum number is lariciresinol where matairesinol number is 440?
CREATE TABLE table_1831262_2 (lariciresinol INTEGER, matairesinol VARCHAR)
SELECT "Description" FROM table_52961 WHERE "Date" = '1962'
Which description is dated 1962?
CREATE TABLE table_52961 ( "Number & Name" text, "Description" text, "Livery" text, "Owner(s)" text, "Date" text )
SELECT object_type FROM table_name_61 WHERE ngc_number > 2090 AND right_ascension___j2000__ = "05h52m19s"
What type of object has an NGC number higher than 2090 and has a right ascension (J2000) of 05h52m19s?
CREATE TABLE table_name_61 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT calling_at FROM table_18332845_2 WHERE arrival = "18.42"
What was the calling for the 18.42 arrival time?
CREATE TABLE table_18332845_2 (calling_at VARCHAR, arrival VARCHAR)
SELECT COUNT(byes) FROM table_name_55 WHERE draws > 0
How many byes has a draw larger than 0?
CREATE TABLE table_name_55 ( byes VARCHAR, draws INTEGER )
SELECT AVG(crowd) FROM table_name_35 WHERE away_team = "geelong"
How is the crowd of the team Geelong?
CREATE TABLE table_name_35 (crowd INTEGER, away_team VARCHAR)
SELECT arrival FROM table_18332845_2 WHERE calling_at = "Wansford, Peterborough East"
What was the arrival for Wansford, Peterborough East?
CREATE TABLE table_18332845_2 (arrival VARCHAR, calling_at VARCHAR)
SELECT customer_name, customer_id FROM Customers WHERE customer_address LIKE "%TN%"
Return the names and ids of customers who have TN in their address by a pie chart.
CREATE TABLE Addresses ( address_id INTEGER, address_details VARCHAR(255) ) CREATE TABLE Department_Store_Chain ( dept_store_chain_id INTEGER, dept_store_chain_name VARCHAR(80) ) CREATE TABLE Order_Items ( order_item_id INTEGER, order_id INTEGER, product_id INTEGER ) CREATE TABLE Staff_De...
SELECT MIN(crowd) FROM table_name_56 WHERE venue = "arden street oval"
Who has the smallest crowd in the Venue of Arden Street Oval?
CREATE TABLE table_name_56 (crowd INTEGER, venue VARCHAR)
SELECT departure FROM table_18332845_2 WHERE arrival = "14.40"
What was the departure time when the arrival was 14.40?
CREATE TABLE table_18332845_2 (departure VARCHAR, arrival VARCHAR)
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NEW YORK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.cit...
show me round trip tickets from NEW YORK to MIAMI
CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text )...
SELECT away_team FROM table_name_35 WHERE venue = "lake oval"
What team has a Venue at Lake Oval?
CREATE TABLE table_name_35 (away_team VARCHAR, venue VARCHAR)
SELECT departure FROM table_18332845_2 WHERE going_to = "Peterborough East" AND arrival = "12.40"
What is the departure for Peterborough East whose arrival time is 12.40?
CREATE TABLE table_18332845_2 (departure VARCHAR, going_to VARCHAR, arrival VARCHAR)
SELECT MIN("Played") FROM table_45480 WHERE "Draw" > '7'
What is the lowest number of games played where they tied more than 7 of them?
CREATE TABLE table_45480 ( "Competition" text, "Played" real, "Draw" real, "Lost" real, "Favour" real, "Against" real )
SELECT date FROM table_name_30 WHERE race_title = "grand prix de trois-rivières"
What day is the grand prix de trois-rivières?
CREATE TABLE table_name_30 (date VARCHAR, race_title VARCHAR)
SELECT calling_at FROM table_18332845_2 WHERE departure = "09.50"
What is the calling at for the 09.50 departure?
CREATE TABLE table_18332845_2 (calling_at VARCHAR, departure VARCHAR)
SELECT COUNT("Gold") FROM table_31618 WHERE "Bronze" > '0' AND "Rank" = 'total' AND "Total" > '100'
Tell me the total number of gold for bronze more than 0 and total more than 100
CREATE TABLE table_31618 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT race_title FROM table_name_24 WHERE drivers = "ron fellows" AND date = "aug 4"
What race is on aug 4 with ron fellows?
CREATE TABLE table_name_24 (race_title VARCHAR, drivers VARCHAR, date VARCHAR)
SELECT going_to FROM table_18332845_2 WHERE departure = "20.35"
Where is the train going to when departing at 20.35?
CREATE TABLE table_18332845_2 (going_to VARCHAR, departure VARCHAR)
SELECT coach FROM table_name_19 WHERE year = "1953"
Who was the coach in 1953?
CREATE TABLE table_name_19 ( coach VARCHAR, year VARCHAR )
SELECT distance_duration FROM table_name_3 WHERE date = "sept 5" AND race_title = "le grand prix de trois-rivières"
What is the distance/duration on sept 5 of le grand prix de trois-rivières?
CREATE TABLE table_name_3 (distance_duration VARCHAR, date VARCHAR, race_title VARCHAR)
SELECT 3 AS _dart_average FROM table_18317531_1 WHERE player = "Michael van Gerwen"
Name the 3 dart average for michael van gerwen
CREATE TABLE table_18317531_1 (player VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT /SDA" AND demographic.age < "61"
provide the number of patients whose primary disease is coronary artery disease\coronary artery bypass graft /sda and age is less than 61?
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, ...
SELECT record FROM table_name_21 WHERE opponent = "julio paulino"
What is terry's record when he fights julio paulino?
CREATE TABLE table_name_21 (record VARCHAR, opponent VARCHAR)
SELECT COUNT(calling_at) FROM table_18333678_2 WHERE arrival = "09.06"
how many callings of trains arriving at 09.06
CREATE TABLE table_18333678_2 (calling_at VARCHAR, arrival VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "1" AND prescriptions.route = "NU"
provide the number of patients whose days of hospital stay is greater than 1 and drug route is nu?
CREATE TABLE diagnoses ( 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 procedures ( ...
SELECT time FROM table_name_78 WHERE method = "ko (punch)" AND opponent = "scott smith"
How long is the ko (punch) fight against scott smith?
CREATE TABLE table_name_78 (time VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT operator FROM table_18333678_2 WHERE arrival = "13.39"
what is the operator of trains arriving at 13.39
CREATE TABLE table_18333678_2 (operator VARCHAR, arrival VARCHAR)
SELECT week FROM table_name_96 WHERE record = "0-5"
What week was the record 0-5?
CREATE TABLE table_name_96 ( week VARCHAR, record VARCHAR )
SELECT AVG(feet) FROM table_name_11 WHERE latitude__n_ = "35°48′35″" AND metres < 8 OFFSET 047
What is the average feet that has a Latitude (N) of 35°48′35″, and under 8,047m?
CREATE TABLE table_name_11 (feet INTEGER, latitude__n_ VARCHAR, metres VARCHAR)
SELECT arrival FROM table_18333678_2 WHERE departure = "11.35"
when does the train departuring at 11.35 arrive
CREATE TABLE table_18333678_2 (arrival VARCHAR, departure VARCHAR)
SELECT "Change over previous year as a whole" FROM table_1634 WHERE "Change over same quarter the previous year" = 'Up 2.8%'
What's the change over previous year as a whole in the period in which the change over same quarter the previous year was up 2.8%?
CREATE TABLE table_1634 ( "Period" text, "% trains arriving within 5 mins of scheduled time (over three months)" text, "Change over same quarter the previous year" text, "% trains arriving within 5 mins of scheduled time Moving Annual Average (MAA)" text, "Change over previous year as a whole" text ...
SELECT MIN(feet) FROM table_name_22 WHERE longitude__e_ = "76°34′06″" AND prominence__m_ < 1 OFFSET 701
What is the lowest feet total with a Longitude (E) of 76°34′06″, and a Prominence (m) under 1,701?
CREATE TABLE table_name_22 (feet INTEGER, longitude__e_ VARCHAR, prominence__m_ VARCHAR)
SELECT departure FROM table_18333678_2 WHERE going_to = "Bourne" AND arrival = "11.45"
when does the train arriving at bourne at 11.45 departure
CREATE TABLE table_18333678_2 (departure VARCHAR, going_to VARCHAR, arrival VARCHAR)
SELECT "2013" FROM table_33201 WHERE "Tournament" = 'us open'
What value for 2013 corresponds to the US Open Tournament?
CREATE TABLE table_33201 ( "Tournament" text, "2007" text, "2011" text, "2012" text, "2013" text )
SELECT player FROM table_name_75 WHERE hometown = "wichita, ks"
What Player comes from the Hometown of Wichita, KS?
CREATE TABLE table_name_75 (player VARCHAR, hometown VARCHAR)
SELECT departure FROM table_18333678_2 WHERE arrival = "11.45" AND going_to = "Stamford East"
when does the train arriving at stamford east at 11.45 departure
CREATE TABLE table_18333678_2 (departure VARCHAR, arrival VARCHAR, going_to VARCHAR)
SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'congestive heart failure - right-sided' AND STRFTIME('%y', diagnosis.diagnosistime) <= '2104') AS t1...
count the number of patients that were diagnosed with congestive heart failure - right-sided and didn't come back to the hospital within 2 months until 2104.
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, ...
SELECT nba_draft FROM table_name_99 WHERE hometown = "brampton, on"
For the Player from Brampton, ON what is their NBA Draft status?
CREATE TABLE table_name_99 (nba_draft VARCHAR, hometown VARCHAR)
SELECT clubs_remaining FROM table_18328569_1 WHERE winners_from_previous_round = "4"
How many clubs are remaining when the winners from the previous round totals 4?
CREATE TABLE table_18328569_1 (clubs_remaining VARCHAR, winners_from_previous_round VARCHAR)
SELECT date_of_transaction, COUNT(date_of_transaction) FROM Transactions
Give me a line chart, that bins all date of transactions into the weekday interval, and the count for each bin.
CREATE TABLE Lots ( lot_id INTEGER, investor_id INTEGER, lot_details VARCHAR(255) ) CREATE TABLE Transactions ( transaction_id INTEGER, investor_id INTEGER, transaction_type_code VARCHAR(10), date_of_transaction DATETIME, amount_of_transaction DECIMAL(19,4), share_count VARCHAR(40),...
SELECT college FROM table_name_69 WHERE player = "perry ellis"
What was the College of Player Perry Ellis?
CREATE TABLE table_name_69 (college VARCHAR, player VARCHAR)
SELECT round FROM table_18328569_1 WHERE winners_from_previous_round = "8"
What is the round where winners from the previous round totals 8?
CREATE TABLE table_18328569_1 (round VARCHAR, winners_from_previous_round VARCHAR)
SELECT Tags, ViewCount, CommentCount, Score, FavoriteCount FROM Posts WHERE CreationDate > '2020-07-01' ORDER BY ViewCount DESC LIMIT 100
top 100 tags since july 1.
CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name te...
SELECT MIN(figures) FROM table_name_24 WHERE free = 556
What is the lowest figure score when the free is 556?
CREATE TABLE table_name_24 (figures INTEGER, free VARCHAR)
SELECT MIN(clubs_remaining) FROM table_18328569_1 WHERE round = "Fourth round"
How many clubs remain in the fourth round?
CREATE TABLE table_18328569_1 (clubs_remaining INTEGER, round VARCHAR)
SELECT "Artist" FROM table_34580 WHERE "Year" = '1953'
what artist won in 1953
CREATE TABLE table_34580 ( "Position" text, "Artist" text, "Single" text, "Year" text, "Weeks" text )
SELECT AVG(crowd) FROM table_name_39 WHERE away_team = "south melbourne"
What is the size of the crowd for the game where the away team South Melbourne played?
CREATE TABLE table_name_39 (crowd INTEGER, away_team VARCHAR)
SELECT new_entries_this_round FROM table_18328569_1 WHERE winners_from_previous_round = "32"
How many new entries started in the round where winners from the previous round is 32?
CREATE TABLE table_18328569_1 (new_entries_this_round VARCHAR, winners_from_previous_round VARCHAR)
SELECT COUNT(*) AS QuestionCount, SUM(A.TriedComments) AS TriedCount FROM (SELECT SUM(CASE WHEN C.Text LIKE '%have you tried%' OR c.Text LIKE '%you have tried%' THEN 1 ELSE 0 END) AS TriedComments, P.Id FROM Posts AS P LEFT JOIN Comments AS C ON C.PostId = P.Id WHERE P.CreationDate BETWEEN @pStartDate AND @pEndDate AND...
Questions with 'what have you tried comments' between two dates.
CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) C...
SELECT home_team AS score FROM table_name_11 WHERE crowd > 30 OFFSET 100
What is the home team score when the crowd was larger than 30,100?
CREATE TABLE table_name_11 (home_team VARCHAR, crowd INTEGER)
SELECT new_entries_this_round FROM table_18328569_1 WHERE round = "Quarter finals"
How many new entries started in the quarter finals?
CREATE TABLE table_18328569_1 (new_entries_this_round VARCHAR, round VARCHAR)
SELECT date FROM table_name_48 WHERE stadium = "alltel stadium" AND final_score = "6-20"
What is the date that a game at the Alltel Stadium had a final score of 6-20?
CREATE TABLE table_name_48 ( date VARCHAR, stadium VARCHAR, final_score VARCHAR )
SELECT home_team AS score FROM table_name_5 WHERE home_team = "hawthorn"
How much did the home team Hawthorn score?
CREATE TABLE table_name_5 (home_team VARCHAR)
SELECT new_entries_this_round FROM table_18328569_1 WHERE winners_from_previous_round = "16"
How many new entries started in the round where winners from the previous round is 16?
CREATE TABLE table_18328569_1 (new_entries_this_round VARCHAR, winners_from_previous_round VARCHAR)
SELECT MIN("Wind (m/s)") FROM table_70806 WHERE "Nation" = 'united states' AND "Athlete" = 'brenda morehead'
what is the wind speed when brenda morehead was in the united states?
CREATE TABLE table_70806 ( "Rank" real, "Fastest time (s)" real, "Wind (m/s)" real, "Athlete" text, "Nation" text, "Date" text, "Location" text )
SELECT COUNT(crowd) FROM table_name_2 WHERE away_team = "footscray"
What was the crowd size for the game at Footscray?
CREATE TABLE table_name_2 (crowd VARCHAR, away_team VARCHAR)
SELECT operator FROM table_18365784_3 WHERE departure = "11.02"
Who was the train operator when the train departed at 11.02 in 1922?
CREATE TABLE table_18365784_3 (operator VARCHAR, departure 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 = "Pressure ulcer, stage IV" AND lab.flag = "delta"
what is the number of patients whose diagnoses long title is pressure ulcer, stage iv and lab test abnormal status is delta?
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 text ) CREATE TABLE prescriptions...
SELECT visitor FROM table_name_35 WHERE home = "phoenix"
Who was the visitor when phoenix was at home?
CREATE TABLE table_name_35 (visitor VARCHAR, home VARCHAR)
SELECT going_to FROM table_18365784_3 WHERE calling_at = "Boston, Sleaford, Nottingham Victoria"
What was the train destination when it has a calling at Boston, Sleaford, Nottingham Victoria?
CREATE TABLE table_18365784_3 (going_to VARCHAR, calling_at VARCHAR)
SELECT Country, COUNT(Country) FROM member GROUP BY Country ORDER BY Country
Plot how many country by grouped by country as a bar graph, rank from low to high by the bars please.
CREATE TABLE member ( Member_ID int, Name text, Country text, College_ID int ) CREATE TABLE college ( College_ID int, Name text, Leader_Name text, College_Location text ) CREATE TABLE round ( Round_ID int, Member_ID int, Decoration_Theme text, Rank_in_Round int )
SELECT date FROM table_name_31 WHERE visitor = "philadelphia"
What day did philadelphia visit?
CREATE TABLE table_name_31 (date VARCHAR, visitor VARCHAR)
SELECT departure FROM table_18365784_3 WHERE going_to = "Boston"
What was the departure time of the train going to Boston?
CREATE TABLE table_18365784_3 (departure VARCHAR, going_to VARCHAR)