answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT AVG("Losses") FROM table_65748 WHERE "Sunrayia FL" = 'red cliffs' AND "Against" > '2294'
What is the losses when Sunrayia FL is Red Cliffs, and the against is more than 2294?
CREATE TABLE table_65748 ( "Sunrayia FL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real )
SELECT date FROM table_name_21 WHERE pole_position = "joakim bonnier"
What date was Joakim Bonnier in the pole position?
CREATE TABLE table_name_21 (date VARCHAR, pole_position VARCHAR)
SELECT COUNT(fin_pos) FROM table_17244483_1 WHERE time_retired = "+10.8098"
How many positions did the car with a final time of +10.8098 finish in?
CREATE TABLE table_17244483_1 (fin_pos VARCHAR, time_retired VARCHAR)
SELECT billing_state, COUNT(*), SUM(total) FROM invoices WHERE billing_state = "CA"
List the number of invoices and the invoice total from California.
CREATE TABLE artists ( id number, name text ) CREATE TABLE sqlite_sequence ( name text, seq text ) CREATE TABLE employees ( id number, last_name text, first_name text, title text, reports_to number, birth_date time, hire_date time, address text, city text, state...
SELECT time_retired FROM table_name_70 WHERE grid = 19
What is the time for the racer on grid 19?
CREATE TABLE table_name_70 (time_retired VARCHAR, grid VARCHAR)
SELECT MIN(fin_pos) FROM table_17244483_1 WHERE driver = "Darren Manning"
Darren Manning finished in what position?
CREATE TABLE table_17244483_1 (fin_pos INTEGER, driver VARCHAR)
SELECT "Record Company" FROM table_32673 WHERE "Conductor" = 'robert craft'
What record company has robert craft conducting?
CREATE TABLE table_32673 ( "Orchestra" text, "Conductor" text, "Record Company" text, "Year of Recording" real, "Format" text )
SELECT constructor FROM table_name_4 WHERE grid < 7 AND laps > 35 AND driver = "alberto ascari"
Who made the car that Alberto Ascari went more than 35 laps on a grid less than 7?
CREATE TABLE table_name_4 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT position FROM table_17246160_1 WHERE team = "Josef Kaufmann Racing"
What was the position for the Josef Kaufmann Racing team?
CREATE TABLE table_17246160_1 (position VARCHAR, team VARCHAR)
SELECT COUNT("name") FROM table_203_639
count how many people were club president and give the total .
CREATE TABLE table_203_639 ( id number, "year" text, "number" text, "name" text )
SELECT driver FROM table_name_22 WHERE laps > 9 AND grid = 7
What driver raced for more than 9 laps on grid 7?
CREATE TABLE table_name_22 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT MAX(poles) FROM table_17246160_1 WHERE series = "Formula BMW Pacific"
How many poles did the player have during the Formula BMW Pacific race?
CREATE TABLE table_17246160_1 (poles INTEGER, series VARCHAR)
SELECT "Margin of error" FROM table_10800 WHERE "Undecided" = '8%' AND "Other" = '4%'
what is the margin of error when the undicided is 8% and other is 4%?
CREATE TABLE table_10800 ( "Poll source" text, "Date(s) administered" text, "Sample size" text, "Margin of error" text, "Barbara Boxer (D)" text, "Carly Fiorina (R)" text, "Other" text, "Undecided" text )
SELECT license FROM table_name_18 WHERE actual_version = "9.0"
Which License has an Actual Vaersion of 9.0?
CREATE TABLE table_name_18 (license VARCHAR, actual_version VARCHAR)
SELECT MAX(season) FROM table_17246160_1 WHERE points = 0 AND position = "31st"
Which season did he have 0 points and 31st position?
CREATE TABLE table_17246160_1 (season INTEGER, points VARCHAR, position VARCHAR)
SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = "Appropriations"
What are the names of the county that the delegates on 'Appropriations' committee belong to?
CREATE TABLE county ( County_name VARCHAR, County_id VARCHAR ) CREATE TABLE election ( District VARCHAR, Committee VARCHAR )
SELECT system FROM table_name_15 WHERE actual_version = "9.0"
Which System has an Actual Version 9.0?
CREATE TABLE table_name_15 (system VARCHAR, actual_version VARCHAR)
SELECT wins FROM table_17246160_1 WHERE series = "Formula BMW World Final"
How many wins did the player have in the Formula BMW World Final?
CREATE TABLE table_17246160_1 (wins VARCHAR, series VARCHAR)
SELECT MIN("Evening gown") FROM table_11512 WHERE "Swimsuit" = '7.24' AND "Interview" > '7.97'
Name the least evening gown for interview more than 7.97 and swimsui of 7.24
CREATE TABLE table_11512 ( "State" text, "Swimsuit" real, "Evening gown" real, "Interview" real, "Average" real )
SELECT system FROM table_name_45 WHERE name = "gemulator"
Which System's Name is Gemulator?
CREATE TABLE table_name_45 (system VARCHAR, name VARCHAR)
SELECT air_date FROM table_17257687_1 WHERE event_2 = "Hang Tough"
On what date was the episode aired where event 2 was Hang Tough?
CREATE TABLE table_17257687_1 (air_date VARCHAR, event_2 VARCHAR)
SELECT MIN("Number of episodes") FROM table_65897 WHERE "Airing date" = '12 jan- 6 feb'
What is the lowest number of episodes in a series with an airing date of 12 jan- 6 feb?
CREATE TABLE table_65897 ( "Airing date" text, "English title (Chinese title)" text, "Number of episodes" real, "Genre" text, "Official website" text )
SELECT system FROM table_name_76 WHERE license = "freeware" AND name = "steem"
Which System's Name is Steem, and has a Freeware License?
CREATE TABLE table_name_76 (system VARCHAR, license VARCHAR, name VARCHAR)
SELECT event_2 FROM table_17257687_1 WHERE event_4 = "Whiplash"
When event 4 was Whiplash, what was event 2?
CREATE TABLE table_17257687_1 (event_2 VARCHAR, event_4 VARCHAR)
SELECT "Surface" FROM table_43851 WHERE "Opponent" = 'estrella cabeza candela'
On which Surface will Estrella Cabeza Candela play?
CREATE TABLE table_43851 ( "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text )
SELECT date FROM table_name_96 WHERE record = "10–13–2"
What was the date of the game when the Lightning had a record of 10–13–2?
CREATE TABLE table_name_96 (date VARCHAR, record VARCHAR)
SELECT COUNT(air_date) FROM table_17257687_1 WHERE event_1 = "Suspension Bridge"
On how many different dates was event 1 Suspension Bridge?
CREATE TABLE table_17257687_1 (air_date VARCHAR, event_1 VARCHAR)
SELECT candidates FROM table_1346137_4 WHERE district = "South Carolina 5"
Who were the candidates in the district of South Carolina 5?
CREATE TABLE table_1346137_4 ( candidates VARCHAR, district VARCHAR )
SELECT date FROM table_name_58 WHERE record = "9–8–1"
What was the date of the game when the Lightning had a record of 9–8–1?
CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR)
SELECT COUNT(episode_number) FROM table_17257687_1 WHERE event_4 = "The Wall" AND event_1 = "Pendulum"
On which episode number is event 4 The Wall and event 1 the Pendulum?
CREATE TABLE table_17257687_1 (episode_number VARCHAR, event_4 VARCHAR, event_1 VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "7" AND diagnoses.short_title = "Single lb in-hosp w cs"
give me the number of patients whose days of hospital stay is greater than 7 and diagnoses short title is single lb in-hosp w cs?
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 decision FROM table_name_84 WHERE record = "6–8–1"
What was the decision of the game when the Lightning had a record of 6–8–1?
CREATE TABLE table_name_84 (decision VARCHAR, record VARCHAR)
SELECT event_2 FROM table_17257687_1 WHERE event_1 = "Atlasphere"
What was event 2 when event 1 was Atlasphere?
CREATE TABLE table_17257687_1 (event_2 VARCHAR, event_1 VARCHAR)
SELECT "Date" FROM table_45190 WHERE "Set 1" = '25–23' AND "Set 3" = '25–14'
What date was the set 1 25 23, and a Set 3 of 25 14?
CREATE TABLE table_45190 ( "Date" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Total" text )
SELECT AVG(pick) FROM table_name_48 WHERE player = "dominic uy"
What pick was Dominic Uy?
CREATE TABLE table_name_48 (pick INTEGER, player VARCHAR)
SELECT car_no FROM table_17256857_1 WHERE driver = "Darren Manning"
What is the car number driven by Darren Manning?
CREATE TABLE table_17256857_1 (car_no VARCHAR, driver VARCHAR)
SELECT q.Id AS "post_link", COUNT(pf.FlagTypeId) AS CVs, q.ViewCount FROM Posts AS q INNER JOIN Users AS u ON u.Id = q.OwnerUserId INNER JOIN PostHistory AS ph ON ph.Id = q.Id INNER JOIN PendingFlags AS pf ON pf.PostId = q.Id WHERE q.PostTypeId = 1 AND DATEDIFF(DAY, q.CreationDate, GETDATE()) > 365 AND q.Score = 0 AND ...
ROOMBA > year old questions that have active close votes. http://meta.stackexchange.com/questions/78048/enable-automatic-deletion-of-old-unanswered-zero-score-questions-after-a-year/92006#92006 No need to vote to close these as 1 downvote should delete them anytime within the next 7 days.
CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDispl...
SELECT college FROM table_name_98 WHERE pick = 33
What college did pick 33 attend?
CREATE TABLE table_name_98 (college VARCHAR, pick VARCHAR)
SELECT MAX(fin_pos) FROM table_17256857_1 WHERE points = "50"
Which position earned 50 points?
CREATE TABLE table_17256857_1 (fin_pos INTEGER, points VARCHAR)
SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_co...
Which classes gives me the easiest path to cover the ULCS requirement ?
CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, ...
SELECT elevation_msl FROM table_name_71 WHERE housing__2007_ = "91,385"
What is the elevation of the city with a number of 91,385 Housing dwellings in 2007?
CREATE TABLE table_name_71 (elevation_msl VARCHAR, housing__2007_ VARCHAR)
SELECT COUNT(grid) FROM table_17256857_1 WHERE driver = "Vitor Meira"
How many drivers on the grid are called Vitor Meira?
CREATE TABLE table_17256857_1 (grid VARCHAR, driver VARCHAR)
SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26995) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY procedures_icd.charttime DESC LIMIT ...
when in a year before patient 26995 received for the last time a procedure?
CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, ...
SELECT density__hab_km²_ FROM table_name_11 WHERE city_district = "san sebastián"
What is the density of San Sebastián?
CREATE TABLE table_name_11 (density__hab_km²_ VARCHAR, city_district VARCHAR)
SELECT MIN(result) FROM table_17265535_7 WHERE equation = "0 × 9² + 3 × 9 + 3"
If the equation is 0 × 9² + 3 × 9 + 3, what is the result?
CREATE TABLE table_17265535_7 (result INTEGER, equation VARCHAR)
SELECT "Shirt sponsor" FROM table_70932 WHERE "Team" = 'blackburn rovers'
Who was the shirt sponsor for the Blackburn Rovers?
CREATE TABLE table_70932 ( "Team" text, "Manager 1" text, "Captain" text, "Kit manufacturer" text, "Shirt sponsor" text )
SELECT density__hab_km²_ FROM table_name_5 WHERE elevation_msl = "3,400 msl"
What is the density of the city with an elevation of 3,400 msl?
CREATE TABLE table_name_5 (density__hab_km²_ VARCHAR, elevation_msl VARCHAR)
SELECT MAX(3 AS rd_throw) FROM table_17265535_7 WHERE equation = "6 × 9² + 6 × 9 + 6"
If the equation is 6 × 9² + 6 × 9 + 6, what is the 3rd throw?
CREATE TABLE table_17265535_7 (equation VARCHAR)
SELECT position FROM table_name_17 WHERE school = "indiana state"
Name the position for indiana state
CREATE TABLE table_name_17 ( position VARCHAR, school VARCHAR )
SELECT area_km² FROM table_name_92 WHERE density__hab_km²_ = "8,546.1"
What is the area of the city with a density of 8,546.1?
CREATE TABLE table_name_92 (area_km² VARCHAR, density__hab_km²_ VARCHAR)
SELECT MIN(2 AS nd_throw) FROM table_17265535_7 WHERE equation = "8 × 9² + 8 × 9 + 8"
If the equation is 8 × 9² + 8 × 9 + 8, what is the 2nd throw?
CREATE TABLE table_17265535_7 (equation VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ABDOMINAL PAIN" AND demographic.age < "72"
calculate the number of patients with abdominal pain as primary disease and aged below 72
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 area_km² FROM table_name_72 WHERE density__hab_km²_ = "955.6"
What is the area of the city with a density of 955.6?
CREATE TABLE table_name_72 (area_km² VARCHAR, density__hab_km²_ VARCHAR)
SELECT 2 AS nd_throw FROM table_17265535_7 WHERE equation = "1 × 9² + 4 × 9 + 0"
If the equation is 1 × 9² + 4 × 9 + 0, what is the 2nd throw?
CREATE TABLE table_17265535_7 (equation VARCHAR)
SELECT örebro FROM table_name_67 WHERE umeå = "2"
What did Orebro score when Umea scored 2?
CREATE TABLE table_name_67 ( örebro VARCHAR, umeå VARCHAR )
SELECT density__hab_km²_ FROM table_name_72 WHERE city_district = "san sebastián"
What is the density of San Sebastián?
CREATE TABLE table_name_72 (density__hab_km²_ VARCHAR, city_district VARCHAR)
SELECT MAX(2 AS nd_throw) FROM table_17265535_7 WHERE equation = "6 × 9² + 6 × 9 + 6"
If the equation is 6 × 9² + 6 × 9 + 6, what is the 2nd throw?
CREATE TABLE table_17265535_7 (equation VARCHAR)
SELECT "Network" FROM table_62607 WHERE "Year" > '1990' AND "Colour commentator(s)" = 'chris walby'
For which network was Chris Walby the color commentator after 1990?
CREATE TABLE table_62607 ( "Year" real, "Network" text, "Play-by-play" text, "Colour commentator(s)" text, "Pregame host" text )
SELECT result FROM table_name_45 WHERE category = "best book of a musical"
Which Result has a Category of best book of a musical?
CREATE TABLE table_name_45 (result VARCHAR, category VARCHAR)
SELECT 2 AS nd_leg FROM table_17282875_3 WHERE team__number1 = "San Lorenzo"
When they played San Lorenzo, what was the score of the second leg?
CREATE TABLE table_17282875_3 (team__number1 VARCHAR)
SELECT position FROM table_name_40 WHERE event = "60 m" AND venue = "budapest , hungary"
What is Position, when Event is 60 m, and when Venue is Budapest , Hungary?
CREATE TABLE table_name_40 ( position VARCHAR, event VARCHAR, venue VARCHAR )
SELECT nominee FROM table_name_88 WHERE category = "outstanding musical"
Which Nominee has a Category of outstanding musical?
CREATE TABLE table_name_88 (nominee VARCHAR, category VARCHAR)
SELECT COUNT(1 AS st_leg) FROM table_17282875_3 WHERE team__number2 = "Universidad de Chile"
When they played Universidad de Chile, what was the score of the first leg?
CREATE TABLE table_17282875_3 (team__number2 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 = 28775 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1)) AND chartevent...
how much patient 28775 weighs during the last hospital encounter for the last time?
CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, ...
SELECT time FROM table_name_20 WHERE record = "nascar camping world truck series"
What is the record time at the Nascar Camping World Truck Series?
CREATE TABLE table_name_20 (time VARCHAR, record VARCHAR)
SELECT team__number2 FROM table_17282875_3 WHERE team__number1 = "San Lorenzo"
Who played San Lorenzo?
CREATE TABLE table_17282875_3 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'endotracheal tube removal' AND DATETIME(treatment.treatmenttime, 'start o...
count the number of patients who had a head ct scan procedure in the same hospital visit after being given a endotracheal tube removal procedure during this year.
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemics...
SELECT record FROM table_name_57 WHERE date = "nascar nationwide series"
What date was the nascar nationwide series held?
CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR)
SELECT team__number2 FROM table_17282875_3 WHERE team__number1 = "River Plate"
Who played River Plate?
CREATE TABLE table_17282875_3 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT date FROM table_11622255_1 WHERE location = "Illinois"
what's the date where location is illinois
CREATE TABLE table_11622255_1 ( date VARCHAR, location VARCHAR )
SELECT record FROM table_name_12 WHERE time = "24.521"
Who holds the record time of 24.521 and where was it made?
CREATE TABLE table_name_12 (record VARCHAR, time VARCHAR)
SELECT COUNT(1 AS st_leg) FROM table_17282875_2 WHERE team__number2 = "Botafogo"
What was the score on the 1st leg if the team 2 is botafogo?
CREATE TABLE table_17282875_2 (team__number2 VARCHAR)
SELECT "Driver" FROM table_3935 WHERE "Round" = '8'
Who was the driver in round 8?
CREATE TABLE table_3935 ( "Round" real, "Race" text, "Pole position" text, "Fastest lap" text, "Most laps led" text, "Driver" text, "Team" text, "Manufacturer" text, "Report" text )
SELECT time_retired FROM table_name_79 WHERE grid = "9"
Which time/retired has a grid of 9?
CREATE TABLE table_name_79 (time_retired VARCHAR, grid VARCHAR)
SELECT team__number2 FROM table_17282875_2 WHERE team__number1 = "Vitória"
Who played against team 1 Vitória?
CREATE TABLE table_17282875_2 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT high_assists FROM table_18813011_6 WHERE record = "13-11"
Who had the high assist in the game where the record is 13-11?
CREATE TABLE table_18813011_6 ( high_assists VARCHAR, record VARCHAR )
SELECT driver FROM table_name_79 WHERE grid = "6"
Which driver's grid is 6?
CREATE TABLE table_name_79 (driver VARCHAR, grid VARCHAR)
SELECT team__number2 FROM table_17282875_2 WHERE team__number1 = "Liverpool"
Who played against team 1 Liverpool?
CREATE TABLE table_17282875_2 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT alpha_3_code FROM table_222771_1 WHERE alpha_2_code = "FO"
What is the Alpha 3 code for the area also known as FO?
CREATE TABLE table_222771_1 ( alpha_3_code VARCHAR, alpha_2_code VARCHAR )
SELECT constructor FROM table_name_59 WHERE driver = "juan manuel fangio"
For which constructor does Juan Manuel Fangio drive?
CREATE TABLE table_name_59 (constructor VARCHAR, driver VARCHAR)
SELECT points FROM table_17282875_2 WHERE team__number2 = "Deportivo Anzoátegui"
What was the game's points against Team 2 Deportivo Anzoátegui?
CREATE TABLE table_17282875_2 (points VARCHAR, team__number2 VARCHAR)
SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = "David CV"
Give the section titles of the document with the name 'David CV'.
CREATE TABLE documents ( document_code text, document_structure_code text, document_type_code text, access_count number, document_name text ) CREATE TABLE images ( image_id number, image_alt_text text, image_name text, image_url text ) CREATE TABLE document_functional_areas ( d...
SELECT laps FROM table_name_25 WHERE grid = "8"
Which laps has a grid of 8?
CREATE TABLE table_name_25 (laps VARCHAR, grid VARCHAR)
SELECT COUNT(high_points) FROM table_17288825_10 WHERE location_attendance = "US Airways Center 18,422"
How many different items appear in the high points column when the location attendance was US Airways Center 18,422?
CREATE TABLE table_17288825_10 (high_points VARCHAR, location_attendance VARCHAR)
SELECT COUNT(population_density_2010___km²_) FROM table_14986292_1 WHERE administrative_division = "Duque de Caxias"
Name the number of population density 2010 for duque de caxias
CREATE TABLE table_14986292_1 ( population_density_2010___km²_ VARCHAR, administrative_division VARCHAR )
SELECT grid FROM table_name_74 WHERE constructor = "maserati" AND driver = "oscar alfredo gálvez"
Which grid is constructed by Maserati and driven by Oscar Alfredo Gálvez?
CREATE TABLE table_name_74 (grid VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT high_assists FROM table_17288825_10 WHERE date = "April 7"
What was the high assists on April 7?
CREATE TABLE table_17288825_10 (high_assists VARCHAR, date VARCHAR)
SELECT "Player" FROM table_46024 WHERE "Position" = 'db' AND "College" = 'saint mary''s'
What is Player, when Position is DB, and when College is Saint Mary's?
CREATE TABLE table_46024 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text )
SELECT engine FROM table_name_37 WHERE driver = "ken downing" AND entrant = "connaught engineering"
what was the engine when ken downing drove an entrant from connaught engineering?
CREATE TABLE table_name_37 (engine VARCHAR, driver VARCHAR, entrant VARCHAR)
SELECT score FROM table_17288825_7 WHERE date = "January 25"
What is the score for the game played on January 25?
CREATE TABLE table_17288825_7 (score VARCHAR, date VARCHAR)
SELECT (SELECT "order #" FROM table_204_51 WHERE "week #" = 'top 6') > (SELECT "order #" FROM table_204_51 WHERE "week #" = 'top 8')
is the order # of top 6 greater than that of top 8 ?
CREATE TABLE table_204_51 ( id number, "week #" text, "theme" text, "song choice" text, "original artist" text, "order #" number, "result" text )
SELECT constructor FROM table_name_21 WHERE driver = "eric brandon"
who built the car driven by eric brandon?
CREATE TABLE table_name_21 (constructor VARCHAR, driver VARCHAR)
SELECT record FROM table_17288825_7 WHERE date = "January 19"
What is the record for the team on January 19?
CREATE TABLE table_17288825_7 (record VARCHAR, date VARCHAR)
SELECT "Coach" FROM table_47873 WHERE "Captain" = 'robert harvey'
Which coach works with Robert Harvey?
CREATE TABLE table_47873 ( "Season" text, "Coach" text, "Captain" text, "Alternate (1)" text, "Alternate (2)" text )
SELECT chassis FROM table_name_5 WHERE constructor = "simca-gordini" AND driver = "max de terra"
what was the chassis built by simca-gordini and driven by max de terra?
CREATE TABLE table_name_5 (chassis VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT COUNT(record) FROM table_17288825_7 WHERE high_points = "Ron Artest (24)"
How many times did Ron Artest (24) receive the record for high points?
CREATE TABLE table_17288825_7 (record VARCHAR, high_points VARCHAR)
SELECT "Year Joined" FROM table_63694 WHERE "City" = 'winamac'
What year did the team based in the city of Winamac join the conference?
CREATE TABLE table_63694 ( "School" text, "City" text, "Team Name" text, "County" text, "Year Joined" text, "Year Left" text )
SELECT entrant FROM table_name_23 WHERE driver = "kenneth mcalpine"
kenneth mcalpine drove from which entrant?
CREATE TABLE table_name_23 (entrant VARCHAR, driver VARCHAR)
SELECT location_attendance FROM table_17288825_7 WHERE high_assists = "Rafer Alston (10)"
At what location and what was the attendance when Rafer Alston (10) achieved high assists?
CREATE TABLE table_17288825_7 (location_attendance VARCHAR, high_assists VARCHAR)
WITH YourQuestions AS (SELECT Id FROM Posts WHERE OwnerUserId = '##UserId##' AND PostTypeId = 1), AnswersToYourQuestions AS (SELECT * FROM Posts WHERE ParentId IN (SELECT Id FROM YourQuestions)) SELECT PostId AS "post_link", CreationDate, Id AS "comment_link" FROM Comments WHERE UserId = '##CommenterUserId##' AND PostI...
Comments to Answers to my Questions by specific user.
CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBase...