answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT MAX(pick__number) FROM table_name_94 WHERE player = "rhett mclane"
What is Rhett Mclane's highest pick number?
CREATE TABLE table_name_94 (pick__number INTEGER, player VARCHAR)
SELECT position FROM table_182410_10 WHERE digital_terrestrial_channel = "5 44 (+1)"
What is the position of digital channel 5 44 (+1)?
CREATE TABLE table_182410_10 (position VARCHAR, digital_terrestrial_channel VARCHAR)
SELECT MAX("1st Prize( $ )") FROM table_277 WHERE "Location" = 'South Carolina'
What is the largest 1st prize( $ ) at the South Carolina location?
CREATE TABLE table_277 ( "Date" text, "Tournament" text, "Location" text, "Purse( $ )" real, "Winner" text, "Score" text, "1st Prize( $ )" real )
SELECT MIN(pick__number) FROM table_name_9 WHERE college = "colorado"
What is Colorado College's lowest pick number?
CREATE TABLE table_name_9 (pick__number INTEGER, college VARCHAR)
SELECT delegate FROM table_1825751_14 WHERE pageant = "Elite Model Look" AND year > 1993.0
where pageant is elite model look and year is bigger than 1993.0, who is the delegate?
CREATE TABLE table_1825751_14 (delegate VARCHAR, pageant VARCHAR, year VARCHAR)
SELECT product_id, COUNT(DISTINCT order_id) FROM Order_Items
Show me the correlation about how many distinct order ids correspond to each product?
CREATE TABLE Order_Items ( order_item_id INTEGER, order_id INTEGER, product_id INTEGER, product_quantity VARCHAR(50), other_order_item_details VARCHAR(255) ) CREATE TABLE Invoices ( invoice_number INTEGER, order_id INTEGER, invoice_date DATETIME ) CREATE TABLE Orders ( order_id INT...
SELECT player FROM table_name_34 WHERE college = "northwestern"
What player belongs to Northwestern College?
CREATE TABLE table_name_34 (player VARCHAR, college VARCHAR)
SELECT COUNT(year) FROM table_1825751_14 WHERE pageant = "Miss Globe International" AND delegate = "Karen Loren Medrano Agustin"
How many years was the pageant miss globe international and delegate was karen loren medrano agustin?
CREATE TABLE table_1825751_14 (year VARCHAR, pageant VARCHAR, delegate VARCHAR)
SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'cellulitis - extr...
what are the top five most frequent lab tests ordered for patients in the same hospital encounter after the diagnosis of cellulitis - extremity.
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE microlab ( microl...
SELECT cfl_team FROM table_name_76 WHERE player = "pascal masson"
What CFL Team is Pascal Masson on?
CREATE TABLE table_name_76 (cfl_team VARCHAR, player VARCHAR)
SELECT COUNT(pageant) FROM table_1825751_14 WHERE hometown = "San Fernando, Pampanga"
How many pageants were in san fernando, pampanga?
CREATE TABLE table_1825751_14 (pageant VARCHAR, hometown VARCHAR)
SELECT procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.name = "Jane Dillard"
what is procedure long title of subject name jane dillard?
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 prescription...
SELECT number_ & _name FROM table_name_28 WHERE date > 1954
What's the number & name for the date after 1954?
CREATE TABLE table_name_28 (number_ VARCHAR, _name VARCHAR, date INTEGER)
SELECT COUNT(pageant) FROM table_1825751_14 WHERE delegate = "Margaret Ann Awitan Bayot"
How many pageants were margaret ann awitan bayot the delegate of?
CREATE TABLE table_1825751_14 (pageant VARCHAR, delegate VARCHAR)
SELECT COUNT(package_option) FROM table_15887683_10 WHERE television_service = "Music Box Italia"
Name the number of package options for music box italia
CREATE TABLE table_15887683_10 ( package_option VARCHAR, television_service VARCHAR )
SELECT date FROM table_name_77 WHERE owner_s_ = "princess royal class locomotive trust"
What's the date for princess royal class locomotive trust?
CREATE TABLE table_name_77 (date VARCHAR, owner_s_ VARCHAR)
SELECT other_awards FROM table_1825751_14 WHERE delegate = "Milagros Gutierrez"
How many awards did milagros gutierrez win?
CREATE TABLE table_1825751_14 (other_awards VARCHAR, delegate VARCHAR)
SELECT "Time/Retired" FROM table_58541 WHERE "Driver" = 'damon hill'
What is the time/retired for damon hill?
CREATE TABLE table_58541 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT number_ & _name FROM table_name_72 WHERE description = "peckett 0-4-0st"
What's the number & name for the description peckett 0-4-0st?
CREATE TABLE table_name_72 (number_ VARCHAR, _name VARCHAR, description VARCHAR)
SELECT hometown FROM table_1825751_14 WHERE pageant = "Miss Global Teen"
Where is the miss global teen?
CREATE TABLE table_1825751_14 (hometown VARCHAR, pageant VARCHAR)
SELECT district FROM table_1341672_14 WHERE incumbent = "Tim Lee Hall"
Name the district for tim lee hall
CREATE TABLE table_1341672_14 ( district VARCHAR, incumbent VARCHAR )
SELECT number_ & _name FROM table_name_10 WHERE description = "lms fowler class 3f 0-6-0t"
What's the number & name for a description of lms fowler class 3f 0-6-0t?
CREATE TABLE table_name_10 (number_ VARCHAR, _name VARCHAR, description VARCHAR)
SELECT substrate FROM table_182499_1 WHERE enzyme = "ALA dehydratase"
what is the subtrate for enzyme ala dehydratase
CREATE TABLE table_182499_1 (substrate VARCHAR, enzyme VARCHAR)
SELECT "Year" FROM table_65048 WHERE "Tournament" = 'world half marathon championships' AND "Result" = '3rd'
What was the year of the World Half Marathon Championships with a result of 3rd?
CREATE TABLE table_65048 ( "Year" real, "Tournament" text, "Venue" text, "Result" text, "Event" text )
SELECT driver FROM table_name_25 WHERE laps = 74 AND grid > 9
Who drive 74 laps in a grid larger than 9?
CREATE TABLE table_name_25 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT COUNT(porphyria) FROM table_182499_1 WHERE substrate = "δ-Aminolevulinic acid"
how many porphyria have substrate δ-aminolevulinic acid
CREATE TABLE table_182499_1 (porphyria VARCHAR, substrate VARCHAR)
SELECT "Diameter (km)" FROM table_21084 WHERE "Longitude" = '8.0E'
What is the diameter of the feature with longitude 8.0e?
CREATE TABLE table_21084 ( "Name" text, "Latitude" text, "Longitude" text, "Diameter (km)" text, "Year named" real, "Name origin" text )
SELECT player FROM table_name_48 WHERE school_club_team_country = "st. mary's"
Who is the player for St. Mary's team?
CREATE TABLE table_name_48 (player VARCHAR, school_club_team_country VARCHAR)
SELECT location FROM table_182499_1 WHERE substrate = "Coproporphyrinogen III"
give the location of subtrate coproporphyrinogen iii
CREATE TABLE table_182499_1 (location VARCHAR, substrate VARCHAR)
SELECT loss FROM table_name_7 WHERE record = "63-52"
What was the loss of the game that had a record of 63-52?
CREATE TABLE table_name_7 ( loss VARCHAR, record VARCHAR )
SELECT height_in_ft FROM table_name_15 WHERE school_club_team_country = "mississippi"
How tall is the player from Mississippi
CREATE TABLE table_name_15 (height_in_ft VARCHAR, school_club_team_country VARCHAR)
SELECT written_by FROM table_18274425_1 WHERE production_code = "3T7573"
Who were the authors of episode having production code 3t7573?
CREATE TABLE table_18274425_1 (written_by VARCHAR, production_code VARCHAR)
SELECT COUNT("Womens doubles") FROM table_17553 WHERE "Mens singles" = 'Jamie van Hooijdonk'
How many women doubles teams competed in the same year as when Jamie van Hooijdonk competed in men singles?
CREATE TABLE table_17553 ( "Season" real, "Mens singles" text, "Womens singles" text, "Mens doubles" text, "Womens doubles" text, "Mixed doubles" text )
SELECT no_s_ FROM table_name_66 WHERE school_club_team_country = "centenary"
What is the player number for the player from Centenary?
CREATE TABLE table_name_66 (no_s_ VARCHAR, school_club_team_country VARCHAR)
SELECT COUNT(no_in_season) FROM table_18274425_1 WHERE us_viewers__millions_ = "2.65"
How many episodes had a viewership of 2.65 million?
CREATE TABLE table_18274425_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'BA' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spring' ...
During Spring semester what BA upper level classes are there ?
CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_proje...
SELECT height_in_ft FROM table_name_69 WHERE no_s_ = "42" AND school_club_team_country = "long beach state"
How tall is player 42 from Long Beach State?
CREATE TABLE table_name_69 (height_in_ft VARCHAR, no_s_ VARCHAR, school_club_team_country VARCHAR)
SELECT directed_by FROM table_18274425_1 WHERE written_by = "Mike Daniels"
Who were the director/s of episodes written by Mike Daniels?
CREATE TABLE table_18274425_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT "Ordinary value" FROM table_37332 WHERE "Russian" = 'унция'
Which ordinary value has a Russian value of ?
CREATE TABLE table_37332 ( "Unit" text, "Russian" text, "Translation" text, "Ratio" real, "Metric value" text, "Avoirdupois value" text, "Ordinary value" text )
SELECT network FROM table_name_47 WHERE lap_by_lap = "bill flemming" AND pit_reporters = "chris economaki"
What network has lap-by-laps by Bill Flemming, and Pit reporter Chris Economaki?
CREATE TABLE table_name_47 (network VARCHAR, lap_by_lap VARCHAR, pit_reporters VARCHAR)
SELECT COUNT(binibining_pilipinas_international) FROM table_1825751_4 WHERE miss_universe_philippines = "Nina Ricci Alagao"
How many winners of Binibining Pilipinas-International when Nina Ricci Alagao?
CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, miss_universe_philippines VARCHAR)
SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 77053) ORDER BY procedures_icd.charttime DESC LIMIT 1
when patient 77053 received for the last time a procedure?
CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE labevents ( row...
SELECT lap_by_lap FROM table_name_74 WHERE year > 1973 AND pit_reporters = "bill flemming"
Which lap-by-lap has a year after 1973, with pit reporter Bill Flemming?
CREATE TABLE table_name_74 (lap_by_lap VARCHAR, year VARCHAR, pit_reporters VARCHAR)
SELECT second_runner_up FROM table_1825751_4 WHERE binibining_pilipinas_world = "Janina San Miguel"
Who was second runner up when Janina San Miguel won Binibining Pilipinas-World?
CREATE TABLE table_1825751_4 (second_runner_up VARCHAR, binibining_pilipinas_world VARCHAR)
SELECT "Tournament" FROM table_16959 WHERE "Location" = 'Rhode Island'
Name all the tournaments that took place in Rhode Island.
CREATE TABLE table_16959 ( "Date" text, "Tournament" text, "Location" text, "Purse( $ )" real, "Winner" text, "Score" text, "1st Prize( $ )" real )
SELECT MIN(round) FROM table_name_14 WHERE res = "win" AND location = "fort lauderdale, florida, united states" AND time = "3:38"
What is the lowest round for Fort Lauderdale, Florida, United States, with a win and a time of 3:38?
CREATE TABLE table_name_14 (round INTEGER, time VARCHAR, res VARCHAR, location VARCHAR)
SELECT binibining_pilipinas_international FROM table_1825751_4 WHERE miss_universe_philippines = "Gionna Cabrera"
Who was the winner of binibining pilipinas-International wheh Gionna Cabrera won Miss Universe Philippines?
CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, miss_universe_philippines VARCHAR)
SELECT COUNT("Car No.") FROM table_72876 WHERE "Team" = 'Panther Racing' AND "Grid" = '9'
Name the total number of cars for panther racing and grid of 9
CREATE TABLE table_72876 ( "Fin. Pos" real, "Car No." real, "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Laps Led" real, "Points" text )
SELECT COUNT(round) FROM table_name_64 WHERE time = "2:18"
How many rounds have a time of 2:18?
CREATE TABLE table_name_64 (round VARCHAR, time VARCHAR)
SELECT COUNT(binibining_pilipinas_international) FROM table_1825751_4 WHERE binibining_pilipinas_world = "Maria Karla Bautista"
How many winners of binibining pilipinas-International when Maria Karla Bautista won binibining pilipinas-world?
CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, binibining_pilipinas_world VARCHAR)
SELECT MAX(episodes) FROM table_22837363_1 WHERE viewers__in_millions_ = "5.74"
What was the highest amount of episodes for the season with 5.74 million viewers?
CREATE TABLE table_22837363_1 ( episodes INTEGER, viewers__in_millions_ VARCHAR )
SELECT MIN(grid) FROM table_name_32 WHERE laps < 65 AND driver = "tim schenken"
What is the lowest Grid with fewer than 65 Laps and with Driver Tim Schenken?
CREATE TABLE table_name_32 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT COUNT(second_runner_up) FROM table_1825751_4 WHERE binibining_pilipinas_world = "Janina San Miguel"
Who is the second runner up when Janina San Miguel won binibining pilipinas-world?
CREATE TABLE table_1825751_4 (second_runner_up VARCHAR, binibining_pilipinas_world VARCHAR)
SELECT week FROM table_name_57 WHERE tournament = "cincinnati"
What week was the tournament at Cincinnati?
CREATE TABLE table_name_57 ( week VARCHAR, tournament VARCHAR )
SELECT driver FROM table_name_98 WHERE grid = 1
What Driver has 1 in Grid?
CREATE TABLE table_name_98 (driver VARCHAR, grid VARCHAR)
SELECT COUNT(miss_universe_philippines) FROM table_1825751_4 WHERE binibining_pilipinas_international = "Margaret Ann Bayot"
When Margaret Ann Bayot won binibining pilipinas-international, how many winners of Miss Universe Philippines were there?
CREATE TABLE table_1825751_4 (miss_universe_philippines VARCHAR, binibining_pilipinas_international VARCHAR)
SELECT opponent FROM table_name_28 WHERE date = "september 10, 1979"
Who was the opponent on september 10, 1979?
CREATE TABLE table_name_28 ( opponent VARCHAR, date VARCHAR )
SELECT time_retired FROM table_name_75 WHERE driver = "howden ganley"
What is Driver Howden Ganley's Time/Retired?
CREATE TABLE table_name_75 (time_retired VARCHAR, driver VARCHAR)
SELECT MIN(population_served) FROM table_18268930_1
What's the minimal number of population served?
CREATE TABLE table_18268930_1 (population_served INTEGER)
SELECT home FROM table_name_56 WHERE visitor = "chicago black hawks" AND date = "february 18"
Who was the home team on February 18 that had a visitor of the Chicago Black Hawks?
CREATE TABLE table_name_56 ( home VARCHAR, visitor VARCHAR, date VARCHAR )
SELECT date FROM table_name_45 WHERE home_team = "hawthorn"
On what date was Hawthorn the home team?
CREATE TABLE table_name_45 (date VARCHAR, home_team VARCHAR)
SELECT partner FROM table_18268930_1 WHERE location = "Tamara, HON"
Who's the partner at Tamara, Hon?
CREATE TABLE table_18268930_1 (partner VARCHAR, location VARCHAR)
SELECT MAX(round) FROM table_name_46 WHERE team = "baltimore bullets" AND pick > 6
What is the top round for the baltimore bullets with a Pick larger than 6?
CREATE TABLE table_name_46 ( round INTEGER, team VARCHAR, pick VARCHAR )
SELECT away_team FROM table_name_2 WHERE venue = "junction oval"
Who was the away team at Junction Oval?
CREATE TABLE table_name_2 (away_team VARCHAR, venue VARCHAR)
SELECT MIN(votes_khuzestan) FROM table_1827900_1 WHERE _percentage_of_votes_khuzestan = "34.50"
How many votes Khuzestan were there when the percentage was 34.50?
CREATE TABLE table_1827900_1 (votes_khuzestan INTEGER, _percentage_of_votes_khuzestan VARCHAR)
SELECT "Gender" FROM table_78041 WHERE "Full Name" = 'chukwubuikem maduabuchi'
Chukwubuikem Maduabuchi is what gender?
CREATE TABLE table_78041 ( "Full Name" text, "Nickname" text, "Gender" text, "Weight at birth" text, "Meaning" text )
SELECT home_team FROM table_name_93 WHERE venue = "mcg"
Which home team played at MCG?
CREATE TABLE table_name_93 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(votes_khuzestan) FROM table_1827900_1 WHERE _percentage_of_votes_khuzestan = "34.50"
How many figures for votes Khuzestan were there when the percentage was 34.50?
CREATE TABLE table_1827900_1 (votes_khuzestan VARCHAR, _percentage_of_votes_khuzestan VARCHAR)
SELECT COUNT(career_caps) FROM table_name_78 WHERE position = "full back" AND tour_apps < 29
What is the number of career caps for a full back, when tour Apps is smaller than 29?
CREATE TABLE table_name_78 ( career_caps VARCHAR, position VARCHAR, tour_apps VARCHAR )
SELECT SUM(draws) FROM table_name_95 WHERE position < 15 AND played > 38
Tell me the sum of draws for position less than 15 with played more than 38
CREATE TABLE table_name_95 (draws INTEGER, position VARCHAR, played VARCHAR)
SELECT _percentage_of_votes_nationally FROM table_1827900_1 WHERE candidates = "Mahmoud Ahmadinejad"
What was the percentage of national votes for Mahmoud Ahmadinejad?
CREATE TABLE table_1827900_1 (_percentage_of_votes_nationally VARCHAR, candidates VARCHAR)
SELECT date FROM table_name_50 WHERE winner = "amer sulaiman"
What is the date amer sulaiman won?
CREATE TABLE table_name_50 ( date VARCHAR, winner VARCHAR )
SELECT SUM(played) FROM table_name_34 WHERE position < 9 AND draws > 19 AND goals_against > 27
Name the sum of played for position less than 9 and draws more than 19 with goals against more than 27
CREATE TABLE table_name_34 (played INTEGER, goals_against VARCHAR, position VARCHAR, draws VARCHAR)
SELECT revenue__£million_ FROM table_18304259_1 WHERE earnings_per_share__p_ = "8.9"
Name the revenue for eps being 8.9
CREATE TABLE table_18304259_1 (revenue__£million_ VARCHAR, earnings_per_share__p_ VARCHAR)
SELECT * FROM Users
SO criteria population - review adjustments.
CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostFeedback ( Id number, PostId numb...
SELECT recorded FROM table_name_16 WHERE translation = "sleep my love, good night"
Name the recorded for translation of sleep my love, good night
CREATE TABLE table_name_16 (recorded VARCHAR, translation VARCHAR)
SELECT COUNT(year_to_april) FROM table_18304259_1 WHERE ebit__£m_ = "24.5"
Name the total number of year to april for ebit being 24.5
CREATE TABLE table_18304259_1 (year_to_april VARCHAR, ebit__£m_ VARCHAR)
SELECT COUNT(*) FROM table_203_509 WHERE "position" = 'philanthropist'
how many times does philanthropist appear in the position column on this chart ?
CREATE TABLE table_203_509 ( id number, "year" number, "laetare medalist" text, "position" text )
SELECT winter FROM table_name_99 WHERE year = 1906
What is the Winter in 1906?
CREATE TABLE table_name_99 (winter VARCHAR, year VARCHAR)
SELECT earnings_per_share__p_ FROM table_18304259_1 WHERE net_profit__£m_ = "39.2"
Name the eps for net profit being 39.2
CREATE TABLE table_18304259_1 (earnings_per_share__p_ VARCHAR, net_profit__£m_ VARCHAR)
SELECT date FROM table_14971788_1 WHERE week = 2
What date was week 2?
CREATE TABLE table_14971788_1 ( date VARCHAR, week VARCHAR )
SELECT driver FROM table_name_44 WHERE time_retired = "2:45:46.2"
Which driver has a Time/Retired of 2:45:46.2?
CREATE TABLE table_name_44 (driver VARCHAR, time_retired VARCHAR)
SELECT ebit__£m_ FROM table_18304259_1 WHERE earnings_per_share__p_ = "10.6"
Name the ebit for eps being 10.6
CREATE TABLE table_18304259_1 (ebit__£m_ VARCHAR, earnings_per_share__p_ VARCHAR)
SELECT read_by FROM table_2950964_5 WHERE isbn = "isbn 978-1-4084-6879-1"
THe audio book with ISBN 978-1-4084-6879-1 is read by whom?
CREATE TABLE table_2950964_5 ( read_by VARCHAR, isbn VARCHAR )
SELECT position FROM table_name_16 WHERE pick < 312 AND school_club_team = "western michigan"
What position for the western michigan product picked ahead of 312?
CREATE TABLE table_name_16 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR)
SELECT pop_density__km_2__ FROM table_1828368_1 WHERE area__km_2__ = "28.3"
What are the population densities of all communes with an are of 28.3 sq.km.?
CREATE TABLE table_1828368_1 (pop_density__km_2__ VARCHAR, area__km_2__ VARCHAR)
SELECT MAX(psychological_dependence) FROM table_name_55 WHERE pleasure < 2.3 AND drug = "cannabis" AND physical_dependence < 0.8
What is the highest Psychological Dependence, when Pleasure is less than 2.3, when Drug is 'Cannabis', and when Physical Dependence is less than 0.8?
CREATE TABLE table_name_55 ( psychological_dependence INTEGER, physical_dependence VARCHAR, pleasure VARCHAR, drug VARCHAR )
SELECT date FROM table_name_32 WHERE loser = "green bay packers" AND location = "green bay"
What date did the Chicago Bears beat the Green bay Packers 31-20?
CREATE TABLE table_name_32 (date VARCHAR, loser VARCHAR, location VARCHAR)
SELECT commune FROM table_1828368_1 WHERE area__km_2__ = "12.4"
What commune has an area of 12.4 sq.km.?
CREATE TABLE table_1828368_1 (commune VARCHAR, area__km_2__ VARCHAR)
SELECT "Assets (billion $)" FROM table_1545 WHERE "Headquarters" = 'Brazil'
What are the assets for company who's headquarters are located in Brazil?
CREATE TABLE table_1545 ( "Rank" real, "Company" text, "Headquarters" text, "Industry" text, "Sales (billion $)" text, "Profits (billion $)" text, "Assets (billion $)" text, "Market Value (billion $)" text )
SELECT date FROM table_name_95 WHERE home = "boston bruins"
When were the boston bruins the home team?
CREATE TABLE table_name_95 (date VARCHAR, home VARCHAR)
SELECT city FROM table_18299148_1 WHERE resolution = "Negotiated exile in Austria"
Which city has a resolution that is negotiated exile in Austria?
CREATE TABLE table_18299148_1 (city VARCHAR, resolution 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 = "Morbid obesity" AND lab."CATEGORY" = "Chemistry"
count the number of patients whose diagnoses long title is morbid obesity and lab test category is chemistry?
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 nat FROM table_name_50 WHERE moving_from = "bordeaux"
In what nation is Bordeaux?
CREATE TABLE table_name_50 (nat VARCHAR, moving_from VARCHAR)
SELECT COUNT(Missions) AS country FROM table_18299148_1 WHERE notability = "President of Burundi"
How many missions countries have notability with president of burundi?
CREATE TABLE table_18299148_1 (Missions VARCHAR, notability VARCHAR)
SELECT "Semifinal Matches" FROM table_26614 WHERE "Commercial Name" = 'Buick WCT Finals'
Who played in the semi finals matches at the Buick WCT finals?
CREATE TABLE table_26614 ( "Date Final" text, "Tournament" text, "Commercial Name" text, "Category" text, "Prize Money/ Surface" text, "Final Match" text, "Semifinal Matches" text )
SELECT lead FROM table_name_89 WHERE nation = "norway"
Who has the lead in Norway?
CREATE TABLE table_name_89 (lead VARCHAR, nation VARCHAR)
SELECT nickname_s_ FROM table_18304058_2 WHERE enrollment__2013_14_ = 436
What is the nickname of the team whose 2013/2014 enrollment is 436?
CREATE TABLE table_18304058_2 (nickname_s_ VARCHAR, enrollment__2013_14_ VARCHAR)
SELECT Id, Title, Score, creation_year, creation_month FROM (SELECT p.Id, p.Title, p.Score, YEAR(p.CreationDate) AS creation_year, MONTH(p.CreationDate) AS creation_month, RANK() OVER (PARTITION BY YEAR(p.CreationDate), MONTH(p.CreationDate) ORDER BY p.Score DESC) AS rnk FROM Posts AS p JOIN PostTags AS pt ON pt.PostId...
Time Series of R highest rated questions.
CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId numb...
SELECT skip FROM table_name_83 WHERE second = "joan mccusker"
Which Skip will play Joan Mccusker?
CREATE TABLE table_name_83 (skip VARCHAR, second VARCHAR)