answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT report FROM table_2266230_1 WHERE year = "2003"
Name the report for 2003
CREATE TABLE table_2266230_1 (report VARCHAR, year VARCHAR)
SELECT "Margin" FROM table_41135 WHERE "Match Date" = 'oct 17, 2007'
What is Margin, when Match Date is Oct 17, 2007?
CREATE TABLE table_41135 ( "S No" real, "Team (A)" text, "Team (B)" text, "Winner" text, "Margin" text, "Match Date" text )
SELECT record FROM table_name_72 WHERE home = "nashville"
Which Record has a home of Nashville?
CREATE TABLE table_name_72 (record VARCHAR, home VARCHAR)
SELECT date_opened FROM table_22665117_1 WHERE dist_id = 11901
What is the date opened if thedistrict ID is 11901?
CREATE TABLE table_22665117_1 (date_opened VARCHAR, dist_id VARCHAR)
SELECT "Gen.-Secretary" FROM table_55247 WHERE "Vice President" = 'charlotte saes'
Which Gen.-Secretary that has a Vice President named charlotte saes?
CREATE TABLE table_55247 ( "Year" text, "President" text, "Vice President" text, "Gen.-Secretary" text, "Treasurer" text )
SELECT visitor FROM table_name_67 WHERE date = "january 17"
Which Visitor played on January 17?
CREATE TABLE table_name_67 (visitor VARCHAR, date VARCHAR)
SELECT authorizing_agency FROM table_22665117_1 WHERE district_name = "Academy of Flint"
If the district name is the Academy of Flint, what is the authorizing agency?
CREATE TABLE table_22665117_1 (authorizing_agency VARCHAR, district_name VARCHAR)
SELECT team FROM table_name_28 WHERE manager = "david o'leary"
Which team does David O'leary manage?
CREATE TABLE table_name_28 ( team VARCHAR, manager VARCHAR )
SELECT record FROM table_name_59 WHERE visitor = "nashville" AND decision = "ellis" AND game > 32
Which game later than number 32 had both Ellis for the decision and Nashville as the visiting team?
CREATE TABLE table_name_59 (record VARCHAR, game VARCHAR, visitor VARCHAR, decision VARCHAR)
SELECT district_name FROM table_22665117_1 WHERE dist_id = 74907
If the district ID is 74907, what is the name of the district?
CREATE TABLE table_22665117_1 (district_name VARCHAR, dist_id VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2164" AND lab.label = "pO2"
How many patients are with admission year below 2164 and with lab test name p02?
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob te...
SELECT visitor FROM table_name_28 WHERE game > 29 AND attendance > 18 OFFSET 584
Who was the visiting team in the game sometime after number 29 that had 18,584 atttendees?
CREATE TABLE table_name_28 (visitor VARCHAR, game VARCHAR, attendance VARCHAR)
SELECT county FROM table_22665117_1 WHERE district_name = "Charyl Stockwell Academy"
If the name of the district is the Charyl Stockwell Academy, what is the county name?
CREATE TABLE table_22665117_1 (county VARCHAR, district_name VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND demographic.admityear < "2146"
How many patients from american indian/alaska native origin were admitted before the year 2164?
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob te...
SELECT vca_155 FROM table_name_7 WHERE vcpc = "75km/h (47mph)"
If there is a VCPC of 75km/h (47mph) what is the VCA?
CREATE TABLE table_name_7 (vca_155 VARCHAR, vcpc VARCHAR)
SELECT driver FROM table_2266976_1 WHERE year = "1986"
Who was the driver in 1986?
CREATE TABLE table_2266976_1 (driver VARCHAR, year VARCHAR)
SELECT nhl_team FROM table_2897457_3 WHERE player = "Kris Draper"
Which nhl team has kris draper as the player?
CREATE TABLE table_2897457_3 ( nhl_team VARCHAR, player VARCHAR )
SELECT vctp FROM table_name_86 WHERE vcrt = "7.62mm (0.3in) fn mag 60-20 machine gun"
If there is a VCRT of 7.62mm (0.3in) fn mag 60-20 machine gun, what is the VCTP of that?
CREATE TABLE table_name_86 (vctp VARCHAR, vcrt VARCHAR)
SELECT date FROM table_2266976_1 WHERE average_speed__mph_ = "81.388"
When was an average speed of 81.388 mph recorded?
CREATE TABLE table_2266976_1 (date VARCHAR, average_speed__mph_ VARCHAR)
SELECT "Result" FROM table_32099 WHERE "Opponent" = 'pat lawlor'
What was the result of the match against Pat Lawlor?
CREATE TABLE table_32099 ( "Result" text, "Opponent" text, "Type" text, "Rd., Time" text, "Date" text )
SELECT airing_date FROM table_name_21 WHERE genre = "modern drama" AND number_of_episodes > 21
What is the airing date for a modern drama with more than 21 episodes?
CREATE TABLE table_name_21 (airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR)
SELECT manufacturer FROM table_2266976_1 WHERE year = "1990"
Who was the manufacturer in 1990?
CREATE TABLE table_2266976_1 (manufacturer VARCHAR, year VARCHAR)
SELECT MIN(played) FROM table_14460085_3 WHERE team = "Deportivo Español"
What is the lowest number of games played for deportivo espa ol?
CREATE TABLE table_14460085_3 ( played INTEGER, team VARCHAR )
SELECT constructor FROM table_name_33 WHERE race = "german grand prix"
What was the Constructor for the German Grand Prix Race?
CREATE TABLE table_name_33 (constructor VARCHAR, race VARCHAR)
SELECT manufacturer FROM table_2266976_1 WHERE race_time = "2:30:28"
Who was the manufacturer in the year when the race lasted 2:30:28?
CREATE TABLE table_2266976_1 (manufacturer VARCHAR, race_time VARCHAR)
SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 7698)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit ht' ...
what was the last height of patient 7698 in the last month?
CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE d_labitems ( row_id number, itemid number, label te...
SELECT constructor FROM table_name_36 WHERE fastest_lap = "derek warwick"
What was the Constructor for the race that had Derek Warwick as its Fastest Lap?
CREATE TABLE table_name_36 (constructor VARCHAR, fastest_lap VARCHAR)
SELECT team FROM table_2266976_1 WHERE year = "2003"
What team competed in 2003?
CREATE TABLE table_2266976_1 (team VARCHAR, year VARCHAR)
SELECT Team_Name, ACC_Percent FROM basketball_match
Give me a pie chart to reflect the proportion of Team_Name and ACC_Percent.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Per...
SELECT race FROM table_name_78 WHERE fastest_lap = "niki lauda" AND location = "brands hatch"
What Brands Hatch race had Niki Lauda as its Fastest Lap?
CREATE TABLE table_name_78 (race VARCHAR, fastest_lap VARCHAR, location VARCHAR)
SELECT miles__km_ FROM table_2266976_1 WHERE race_time = "3:07:53"
How long in miles (km) was the race that lasted 3:07:53?
CREATE TABLE table_2266976_1 (miles__km_ VARCHAR, race_time VARCHAR)
SELECT position FROM table_name_3 WHERE player = "jj gagiano"
What position for jj gagiano?
CREATE TABLE table_name_3 ( position VARCHAR, player VARCHAR )
SELECT report FROM table_name_32 WHERE location = "monaco"
What was the Report for the Monaco race?
CREATE TABLE table_name_32 (report VARCHAR, location VARCHAR)
SELECT race_name FROM table_22669375_1 WHERE date = "June 6"
Name the race name for june 6
CREATE TABLE table_22669375_1 (race_name VARCHAR, date VARCHAR)
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 587...
what is the name of procedure patient 58730 has been given two or more times until 30 months ago?
CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, ...
SELECT nation FROM table_name_75 WHERE total = 59
What was the nation that had 59 totals?
CREATE TABLE table_name_75 (nation VARCHAR, total VARCHAR)
SELECT location FROM table_22669375_1 WHERE race_name = "Trenton 300"
Name the location for trenton 300
CREATE TABLE table_22669375_1 (location VARCHAR, race_name VARCHAR)
SELECT "Result" FROM table_70327 WHERE "Year" = '2012'
What result in the table is from the year 2012?
CREATE TABLE table_70327 ( "Year" real, "Award" text, "Category" text, "Nominated Work" text, "Result" text )
SELECT date FROM table_name_92 WHERE winning_driver = "ayrton senna" AND location = "imola"
On what date did Ayrton Senna win at Imola?
CREATE TABLE table_name_92 (date VARCHAR, winning_driver VARCHAR, location VARCHAR)
SELECT race_name FROM table_22669375_1 WHERE rnd = 11
Name the race name for rnd being 11
CREATE TABLE table_22669375_1 (race_name VARCHAR, rnd VARCHAR)
SELECT COUNT("Crowd") FROM table_74802 WHERE "Away team score" = '4.5 (29)'
At the match where the away team scored 4.5 (29), what was the crowd size?
CREATE TABLE table_74802 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT fastest_lap FROM table_name_4 WHERE winning_driver = "ayrton senna" AND date = "23 april"
Who had the fastest lap of the race that Ayrton Senna won on 23 April?
CREATE TABLE table_name_4 (fastest_lap VARCHAR, winning_driver VARCHAR, date VARCHAR)
SELECT length FROM table_22669816_1 WHERE winning_driver = "Roger McCluskey"
What length was won by Roger McCluskey?
CREATE TABLE table_22669816_1 (length VARCHAR, winning_driver VARCHAR)
SELECT "Location" FROM table_41632 WHERE "Capacity in use" = '98.9%'
Where is the airport located that has a 98.9% in use capacity?
CREATE TABLE table_41632 ( "Rank" real, "Location" text, "Total Passengers" real, "Annual change" text, "Capacity in use" text )
SELECT grand_prix FROM table_name_25 WHERE location = "jerez"
Which Grand Prix is located in Jerez?
CREATE TABLE table_name_25 (grand_prix VARCHAR, location VARCHAR)
SELECT rnd FROM table_22669816_1 WHERE track = "Phoenix International Raceway"
What rounds did Phoenix International Raceway host?
CREATE TABLE table_22669816_1 (rnd VARCHAR, track VARCHAR)
SELECT dorm_name, COUNT(*) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.Age > 20 GROUP BY T3.dorm_name ORDER BY dorm_name
Give me a histogram for how many students are older than 20 in each dorm?, display by the names from low to high.
CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) ) CREATE TABLE Lives_in ( stuid INTEGER, ...
SELECT pole_position FROM table_name_82 WHERE location = "jerez"
Who had the pole position in Jerez?
CREATE TABLE table_name_82 (pole_position VARCHAR, location VARCHAR)
SELECT length FROM table_22669816_1 WHERE track = "Pocono International Raceway"
What are the lengths hosted by Pocono International Raceway?
CREATE TABLE table_22669816_1 (length VARCHAR, track VARCHAR)
SELECT SUM("Avg. Finish") FROM table_46799 WHERE "Poles" < '0'
What is the sum of value for average finish with poles less than 0?
CREATE TABLE table_46799 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" real, "Avg. Finish" real, "Winnings" text, "Position" text, "Team(s)" text )
SELECT report FROM table_name_84 WHERE winning_driver = "ayrton senna" AND date = "27 august"
What is the report for the race that Ayrton Senna won on 27 August?
CREATE TABLE table_name_84 (report VARCHAR, winning_driver VARCHAR, date VARCHAR)
SELECT length FROM table_22669816_1 WHERE track = "Phoenix International Raceway"
What lengths did Phoenix International Raceway host?
CREATE TABLE table_22669816_1 (length VARCHAR, track VARCHAR)
SELECT product_name, COUNT(*) FROM Products AS t1 JOIN Complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name ORDER BY product_name DESC
what are all the different product names, and how many complains has each received?, rank in desc by the product_name.
CREATE TABLE Staff ( staff_id INTEGER, gender VARCHAR(1), first_name VARCHAR(80), last_name VARCHAR(80), email_address VARCHAR(255), phone_number VARCHAR(80) ) CREATE TABLE Customers ( customer_id INTEGER, customer_type_code VARCHAR(20), address_line_1 VARCHAR(80), address_line_...
SELECT SUM(gold) FROM table_name_26 WHERE nation = "united states" AND silver > 3
What is the sum of gold medals for the United States with silver medal count greater than 3?
CREATE TABLE table_name_26 (gold INTEGER, nation VARCHAR, silver VARCHAR)
SELECT location_attendance FROM table_22669044_7 WHERE score = "L 83–118 (OT)"
Name the location attendance for score being l 83–118 (ot)
CREATE TABLE table_22669044_7 (location_attendance VARCHAR, score VARCHAR)
SELECT COUNT(season) FROM table_name_30 WHERE wins > 0 AND final_placing = "1st"
What is the total number of seasons with more than 0 wins and a 1st final placing?
CREATE TABLE table_name_30 ( season VARCHAR, wins VARCHAR, final_placing VARCHAR )
SELECT COUNT(total) FROM table_name_72 WHERE silver > 6 AND nation = "norway" AND gold > 10
What is the total number of medals of Norway with a silver medal count greater than 6 and a gold medal count greater than 10?
CREATE TABLE table_name_72 (total VARCHAR, gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT high_assists FROM table_22669044_7 WHERE date = "December 9"
Name the high assists for december 9
CREATE TABLE table_22669044_7 (high_assists VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_58 WHERE week > 3 AND opponent = "philadelphia eagles"
What was the attendance for a week larger than 3, and an opponent of philadelphia eagles?
CREATE TABLE table_name_58 ( attendance VARCHAR, week VARCHAR, opponent VARCHAR )
SELECT MIN(bronze) FROM table_name_14 WHERE gold < 6 AND nation = "italy" AND total > 10
What is the lowest bronze medal count for Italy with fewer than 6 gold medals and greater than 10 total medals?
CREATE TABLE table_name_14 (bronze INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT COUNT(winner) FROM table_2267345_2 WHERE team_classification = "Kelme-Costa Blanca" AND combativity_award = "Jacky Durand"
What is the total number of winners when the team classification leader was Kelme-Costa Blanca and the combativity award was won by Jacky Durand?
CREATE TABLE table_2267345_2 (winner VARCHAR, team_classification VARCHAR, combativity_award VARCHAR)
SELECT AVG("Year") FROM table_52862 WHERE "Rank" = '12.0 12'
What Year has a Rank of 12.0 12?
CREATE TABLE table_52862 ( "Rank" text, "Name" text, "Height ft (m)" text, "Floors" real, "Year" real )
SELECT AVG(silver) FROM table_name_38 WHERE rank > 7 AND total = 6 AND bronze < 2
On average, what is the number of silver medals for nations ranking higher than 7, with a total of 6 medals and fewer than 2 bronze medals?
CREATE TABLE table_name_38 (silver INTEGER, bronze VARCHAR, rank VARCHAR, total VARCHAR)
SELECT general_classification FROM table_2267345_2 WHERE young_rider_classification = "Salvatore Commesso" AND winner = "Erik Dekker"
Who was the general classification leader when the young rider classification leader was Salvatore Commesso and the winner was Erik Dekker?
CREATE TABLE table_2267345_2 (general_classification VARCHAR, young_rider_classification VARCHAR, winner VARCHAR)
SELECT SUM("Total") FROM table_79517 WHERE "Position" < '1'
What's the total of the position of 1?
CREATE TABLE table_79517 ( "Position" real, "Athlete" text, "Compulsory" real, "Voluntary" real, "Total" real )
SELECT MAX(total) FROM table_name_4 WHERE bronze > 2 AND rank > 3 AND nation = "united states" AND silver > 3
For the United States, with greater than 2 bronze metals, greater than 3 silver medals, and a rank higher than 3, what is the highest total number of medals?
CREATE TABLE table_name_4 (total INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT COUNT(team_classification) FROM table_2267345_2 WHERE young_rider_classification = "Salvatore Commesso" AND combativity_award = "Jacky Durand"
What is the total number of team classifications when the young rider classification leader was Salvatore Commesso and the combativity award winner was Jacky Durand?
CREATE TABLE table_2267345_2 (team_classification VARCHAR, young_rider_classification VARCHAR, combativity_award VARCHAR)
SELECT SUM(ends) FROM table_name_58 WHERE name = "abidal" AND since > 2007
What is the sum of Ends with a Name of abidal, and has a Since larger than 2007?
CREATE TABLE table_name_58 ( ends INTEGER, name VARCHAR, since VARCHAR )
SELECT player FROM table_name_36 WHERE years_for_jazz = "1975-79"
Which player was active in Jazz in 1975-79?
CREATE TABLE table_name_36 (player VARCHAR, years_for_jazz VARCHAR)
SELECT MIN(rnd) FROM table_22673872_1 WHERE winning_driver = "Al Unser" AND track = "Wisconsin State Fair Park Speedway"
In what round did Al Unser win at Wisconsin State Fair Park Speedway?
CREATE TABLE table_22673872_1 (rnd INTEGER, winning_driver VARCHAR, track VARCHAR)
SELECT "name" FROM table_204_90 WHERE "time" < (SELECT "time" FROM table_204_90 WHERE "name" = 'emebet anteneh mengistu')
who ran a shorter time than emebet anteneh mengistu ?
CREATE TABLE table_204_90 ( id number, "rank" number, "name" text, "nationality" text, "time" text )
SELECT nationality FROM table_name_47 WHERE position = "guard" AND school_club_team = "bowling green"
What is the nationality for the guard position from Bowling Green?
CREATE TABLE table_name_47 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT COUNT(race_name) FROM table_22673872_1 WHERE location = "College Station, Texas" AND winning_driver = "Johnny Rutherford"
How many races are in College Station, Texas and won by Johnny Rutherford?
CREATE TABLE table_22673872_1 (race_name VARCHAR, location VARCHAR, winning_driver VARCHAR)
SELECT score FROM table_name_58 WHERE player = "raymond floyd"
What was Raymond Floyd's score?
CREATE TABLE table_name_58 ( score VARCHAR, player VARCHAR )
SELECT player FROM table_name_86 WHERE school_club_team = "auburn"
Who is the player from Auburn?
CREATE TABLE table_name_86 (player VARCHAR, school_club_team VARCHAR)
SELECT race_name FROM table_22673872_1 WHERE pole_position = "Al Unser"
What was the name of the race that Al Unser had the pole position?
CREATE TABLE table_22673872_1 (race_name VARCHAR, pole_position VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LOS ANGELES' AND date_day.day_number = 24 AND date_day.month_number = 5 ...
give me the flights from PITTSBURGH to LOS ANGELES on thursday evening
CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int, length int, weight int, capacity int, pay_load int, cruising_speed int, range_...
SELECT player FROM table_name_81 WHERE position = "shooting guard"
Which player is a shooting guard?
CREATE TABLE table_name_81 (player VARCHAR, position VARCHAR)
SELECT track FROM table_22673872_1 WHERE race_name = "International 500 Mile Sweepstakes"
What is the name of the track for the International 500 mile Sweepstakes race?
CREATE TABLE table_22673872_1 (track VARCHAR, race_name VARCHAR)
SELECT "Location" FROM table_26115 WHERE "Date" = 'March 20'
What is every location for the date of March 20?
CREATE TABLE table_26115 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Attendance" real, "Record" text, "Points" real )
SELECT position FROM table_name_59 WHERE years_for_jazz = "2002-03"
Which position was active in Jazz in 2002-03?
CREATE TABLE table_name_59 (position VARCHAR, years_for_jazz VARCHAR)
SELECT location FROM table_22673872_1 WHERE pole_position = "Gordon Johncock"
Which locations did Gordon Johncock hold the pole position?
CREATE TABLE table_22673872_1 (location VARCHAR, pole_position VARCHAR)
SELECT "total" FROM table_203_496 WHERE "country" = 'poland'
how many medals total did poland win ?
CREATE TABLE table_203_496 ( id number, "pos" number, "country" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT COUNT(swimsuit) FROM table_name_39 WHERE evening_gown = 8.329 AND average < 8.497
Name the total number of swimsuits when evening gown is 8.329 and average is less than 8.497
CREATE TABLE table_name_39 (swimsuit VARCHAR, evening_gown VARCHAR, average VARCHAR)
SELECT classification FROM table_2266990_2 WHERE title = "Fish Rap Live!"
What classifications does Fish Rap live! has?
CREATE TABLE table_2266990_2 (classification VARCHAR, title VARCHAR)
SELECT COUNT("ECTS Credit Points") FROM table_69950 WHERE "Program" = 'master in management'
How many ECTS credit points occur with Master in Management?
CREATE TABLE table_69950 ( "Program" text, "Degree" text, "Teaching language" text, "Duration (years)" real, "full-time/part-time" text, "ECTS Credit Points" real )
SELECT SUM(swimsuit) FROM table_name_67 WHERE average < 7.362 AND evening_gown < 6.983
Name the sum of swimsuit when the evening gown is less than 6.983 and the average is less than 7.362
CREATE TABLE table_name_67 (swimsuit INTEGER, average VARCHAR, evening_gown VARCHAR)
SELECT COUNT(race_name) FROM table_22673956_1 WHERE date = "October 1"
How many races took place on October 1?
CREATE TABLE table_22673956_1 (race_name VARCHAR, date VARCHAR)
SELECT MIN("CPC Blend Kazakhstan") FROM table_60225 WHERE "Draugen North Sea" = '17'
What is the lowest CPC Blend Kazakhstan number when Draugen North Sea is 17?
CREATE TABLE table_60225 ( "Crude oil name \\Rightarrow Location \\Rightarrow" text, "Barrow Island Australia" real, "Mutineer-Exeter Australia" real, "CPC Blend Kazakhstan" real, "Draugen North Sea" real )
SELECT MAX(interview) FROM table_name_7 WHERE state = "minnesota" AND average > 7.901
Name the most interview for minnesota and average more than 7.901
CREATE TABLE table_name_7 (interview INTEGER, state VARCHAR, average VARCHAR)
SELECT COUNT(type) FROM table_22673956_1 WHERE track = "Phoenix International Raceway"
How many types of tracks are there on the Phoenix International raceway?
CREATE TABLE table_22673956_1 (type VARCHAR, track VARCHAR)
SELECT p.Id AS "post_link", p.CreationDate, LEN(p.Body) AS BodyLength FROM Posts AS p INNER JOIN Users AS u ON u.Id = p.OwnerUserId WHERE p.PostTypeId = 1 AND p.CreationDate > '2015-04-15T00:00:00.000' AND DATEDIFF(WEEK, u.CreationDate, CreationDate) < 104 ORDER BY p.CreationDate
v2 - Answers that are possibly link only which were posted by new users and question asker is new. credit to Bill the Lizard for help putting this together http://meta.stackexchange.com/a/238320/244519
CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, Last...
SELECT MAX(decile) FROM table_name_70 WHERE roll > 325 AND area = "warkworth"
Name the highest Decile for roll more than 325 and area of warkworth
CREATE TABLE table_name_70 (decile INTEGER, roll VARCHAR, area VARCHAR)
SELECT MAX(rnd) FROM table_22673956_1 WHERE race_name = "Daily Empress Indy Silverstone"
Daily Empress Indy Silverstone took place on which round?
CREATE TABLE table_22673956_1 (rnd INTEGER, race_name VARCHAR)
SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 22449)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial...
when was the first time patient 22449 was having less than 111.0 arterial bp [systolic] since 1302 days ago?
CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, ...
SELECT authority FROM table_name_22 WHERE roll = 54
Name the authority for roll of 54
CREATE TABLE table_name_22 (authority VARCHAR, roll VARCHAR)
SELECT COUNT(race_name) FROM table_22673956_1 WHERE track = "Indianapolis Motor Speedway"
How many races took place on the Indianapolis Motor Speedway track?
CREATE TABLE table_22673956_1 (race_name VARCHAR, track VARCHAR)
SELECT "Viewers (millions)" FROM table_72651 WHERE "Title" = 'Sokka''s Master'
How many viewers in millions for episode 'sokka's master'?
CREATE TABLE table_72651 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real, "Viewers (millions)" text )
SELECT score1 FROM table_name_69 WHERE match = 2
What was the score of Match 2?
CREATE TABLE table_name_69 (score1 VARCHAR, match VARCHAR)
SELECT driver FROM table_2267465_1 WHERE race_time = "3:50:12"
What driver achieved a 3:50:12 race time?
CREATE TABLE table_2267465_1 (driver VARCHAR, race_time VARCHAR)