answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT CRS_DESCRIPTION, COUNT(CRS_DESCRIPTION) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE JOIN PROFESSOR AS T4 ON T2.EMP_NUM = T4.EMP_NUM GROUP BY CRS_DESCRIPTION
How many courses for each course description? Show me a bar chart.
CREATE TABLE DEPARTMENT ( DEPT_CODE varchar(10), DEPT_NAME varchar(30), SCHOOL_CODE varchar(8), EMP_NUM int, DEPT_ADDRESS varchar(20), DEPT_EXTENSION varchar(4) ) CREATE TABLE ENROLL ( CLASS_CODE varchar(5), STU_NUM int, ENROLL_GRADE varchar(50) ) CREATE TABLE STUDENT ( STU_NUM...
SELECT hanyu_pinyin FROM table_name_32 WHERE density___km²_ = "39.63"
What is the Hanyu Pinyin with a density of 39.63?
CREATE TABLE table_name_32 (hanyu_pinyin VARCHAR, density___km²_ VARCHAR)
SELECT COUNT(builder) FROM table_1748444_1 WHERE number = "96"
Name the number of builders for number 96
CREATE TABLE table_1748444_1 (builder VARCHAR, number VARCHAR)
SELECT MIN(rating) FROM table_name_27 WHERE rank__night_ < 7 AND rank__timeslot_ < 5 AND episode > 6
What is the smallest rating with nightly rank smaller than 7, timeslot rank smaller than 5 and eposide after episode 6?
CREATE TABLE table_name_27 ( rating INTEGER, episode VARCHAR, rank__night_ VARCHAR, rank__timeslot_ VARCHAR )
SELECT SUM(attendance) FROM table_name_71 WHERE visitor = "nuggets" AND leading_scorer = "j.r. smith (28)"
How many people were in attendance when the visiting team was the Nuggets and the leading scorer was J.R. Smith (28)?
CREATE TABLE table_name_71 (attendance INTEGER, visitor VARCHAR, leading_scorer VARCHAR)
SELECT builder FROM table_1748444_1 WHERE date_built = "January 1910"
Name the builder for date built is january 1910
CREATE TABLE table_1748444_1 (builder VARCHAR, date_built VARCHAR)
SELECT "club" FROM table_203_145 ORDER BY "losses" DESC LIMIT 1
which team had the highest number of losses ?
CREATE TABLE table_203_145 ( id number, "position" number, "club" text, "played" number, "points" text, "wins" number, "draws" number, "losses" number, "goals for" number, "goals against" number, "goal difference" number )
SELECT leading_scorer FROM table_name_78 WHERE date = "23 february 2008"
Who was the leading scorer on 23 February 2008?
CREATE TABLE table_name_78 (leading_scorer VARCHAR, date VARCHAR)
SELECT disposition FROM table_1748444_1 WHERE date_built = "March 1909"
Name the disposition for date built is march 1909
CREATE TABLE table_1748444_1 (disposition VARCHAR, date_built VARCHAR)
SELECT group FROM table_name_91 WHERE official_history = "david d'angers"
Which group has David D'Angers as the official history?
CREATE TABLE table_name_91 ( group VARCHAR, official_history VARCHAR )
SELECT nominated_for FROM table_name_95 WHERE year < 2002 AND award = "national television awards" AND category = "most popular comedy performer"
Name what was nominated in years before 2002 for most popular comedy performer at the national television awards
CREATE TABLE table_name_95 (nominated_for VARCHAR, category VARCHAR, year VARCHAR, award VARCHAR)
SELECT title FROM table_17482534_1 WHERE no_in_series = "96"
What is the title of episode number 96 in the series?
CREATE TABLE table_17482534_1 (title VARCHAR, no_in_series VARCHAR)
SELECT Phone, COUNT(Phone) FROM Employee GROUP BY Phone ORDER BY Phone DESC
List the number of the phone numbers of all employees, and sort in descending by the names.
CREATE TABLE Playlist ( PlaylistId integer, Name varchar(120) ) CREATE TABLE Genre ( GenreId integer, Name varchar(120) ) CREATE TABLE Album ( AlbumId integer, Title varchar(160), ArtistId integer ) CREATE TABLE Invoice ( InvoiceId integer, CustomerId integer, InvoiceDate date...
SELECT result FROM table_name_83 WHERE award = "bafta tv awards"
Name the result for the bafta tv awards
CREATE TABLE table_name_83 (result VARCHAR, award VARCHAR)
SELECT no_in_season FROM table_17482534_1 WHERE directed_by = "Gene Stupnitsky"
What number in season is the episode directed by Gene Stupnitsky?
CREATE TABLE table_17482534_1 (no_in_season VARCHAR, directed_by VARCHAR)
SELECT date FROM table_name_23 WHERE rank = 2
What Date has a Rank of 2?
CREATE TABLE table_name_23 ( date VARCHAR, rank VARCHAR )
SELECT category FROM table_name_26 WHERE result = "nominated" AND award = "british comedy awards"
Name the category for nominated at the british comedy awards
CREATE TABLE table_name_26 (category VARCHAR, result VARCHAR, award VARCHAR)
SELECT us_viewers__millions_ FROM table_17482534_1 WHERE written_by = "Warren Lieberstein & Halsted Sullivan"
How many viewers did the episode written by Warren Lieberstein & Halsted Sullivan have?
CREATE TABLE table_17482534_1 (us_viewers__millions_ VARCHAR, written_by VARCHAR)
SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t2.diagnosistime) > 1 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOI...
what's the one year survival rate of a person diagnosed with thrombocytopenia - alcohol-related?
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, a...
SELECT AVG(year) FROM table_name_57 WHERE category = "most popular actress" AND nominated_for = "birds of a feather"
Name the year that Birds of a feather category for most popular actress was nominated
CREATE TABLE table_name_57 (year INTEGER, category VARCHAR, nominated_for VARCHAR)
SELECT COUNT(written_by) FROM table_17482534_1 WHERE production_code = "5008"
How many writers are listed for the episode with a production code of 5008?
CREATE TABLE table_17482534_1 (written_by VARCHAR, production_code VARCHAR)
SELECT problem_id, problem_log_id FROM Staff AS T1 JOIN Problem_Log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = "Rylan" AND T1.staff_last_name = "Homenick"
Show the correlation between the problem id and log id which are assigned to the staff named Rylan Homenick with a scatter chart.
CREATE TABLE Product ( product_id INTEGER, product_name VARCHAR(80), product_details VARCHAR(255) ) CREATE TABLE Problem_Log ( problem_log_id INTEGER, assigned_to_staff_id INTEGER, problem_id INTEGER, problem_category_code VARCHAR(20), problem_status_code VARCHAR(20), log_entry_date...
SELECT date FROM table_name_40 WHERE constructor = "ferrari"
What dates did Ferrari win races?
CREATE TABLE table_name_40 (date VARCHAR, constructor VARCHAR)
SELECT no_in_series FROM table_17482534_1 WHERE production_code = "5016/5017"
What number in the series are the episodes with production code 5016/5017?
CREATE TABLE table_17482534_1 (no_in_series VARCHAR, production_code VARCHAR)
SELECT COUNT(cuts_made) FROM table_name_81 WHERE events = 2
What is the total number of cuts made of tournaments with 2 Events?
CREATE TABLE table_name_81 ( cuts_made VARCHAR, events VARCHAR )
SELECT original_air_date FROM table_name_55 WHERE production_code = "2395120"
What was the original air date of the episode with production code 2395120?
CREATE TABLE table_name_55 (original_air_date VARCHAR, production_code VARCHAR)
SELECT COUNT(location) FROM table_17487395_1 WHERE callsign = "DXJP-FM"
How many locations have the call signs dxjp-fm?
CREATE TABLE table_17487395_1 (location VARCHAR, callsign VARCHAR)
SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-96048') AND NOT patient.unitdischargetime IS NULL...
when for the last time patient 015-96048 has had output y (ml)-chest tube y - a #1 right mid b #1 left mid output on the last icu visit?
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE a...
SELECT MAX(pts) FROM table_name_85 WHERE engine = "ferrari v12" AND chassis = "ferrari 1512" AND year > 1965
How many points for the ferrari v12 engine and ferrari 1512 chassis, after 1965?
CREATE TABLE table_name_85 (pts INTEGER, year VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT callsign FROM table_17487395_1 WHERE frequency = "90.3MHz"
What is the call sign of the station with the frequency of 90.3mhz
CREATE TABLE table_17487395_1 (callsign VARCHAR, frequency VARCHAR)
SELECT "Team Nickname" FROM table_10081 WHERE "Joined TSCHL" = '2010' AND "Home Arena" = 'kettering rec center' AND "Team Website" = 'dayton hockey'
what is the team nickname when joined tschl is 2010 and home arena is kettering rec center and the team website is dayton hockey?
CREATE TABLE table_10081 ( "Institution" text, "Location" text, "Team Nickname" text, "Joined TSCHL" real, "Home Arena" text, "Capacity" real, "Team Website" text )
SELECT date FROM table_name_58 WHERE crowd > 30 OFFSET 495
What was the date when the crowd was larger than 30,495?
CREATE TABLE table_name_58 (date VARCHAR, crowd INTEGER)
SELECT callsign FROM table_17487395_1 WHERE branding = "Mom's Radio 101.5 Tacloban"
What is the call sign for the station that uses the branding, mom's radio 101.5 tacloban?
CREATE TABLE table_17487395_1 (callsign VARCHAR, branding VARCHAR)
SELECT report FROM table_name_49 WHERE score = "0-0" AND away_team = "sydney fc"
What report has a score of 0-0 with Sydney FC?
CREATE TABLE table_name_49 ( report VARCHAR, score VARCHAR, away_team VARCHAR )
SELECT home_team FROM table_name_59 WHERE away_team = "carlton"
What was the home team when Carlton was the away team?
CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR)
SELECT branding FROM table_17487395_1 WHERE location = "Cebu"
What is the branding for stations located in Cebu?
CREATE TABLE table_17487395_1 (branding VARCHAR, location VARCHAR)
SELECT "2007" FROM table_36099 WHERE "2003" = '2r' AND "2004" = '1r'
Which 2007 has a 2003 of 2r, and a 2004 of 1r?
CREATE TABLE table_36099 ( "Tournament" text, "1998" text, "1999" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "Career SR" text, "Caree...
SELECT away_team AS score FROM table_name_70 WHERE venue = "lake oval"
What was the score for the away team when they played at lake oval?
CREATE TABLE table_name_70 (away_team VARCHAR, venue VARCHAR)
SELECT eagle_riders FROM table_17480471_3 WHERE ova__harmony_gold_dub_ = "Dr. Kozaburo Nambu"
Which eagle riders whose ova (harmony gold dub) is dr. kozaburo nambu?
CREATE TABLE table_17480471_3 (eagle_riders VARCHAR, ova__harmony_gold_dub_ VARCHAR)
SELECT "Viewers" FROM table_17174 WHERE "Episode" = 'Woman Marries Heart'
What is the viewers for the episode 'woman marries heart'?
CREATE TABLE table_17174 ( "#" real, "Episode" text, "Air Date" text, "Timeslot" text, "Rating" text, "Share" real, "18-49" text, "Viewers" text, "Weekly Rank" text )
SELECT away_team AS score FROM table_name_43 WHERE home_team = "hawthorn"
What was the score of the away team when hawthorn was the home team?
CREATE TABLE table_name_43 (away_team VARCHAR, home_team VARCHAR)
SELECT battle_of_the_planets FROM table_17480471_3 WHERE ova__harmony_gold_dub_ = "Solaris"
Which battle of the planets where ova (harmony gold dub) is solaris?
CREATE TABLE table_17480471_3 (battle_of_the_planets VARCHAR, ova__harmony_gold_dub_ VARCHAR)
SELECT "To par" FROM table_41294 WHERE "Score" = '68-71-69=208'
What is the To par, when the Score is 68-71-69=208?
CREATE TABLE table_41294 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT COUNT(gold) FROM table_name_26 WHERE rank > 4 AND total > 5 AND silver < 6
How many golds for nations ranked below 4, over 5 medals, and under 6 silvers?
CREATE TABLE table_name_26 (gold VARCHAR, silver VARCHAR, rank VARCHAR, total VARCHAR)
SELECT eagle_riders FROM table_17480471_3 WHERE battle_of_the_planets = "Zoltar"
Which eagle riders have battle of the planets as zoltar?
CREATE TABLE table_17480471_3 (eagle_riders VARCHAR, battle_of_the_planets VARCHAR)
SELECT district FROM table_1341604_26 WHERE incumbent = "Ike Skelton"
What district is incumbent ike skelton from?
CREATE TABLE table_1341604_26 ( district VARCHAR, incumbent VARCHAR )
SELECT rank FROM table_name_21 WHERE winning_party_2003 = "labour" AND swing_to_gain > 2.13 AND result = "lab hold" AND constituency = "linlithgow"
Which rank had the Labour party winning in 2003, a swing to gain that was larger than 2.13, a lab hold as a result, and which took place in the Linlithgow constituency?
CREATE TABLE table_name_21 (rank VARCHAR, constituency VARCHAR, result VARCHAR, winning_party_2003 VARCHAR, swing_to_gain VARCHAR)
SELECT gatchaman FROM table_17480471_3 WHERE eagle_riders = "Lukan"
Which gatchaman has eagle riders as lukan?
CREATE TABLE table_17480471_3 (gatchaman VARCHAR, eagle_riders VARCHAR)
SELECT MAX(laps) FROM table_name_52 WHERE grid > 19 AND time_retired = "fuel"
What were the highest laps when the grid was larger than 19 and the time/retired was fuel?
CREATE TABLE table_name_52 ( laps INTEGER, grid VARCHAR, time_retired VARCHAR )
SELECT winning_party_2003 FROM table_name_26 WHERE swing_to_gain < 2.92 AND result = "ld hold"
Which party won in 2003, that had a swing to gain of less than 2.92 and which resulted in a ld hold?
CREATE TABLE table_name_26 (winning_party_2003 VARCHAR, swing_to_gain VARCHAR, result VARCHAR)
SELECT eagle_riders FROM table_17480471_3 WHERE ova__harmony_gold_dub_ = "Lord Zortek"
What eagle riders where ova (harmony gold dub) is lord zortek?
CREATE TABLE table_17480471_3 (eagle_riders VARCHAR, ova__harmony_gold_dub_ VARCHAR)
SELECT MAX("Issue Date") FROM table_61071 WHERE "Highest Position" = '3'
What is the largest issue date for an album that reached position of 3?
CREATE TABLE table_61071 ( "Issue Date" real, "Album Title" text, "Artist" text, "Sales" real, "Highest Position" real )
SELECT constituency FROM table_name_72 WHERE winning_party_2003 = "conservative"
Which constituency had the conservative party win in 2003?
CREATE TABLE table_name_72 (constituency VARCHAR, winning_party_2003 VARCHAR)
SELECT pregame_host FROM table_17516922_1 WHERE network = "ESPN" AND color_commentator = "Taylor Twellman"
What pregame host was on espn and had taylor twellman color commentating?
CREATE TABLE table_17516922_1 (pregame_host VARCHAR, network VARCHAR, color_commentator VARCHAR)
SELECT Gender, Occupation FROM player
What are the gender and occupation of players?
CREATE TABLE player ( Gender VARCHAR, Occupation VARCHAR )
SELECT final_score FROM table_name_82 WHERE visiting_team = "washington redskins" AND date = "september 4"
What is the final score when the visiting team is the Washington Redskins and the date is September 4?
CREATE TABLE table_name_82 (final_score VARCHAR, visiting_team VARCHAR, date VARCHAR)
SELECT pregame_analysts FROM table_17516922_1 WHERE sideline_reporters = "Rob Stone and Monica Gonzalez" AND network = "TSN2"
What pregame analyst(s) had rob stone and monica gonzalez as sideline reporters and were on tsn2?
CREATE TABLE table_17516922_1 (pregame_analysts VARCHAR, sideline_reporters VARCHAR, network VARCHAR)
SELECT MIN("Total Points") FROM table_51321 WHERE "Artist" = 'karine trécy' AND "Place" < '12'
What is the lowest total points Karine Tr cy has with a less than 12 place?
CREATE TABLE table_51321 ( "Draw" real, "Song" text, "Artist" text, "Jury (Points)" text, "Televotes (Points)" text, "Total Points" real, "Place" real )
SELECT stadium FROM table_name_12 WHERE date = "december 14"
What is the stadium when the date of the game is December 14?
CREATE TABLE table_name_12 (stadium VARCHAR, date VARCHAR)
SELECT color_commentator FROM table_17516922_1 WHERE year = 2010
What color commentator(s) were in 2010?
CREATE TABLE table_17516922_1 (color_commentator VARCHAR, year VARCHAR)
SELECT MIN("Position") FROM table_60991 WHERE "Points 1" = '39' AND "Goals Against" > '49'
What is the lowest Position, when Points 1 is '39', and when Goals Against is greater than 49?
CREATE TABLE table_60991 ( "Position" real, "Team" text, "Played" real, "Drawn" real, "Lost" real, "Goals For" real, "Goals Against" real, "Goal Difference" text, "Points 1" text )
SELECT stadium FROM table_name_6 WHERE visiting_team = "denver broncos"
What is the name of the stadium when the visiting team is the Denver Broncos?
CREATE TABLE table_name_6 (stadium VARCHAR, visiting_team VARCHAR)
SELECT MAX(year) FROM table_17516922_1 WHERE sideline_reporters = "Rob Stone and Monica Gonzalez"
What is the last year that had sideline reporters rob stone and monica gonzalez?
CREATE TABLE table_17516922_1 (year INTEGER, sideline_reporters VARCHAR)
SELECT MAX("Kerry#") FROM table_21579 WHERE "Others#" = '47'
Name the maximum kerry # for where others is 47
CREATE TABLE table_21579 ( "County" text, "Kerry%" text, "Kerry#" real, "Bush%" text, "Bush#" real, "Others%" text, "Others#" real )
SELECT MIN(crowd) FROM table_name_74 WHERE away_team = "melbourne"
What was the smallest crowd when Melbourne was the away team?
CREATE TABLE table_name_74 (crowd INTEGER, away_team VARCHAR)
SELECT play_by_play FROM table_17516922_1 WHERE network = "ESPN" AND sideline_reporters = "Monica Gonzalez"
Who had the play-by-play on espn with sideline reporter monica gonzalez?
CREATE TABLE table_17516922_1 (play_by_play VARCHAR, network VARCHAR, sideline_reporters VARCHAR)
SELECT SALARY, MANAGER_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, a scatter chart shows the correlation between salary and manager_id .
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID ...
SELECT away FROM table_name_5 WHERE club = "neath"
What is the Away when the Club is Neath?
CREATE TABLE table_name_5 (away VARCHAR, club VARCHAR)
SELECT name FROM table_1749567_2 WHERE number = 28
What was the name of race #28?
CREATE TABLE table_1749567_2 (name VARCHAR, number 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, flight WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = ...
could you please give me information concerning AA a flight from WASHINGTON to PHILADELPHIA the earliest one in the morning as possible
CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment ...
SELECT country FROM table_name_64 WHERE area_in_m² = "7,914"
What country has area of 7,914 m²?
CREATE TABLE table_name_64 (country VARCHAR, area_in_m² VARCHAR)
SELECT MAX(number) FROM table_1749567_2 WHERE name = "Eyserweg"
The Eyserweg race was which race #?
CREATE TABLE table_1749567_2 (number INTEGER, name VARCHAR)
SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(DEPARTMENT_ID) DESC
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, draw a bar chart about the distribution of job_id and the sum of department_id , and group by attribute job_id, and could you rank by the Y-axis in desc?
CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(...
SELECT city FROM table_name_23 WHERE completion = "1910-1978"
What city was completed in 1910-1978?
CREATE TABLE table_name_23 (city VARCHAR, completion VARCHAR)
SELECT location FROM table_1749567_2 WHERE average_climb___percentage_ = 40
Which race had an average climb of 40%?
CREATE TABLE table_1749567_2 (location VARCHAR, average_climb___percentage_ VARCHAR)
SELECT T2.party FROM election AS T1 JOIN party AS T2 ON T1.party = T2.party_id GROUP BY T1.party ORDER BY COUNT(*) DESC LIMIT 1
Show the name of the party that has the most delegates.
CREATE TABLE party ( party_id number, year number, party text, governor text, lieutenant_governor text, comptroller text, attorney_general text, us_senate text ) CREATE TABLE county ( county_id number, county_name text, population number, zip_code text ) CREATE TABLE el...
SELECT country FROM table_name_17 WHERE area_in_m² = "3,170"
What is the country with area of 3,170 in m²?
CREATE TABLE table_name_17 (country VARCHAR, area_in_m² VARCHAR)
SELECT MAX(length__in_m_) FROM table_1749567_2 WHERE name = "Keutenberg"
The Keutenberg race had what race length?
CREATE TABLE table_1749567_2 (length__in_m_ INTEGER, name VARCHAR)
SELECT AVG(frequency_mhz) FROM table_name_2 WHERE call_sign = "w224bn"
What is the Frequency MHz for the station with a call sign of w224bn?
CREATE TABLE table_name_2 ( frequency_mhz INTEGER, call_sign VARCHAR )
SELECT time_retired FROM table_name_17 WHERE grid = 17
I want the time/retired for grid of 17
CREATE TABLE table_name_17 (time_retired VARCHAR, grid VARCHAR)
SELECT MIN(Champions) AS league FROM table_17505751_5
In the Champions league, what is the Minimum
CREATE TABLE table_17505751_5 (Champions INTEGER)
SELECT T2.name, T2.position FROM department AS T1 JOIN physician AS T2 ON T1.head = T2.employeeid GROUP BY departmentid ORDER BY COUNT(departmentid) LIMIT 1
Find the name and position of the head of the department with the least employees.
CREATE TABLE patient ( ssn number, name text, address text, phone text, insuranceid number, pcp number ) CREATE TABLE nurse ( employeeid number, name text, position text, registered boolean, ssn number ) CREATE TABLE procedures ( code number, name text, cost num...
SELECT opponent FROM table_name_69 WHERE field = "mitchel athletic complex"
Name the opponent when the field is mitchel athletic complex
CREATE TABLE table_name_69 (opponent VARCHAR, field VARCHAR)
SELECT COUNT(Champions) AS league FROM table_17505751_5 WHERE position = "Forward" AND league < 6.0
In the Champions league is the forward position smaller than 6.0
CREATE TABLE table_17505751_5 (Champions VARCHAR, position VARCHAR, league VARCHAR)
SELECT a.* FROM Posts AS a INNER JOIN Posts AS q ON a.ParentId = q.Id INNER JOIN Users AS u ON a.OwnerUserId = u.Id WHERE q.PostTypeId = 1 AND a.PostTypeId = 2 AND DATEDIFF(month, q.CreationDate, creationDate) > 6 AND DATEDIFF(day, u.CreationDate, creationDate) < 7 AND u.CreationDate > q.CreationDate AND a.Score > 10
Hidden Gems in Late Answers.
CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE Users ( Id number, Reputation number,...
SELECT date FROM table_name_81 WHERE home_away = "away" AND opponent = "bayhawks"
Name the date for when the home/away is away and the opponent is bayhawks
CREATE TABLE table_name_81 (date VARCHAR, home_away VARCHAR, opponent VARCHAR)
SELECT MIN(league) FROM table_17505751_5 WHERE total = 8 AND copa_del_rey = 0
when the total is 8 and copa del rey is 0 what is the minimum league
CREATE TABLE table_17505751_5 (league INTEGER, total VARCHAR, copa_del_rey VARCHAR)
SELECT elevator FROM table_name_25 WHERE elevated = "1378, september 18" AND order = "cardinal-priest" AND elector = "poncello orsini"
What's the Elevator that has Elevated: 1378, September 18, an Order of Cardinal-Priest, and an Elector of Poncello Orsini?
CREATE TABLE table_name_25 ( elevator VARCHAR, elector VARCHAR, elevated VARCHAR, order VARCHAR )
SELECT field FROM table_name_43 WHERE result = "w 12-11"
Say the field with a result of w 12-11
CREATE TABLE table_name_43 (field VARCHAR, result VARCHAR)
SELECT COUNT(Champions) AS league FROM table_17505751_5 WHERE league = 5 AND position = "Forward"
when the position is forward and the league is 5 what number is the Champion league
CREATE TABLE table_17505751_5 (Champions VARCHAR, league VARCHAR, position VARCHAR)
SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Modular Forms%' OR name LIKE '%Modular Forms%') AND credits = 13
What are the Modular Forms courses with 13 credits ?
CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_p...
SELECT opponent FROM table_name_37 WHERE home_away = "home" AND result = "w 16-15"
Name the opponent when the result is w 16-15 and has home/away of home
CREATE TABLE table_name_37 (opponent VARCHAR, home_away VARCHAR, result VARCHAR)
SELECT COUNT(total) FROM table_17505751_5 WHERE p > 4.0
if p is bigger than 4.0 what is total number
CREATE TABLE table_17505751_5 (total VARCHAR, p INTEGER)
SELECT portfolio FROM table_name_77 WHERE minister = "carlo giovanardi"
Tell me the portfolio of minister of carlo giovanardi
CREATE TABLE table_name_77 ( portfolio VARCHAR, minister VARCHAR )
SELECT opponent FROM table_name_45 WHERE result = "w 12-11"
Name the opponent when the resultwas w 12-11
CREATE TABLE table_name_45 (opponent VARCHAR, result VARCHAR)
SELECT 2008 AS _status FROM table_17503169_1 WHERE democratic = "Glenn Nye"
What was the 2008 election status when glenn nye was the running democrat?
CREATE TABLE table_17503169_1 (democratic VARCHAR)
SELECT COUNT("Overall") FROM table_46339 WHERE "Pick" = '1' AND "Name" = 'cecil martin'
With the pick of 1 Cecil Martin has what number as the overall?
CREATE TABLE table_46339 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT opponent FROM table_name_9 WHERE home_away = "home" AND date = "july 27"
Name the opponent which has a home/away of home and date of july 27
CREATE TABLE table_name_9 (opponent VARCHAR, home_away VARCHAR, date VARCHAR)
SELECT republican FROM table_17503169_1 WHERE incumbent = "Thelma Drake"
Who was the republican candidate in the race with incumbent thelma drake?
CREATE TABLE table_17503169_1 (republican VARCHAR, incumbent VARCHAR)
SELECT q.Id AS "post_link", a.CreationDate FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id WHERE a.OwnerUserId = '##UserId##' AND q.AcceptedAnswerId IS NULL
Questions answered by me without an accepted answer.
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 number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuest...