answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT week FROM table_name_37 WHERE eastern__number2 = "houston" | Tell me the wekk for eastern #2 of houston | CREATE TABLE table_name_37 (week VARCHAR, eastern__number2 VARCHAR) |
SELECT COUNT(gdp_per_capita) FROM table_2248991_2 WHERE nation = "Burkina Faso" | How many items are listed under gdp per capita under the nation of Burkina Faso? | CREATE TABLE table_2248991_2 (gdp_per_capita VARCHAR, nation VARCHAR) |
SELECT MAX("Draft Year") FROM table_870 WHERE "Player" = 'Jerry Marion' | What year was jerry marion drafted? | CREATE TABLE table_870 (
"Draft Year" real,
"Player" text,
"Position" text,
"Round" real,
"Overall" real,
"NFL Team" text
) |
SELECT home_team FROM table_name_74 WHERE away_team = "carlton" | Which home team played against the away team Carlton? | CREATE TABLE table_name_74 (home_team VARCHAR, away_team VARCHAR) |
SELECT MIN(total_gdp_world_rank) FROM table_2248991_2 WHERE gdp_per_capita = "$1,163" | What is the total gdp world rank when the gdp per capita was listed at $1,163? | CREATE TABLE table_2248991_2 (total_gdp_world_rank INTEGER, gdp_per_capita VARCHAR) |
SELECT CASE WHEN a.Score > 0 OR a.Id = q.AcceptedAnswerId THEN 'yes' ELSE 'no' END AS GoodAnswer, CASE WHEN q.Body LIKE '%<code>%' THEN 'yes' ELSE 'no' END AS IncludesCode, COUNT(*) AS Count FROM Posts AS q JOIN Posts AS a ON q.Id = a.ParentId WHERE q.PostTypeId = 1 AND a.PostTypeId = 2 AND q.ViewCount > 10 AND q.Answe... | Good answer vs includes code. | CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... |
SELECT venue FROM table_name_29 WHERE home_team = "collingwood" | Where was the game played where the home team was Collingwood? | CREATE TABLE table_name_29 (venue VARCHAR, home_team VARCHAR) |
SELECT MIN(world_rank) FROM table_2249087_1 WHERE south_american_rank = 3 | Name the least world rank for south american rank 3 | CREATE TABLE table_2249087_1 (world_rank INTEGER, south_american_rank VARCHAR) |
SELECT "Date" FROM table_49188 WHERE "Score" = '3–6, 7–6(6), 5–7' | What is the Date of the Tournament with a Score of 3 6, 7 6(6), 5 7? | CREATE TABLE table_49188 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) |
SELECT home_team AS score FROM table_name_44 WHERE crowd > 25 OFFSET 603 | What is the home score with a crowd larger than 25,603? | CREATE TABLE table_name_44 (home_team VARCHAR, crowd INTEGER) |
SELECT MIN(south_american_rank) FROM table_2249087_1 WHERE nation = "Venezuela" | Name the south american rank for venezuela | CREATE TABLE table_2249087_1 (south_american_rank INTEGER, nation VARCHAR) |
SELECT "Result" FROM table_63093 WHERE "Award" = 'best current affairs presenter' | What was the result for the award for best current affairs presenter? | CREATE TABLE table_63093 (
"Year" real,
"Organisation" text,
"Award" text,
"Nominated Work Title" text,
"Result" text
) |
SELECT date FROM table_name_41 WHERE home_team = "south melbourne" | What is the date of the home team from South Melbourne? | CREATE TABLE table_name_41 (date VARCHAR, home_team VARCHAR) |
SELECT COUNT(weight) FROM table_22496374_1 WHERE home_town = "San Francisco, CA" | How many weight stats are there for players from San Francisco, CA? | CREATE TABLE table_22496374_1 (weight VARCHAR, home_town VARCHAR) |
SELECT SUM("Gold") FROM table_35005 WHERE "Nation" = 'algeria' AND "Total" < '3' | What is the sum of all gold medals for Algeria when total medals is less than 3? | CREATE TABLE table_35005 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT away_team AS score FROM table_name_88 WHERE home_team = "fitzroy" | What is the score of the away team with the home team Fitzroy? | CREATE TABLE table_name_88 (away_team VARCHAR, home_team VARCHAR) |
SELECT MAX(_number) FROM table_22496374_1 WHERE name = "Rickie Winslow" | What was rickie winslow's number? | CREATE TABLE table_22496374_1 (_number INTEGER, name VARCHAR) |
SELECT COUNT(series__number) FROM table_14929574_3 WHERE us_viewers__million_ = "3.35" | Which episode number drew in 3.35 million viewers in the United States? | CREATE TABLE table_14929574_3 (
series__number VARCHAR,
us_viewers__million_ VARCHAR
) |
SELECT venue FROM table_name_63 WHERE away_team = "footscray" | What venue did the away team footscray play at? | CREATE TABLE table_name_63 (venue VARCHAR, away_team VARCHAR) |
SELECT COUNT(height) FROM table_22496374_1 WHERE home_town = "Lagos, Nigeria" | How many height entries are there for players from lagos, nigeria? | CREATE TABLE table_22496374_1 (height VARCHAR, home_town VARCHAR) |
SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'cont inv mec ven <96 hrs') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 56635) | calculate how many times patient 56635 has received cont inv mec ven <96 hrs procedures. | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE patients (
... |
SELECT MIN(crowd) FROM table_name_75 WHERE away_team = "melbourne" | When melbourne was the away team, what was the lowest crowd turnout they had? | CREATE TABLE table_name_75 (crowd INTEGER, away_team VARCHAR) |
SELECT home_town FROM table_22496374_1 WHERE high_school = "Alvin" | What is the hometown of the players from alvin high school? | CREATE TABLE table_22496374_1 (home_town VARCHAR, high_school VARCHAR) |
SELECT MAX("Swimsuit") FROM table_78235 WHERE "Evening Gown" > '9.175' AND "Interview" < '8.425' | What is the highest swimsuit score of the contestant with an evening gown larger than 9.175 and an interview score less than 8.425? | CREATE TABLE table_78235 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
) |
SELECT away_team FROM table_name_63 WHERE venue = "glenferrie oval" | Which away team plays at the venue glenferrie oval? | CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR) |
SELECT COUNT(height) FROM table_22496374_1 WHERE high_school = "Bayside" | How many height entries are there for players from bayside high school? | CREATE TABLE table_22496374_1 (height VARCHAR, high_school VARCHAR) |
SELECT SUM("Car #") FROM table_33000 WHERE "Points" < '126' AND "Laps" = '147' | What is the sum of car numbers with less than 126 points and 147 laps? | CREATE TABLE table_33000 (
"Driver" text,
"Car #" real,
"Make" text,
"Points" real,
"Laps" real,
"Winnings" text
) |
SELECT MIN(2005) FROM table_name_75 WHERE 2009 = 19 AND 2010 < 21 | Tell me the lowest 2005 for 2010 less than 21 for 2009 being 19 | CREATE TABLE table_name_75 (Id VARCHAR) |
SELECT COUNT(reason_for_change) FROM table_225095_4 WHERE successor = "Edward Hempstead" | How many reasons for change were listed when Edward Hempstead was the successor? | CREATE TABLE table_225095_4 (reason_for_change VARCHAR, successor VARCHAR) |
SELECT venue FROM table_name_60 WHERE home_team = "melbourne" | What venue is home for the Melbourne team? | CREATE TABLE table_name_60 (
venue VARCHAR,
home_team VARCHAR
) |
SELECT COUNT(2010) FROM table_name_85 WHERE 2009 < 14 AND 2008 < 15 AND 2005 = 3 | Name the total number of 2010 for when 2009 is less than 14, 2008 is less than 15 and 2005 is 3 | CREATE TABLE table_name_85 (Id VARCHAR) |
SELECT COUNT(vacator) FROM table_225095_4 WHERE district = "North Carolina 3rd" | How many Vacators were listed when the district was North Carolina 3rd? | CREATE TABLE table_225095_4 (vacator VARCHAR, district VARCHAR) |
SELECT COUNT(step_6) FROM table_2319437_1 WHERE gs_grade = 11 | Name the total number of step 6 for 11 gs grade | CREATE TABLE table_2319437_1 (
step_6 VARCHAR,
gs_grade VARCHAR
) |
SELECT AVG(2008) FROM table_name_21 WHERE year = "beijing" AND 2005 > 2 | Name the average 2008 for beijing and 2005 more than 2 | CREATE TABLE table_name_21 (year VARCHAR) |
SELECT vacator FROM table_225095_4 WHERE successor = "Shadrach Bond" | Who was the vacator when Shadrach Bond was the successor? | CREATE TABLE table_225095_4 (vacator VARCHAR, successor VARCHAR) |
SELECT "Manner of departure" FROM table_56406 WHERE "Date of appointment" = '12 october 2007' | I want the manner of departure for date of appointment being 12 october 2007 | CREATE TABLE table_56406 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) |
SELECT MIN(2008) FROM table_name_45 WHERE year = "guizhou" AND 2005 < 31 | Name the lowest 2008 for guizhou when 2005 is less than 31 | CREATE TABLE table_name_45 (year VARCHAR) |
SELECT date_successor_seated FROM table_225096_4 WHERE reason_for_change = "Until August 2, 1813" | When was the successor who got his seat because of "until august 2, 1813" seated? | CREATE TABLE table_225096_4 (date_successor_seated VARCHAR, reason_for_change VARCHAR) |
SELECT MAX("Rank") FROM table_7669 WHERE "Total" = '1' AND "Bronze" > '0' | Which Rank has a Total of 1 and a Bronze larger than 0? | CREATE TABLE table_7669 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT SUM(2010) FROM table_name_53 WHERE 2000 = 17 AND 2005 > 16 | Name the sum of 2010 for 2000 of 17 and 2005 more than 16 | CREATE TABLE table_name_53 (Id VARCHAR) |
SELECT date_successor_seated FROM table_225098_4 WHERE district = "Massachusetts 20th" | The successor for the Massachusetts 20th district was seated on what date? | CREATE TABLE table_225098_4 (date_successor_seated VARCHAR, district VARCHAR) |
SELECT COUNT(location_attendance) FROM table_23248967_9 WHERE date = "March 6" | How many game locations occurred on March 6? | CREATE TABLE table_23248967_9 (
location_attendance VARCHAR,
date VARCHAR
) |
SELECT SUM(crowd) FROM table_name_7 WHERE venue = "mcg" | What is the total of crowd at Venue of mcg? | CREATE TABLE table_name_7 (crowd INTEGER, venue VARCHAR) |
SELECT vacator FROM table_225098_4 WHERE district = "Pennsylvania 6th" | Who vacated the Pennsylvania 6th district? | CREATE TABLE table_225098_4 (vacator VARCHAR, district VARCHAR) |
SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 7073) AND STRFTIME('%y', procedures_icd.charttime) <= '2104' | did patient 7073 undergo any procedures until 2104? | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE tr... |
SELECT COUNT(region) FROM table_name_76 WHERE area__km_2__ = 58.81 | Tell me the number of regions with an area of 58.81 | CREATE TABLE table_name_76 (region VARCHAR, area__km_2__ VARCHAR) |
SELECT successor FROM table_225099_3 WHERE state__class_ = "Maine (2)" | Who was the successor for the state of Maine (2) ? | CREATE TABLE table_225099_3 (successor VARCHAR, state__class_ VARCHAR) |
SELECT game FROM table_name_69 WHERE player = "eoin holohan" | What game did Eoin Holohan play in? | CREATE TABLE table_name_69 (
game VARCHAR,
player VARCHAR
) |
SELECT COUNT(rank) FROM table_name_63 WHERE bronze < 0 | what is the rank when the bronze is less than 0? | CREATE TABLE table_name_63 (rank VARCHAR, bronze INTEGER) |
SELECT date_of_successors_formal_installation FROM table_225099_3 WHERE reason_for_change = "Resigned December 4, 1819" | What is the date of successors formal installation when the reason for change is resigned december 4, 1819? | CREATE TABLE table_225099_3 (date_of_successors_formal_installation VARCHAR, reason_for_change VARCHAR) |
SELECT DISTINCT COURSE_1.department, COURSE_1.name, COURSE_1.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND COURSE_0.department = 'SW' AND COURSE_0.number = 858 AND COURSE_1.course_id = course_prerequisite.course_id | Is SW 858 a must-take prerequisite for any other course ? | CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course (
course_id int,
name varchar,
dep... |
SELECT MAX(rank) FROM table_name_83 WHERE bronze < 1 AND total < 1 | what is the highest rank when the bronze is less than 1 and the total is less than 1? | CREATE TABLE table_name_83 (rank INTEGER, bronze VARCHAR, total VARCHAR) |
SELECT COUNT(date_of_successors_formal_installation) FROM table_225099_3 WHERE successor = "John W. Walker (DR)" | How many entries are shown for date of successors formal installation where successor is john w. walker (dr)? | CREATE TABLE table_225099_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR) |
SELECT MAX(december) FROM table_name_9 WHERE record = "11-13-5" | What is the December game that led to an 11-13-5 record? | CREATE TABLE table_name_9 (
december INTEGER,
record VARCHAR
) |
SELECT MIN(silver) FROM table_name_70 WHERE gold < 0 | what is the lowest amount of silver when the gold is less than 0? | CREATE TABLE table_name_70 (silver INTEGER, gold INTEGER) |
SELECT state__class_ FROM table_225099_3 WHERE reason_for_change = "Resigned May 15, 1820" | what is the state for reason for change is resigned may 15, 1820? | CREATE TABLE table_225099_3 (state__class_ VARCHAR, reason_for_change VARCHAR) |
SELECT "Run time" FROM table_72856 WHERE "Viewers (in millions)" = '7.4' | What is run time when there were 7.4 million viewers? | CREATE TABLE table_72856 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
) |
SELECT AVG(gold) FROM table_name_5 WHERE rank > 5 | what is the average number of gold when the rank is more than 5? | CREATE TABLE table_name_5 (gold INTEGER, rank INTEGER) |
SELECT trophy_presentation FROM table_22514845_4 WHERE year = 1987 | Who is the trophy presentation in the year 1987? | CREATE TABLE table_22514845_4 (trophy_presentation VARCHAR, year VARCHAR) |
SELECT last_name, COUNT(last_name) FROM Teachers GROUP BY last_name ORDER BY last_name | Find the number of last names of teachers in alphabetical order of last name with a bar chart. | CREATE TABLE Behavior_Incident (
incident_id INTEGER,
incident_type_code VARCHAR(10),
student_id INTEGER,
date_incident_start DATETIME,
date_incident_end DATETIME,
incident_summary VARCHAR(255),
recommendations VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Addresses (
addr... |
SELECT MAX(silver) FROM table_name_50 WHERE gold = 0 AND nation = "soviet union" | what is the highest amount of silver when gold is 0 for soviet union? | CREATE TABLE table_name_50 (silver INTEGER, gold VARCHAR, nation VARCHAR) |
SELECT network FROM table_22514845_4 WHERE s_analyst = "Eddie Arcaro" | Which network has s analyst of eddie arcaro? | CREATE TABLE table_22514845_4 (network VARCHAR, s_analyst VARCHAR) |
SELECT "Score" FROM table_66782 WHERE "Date" = 'january 16, 2010' | What was the score on January 16, 2010? | CREATE TABLE table_66782 (
"Outcome" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Score" text
) |
SELECT position FROM table_name_35 WHERE player = "adam rachel" | What position does adam rachel play? | CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR) |
SELECT reporters FROM table_22514845_4 WHERE year = 1984 | Who are the reporters for the year of 1984? | CREATE TABLE table_22514845_4 (reporters VARCHAR, year VARCHAR) |
SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '012-18025' AND STRFTIME('%y', patient.hospitaladmittime) >= '2105' ORDER BY patient.hospitaladmittime LIMIT 1 | how patient 012-18025 was admitted to the hospital since 2105 first? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... |
SELECT player FROM table_name_97 WHERE first_team_appearances > 1 AND first_team_goals = 32 | What player has over 1 first apperance and over 32 first team goals? | CREATE TABLE table_name_97 (player VARCHAR, first_team_appearances VARCHAR, first_team_goals VARCHAR) |
SELECT COUNT(trophy_presentation) FROM table_22514845_4 WHERE year = 1987 | How many trophy presentations where in the year 1987? | CREATE TABLE table_22514845_4 (trophy_presentation VARCHAR, year VARCHAR) |
SELECT "title" FROM table_204_500 WHERE id = (SELECT id FROM table_204_500 WHERE "title" = '"hey joe"') - 1 | tell me the single released immediately before hey joe . | CREATE TABLE table_204_500 (
id number,
"year" number,
"title" text,
"peak chart positions\nus country" number,
"peak chart positions\nus" number,
"album" text
) |
SELECT AVG(speed) FROM table_name_31 WHERE year < 1974 AND passengers > 1.73 | What is the average speed for ships before 1974 with over 1.73 passengers? | CREATE TABLE table_name_31 (speed INTEGER, year VARCHAR, passengers VARCHAR) |
SELECT MIN(year) FROM table_22514845_4 WHERE reporters = "Howard Cosell and Jack Whitaker" AND s_analyst = "Bill Hartack" | In which year were howard cosell and jack whitaker reporters and s analyst is bill hartack? | CREATE TABLE table_22514845_4 (year INTEGER, reporters VARCHAR, s_analyst VARCHAR) |
SELECT MIN(no) FROM table_21977627_1 WHERE chassis = "Maserati 4CL" | The Maserati 4cl's minimum no was? | CREATE TABLE table_21977627_1 (
no INTEGER,
chassis VARCHAR
) |
SELECT COUNT(vessels) FROM table_name_11 WHERE ship_name = "aqua jewel" | How many vessels are named aqua jewel? | CREATE TABLE table_name_11 (vessels VARCHAR, ship_name VARCHAR) |
SELECT race_caller FROM table_22514845_4 WHERE s_host = "Jim McKay and Al Michaels" AND year = 1987 | Who is the race caller when jim mckay and al michaels were s hosts in the year 1987? | CREATE TABLE table_22514845_4 (race_caller VARCHAR, s_host VARCHAR, year VARCHAR) |
SELECT "Home team score" FROM table_20764 WHERE "Home team" = 'Richmond' | What are the home team scores when richmond is the home team? | CREATE TABLE table_20764 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
) |
SELECT COUNT(district) FROM table_name_40 WHERE place_of_birth = "baltimore city" AND delegate = "cheryl glenn" | How many districts in Baltimore City does Cheryl Glenn dictate? | CREATE TABLE table_name_40 (district VARCHAR, place_of_birth VARCHAR, delegate VARCHAR) |
SELECT s_host FROM table_22514845_5 WHERE s_analyst = "John Rotz and Howard Cosell" | Name the host for john rotz and howard cosell | CREATE TABLE table_22514845_5 (s_host VARCHAR, s_analyst VARCHAR) |
SELECT "Position" FROM table_19544 WHERE "NHL team" = 'Philadelphia Flyers' | Which position did the player hold that played for the Philadelphia Flyers in NHL? | CREATE TABLE table_19544 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) |
SELECT party FROM table_name_61 WHERE district = 41 AND delegate = "jill p. carter" | Which party belongs to district 41, and is delegated by Jill P. Carter? | CREATE TABLE table_name_61 (party VARCHAR, district VARCHAR, delegate VARCHAR) |
SELECT race_caller FROM table_22514845_5 WHERE s_host = "Jim McKay" AND reporters = "Howard Cosell" | Name the race caller for jim mckay and howard cosell | CREATE TABLE table_22514845_5 (race_caller VARCHAR, s_host VARCHAR, reporters VARCHAR) |
SELECT "player" FROM table_203_460 WHERE id = (SELECT id FROM table_203_460 WHERE "player" = 'mark walsh') + 1 | what is the name of the next player after mark walsh ? | CREATE TABLE table_203_460 (
id number,
"player" text,
"played" number,
"legs won" number,
"legs lost" number,
"lwat" number,
"100+" number,
"140+" number,
"180s" number,
"high checkout" number,
"3-dart average" number
) |
SELECT place_of_birth FROM table_name_31 WHERE took_office > 1982 AND district < 43 AND committee = "health and government operations" | Where was the place of birth for the delegate who took office after 1982, delegates a district smaller than 43 and belongs to a Health and Government operations committee? | CREATE TABLE table_name_31 (place_of_birth VARCHAR, committee VARCHAR, took_office VARCHAR, district VARCHAR) |
SELECT race_caller FROM table_22514845_5 WHERE trophy_presentation = "Jim McKay and Howard Cosell" AND reporters = "Howard Cosell" AND s_analyst = "Eddie Arcaro" | Name the race caller for jim mckay and howard cosell and eddie arcaro | CREATE TABLE table_22514845_5 (race_caller VARCHAR, s_analyst VARCHAR, trophy_presentation VARCHAR, reporters VARCHAR) |
SELECT audition_city FROM table_name_81 WHERE callback_venue = "amelia island plantation" | Which audition city held callbacks at Amelia Island Plantation? | CREATE TABLE table_name_81 (
audition_city VARCHAR,
callback_venue VARCHAR
) |
SELECT place_of_birth FROM table_name_24 WHERE committee = "judiciary" AND district = 43 | Where was the delegate belonging to the Judiciary committee of district 43 born? | CREATE TABLE table_name_24 (place_of_birth VARCHAR, committee VARCHAR, district VARCHAR) |
SELECT reporters FROM table_22514845_5 WHERE race_caller = "Dave Johnson" AND s_analyst = "Eddie Arcaro and Howard Cosell" | Name the reporters for dave johnson for eddie arcaro and howard cosell | CREATE TABLE table_22514845_5 (reporters VARCHAR, race_caller VARCHAR, s_analyst VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", u.Id AS "user_link", u.Reputation, COUNT(p.Id) FROM Users AS u INNER JOIN Posts AS p ON p.OwnerUserId = u.Id INNER JOIN PostTags AS pt ON pt.PostId = p.Id INNER JOIN Tags AS t ON t.Id = pt.TagId WHERE (LOWER(Location) LIKE LOWER('%kochi%') OR LOWER(Location) L... | Finding Front End developers in Kochi and Trivandram. | CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text te... |
SELECT MAX(district) FROM table_name_30 WHERE delegate = "cheryl glenn" AND took_office > 2006 | What is the largest district for delegate Cheryl Glenn, that she had taken after 2006? | CREATE TABLE table_name_30 (district INTEGER, delegate VARCHAR, took_office VARCHAR) |
SELECT reporters FROM table_22514845_5 WHERE s_analyst = "Howard Cosell" | Name the reporters for howard cosell | CREATE TABLE table_22514845_5 (reporters VARCHAR, s_analyst VARCHAR) |
SELECT JOB_ID, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY SUM(SALARY) | For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of job_id and the sum of salary , and group by attribute job_id, show in asc by the y axis. | 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 MAX(placings) FROM table_name_82 WHERE name = "marie mcneil / robert mccall" AND points < 168.58 | What is the highest placing for marie mcneil / robert mccall, with less than 168.58? | CREATE TABLE table_name_82 (placings INTEGER, name VARCHAR, points VARCHAR) |
SELECT COUNT(reporters) FROM table_22514845_5 WHERE s_analyst = "Heywood Hale Broun" | Name the number of reporters for heywood hale broun | CREATE TABLE table_22514845_5 (reporters VARCHAR, s_analyst VARCHAR) |
SELECT "Method" FROM table_78397 WHERE "Res." = 'loss' AND "Time" = '5:00' | What is the method where there is a loss with time 5:00? | CREATE TABLE table_78397 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) |
SELECT date FROM table_name_25 WHERE home = "mavericks" | What was the date of the Mavericks home game? | CREATE TABLE table_name_25 (date VARCHAR, home VARCHAR) |
SELECT province FROM table_2251578_4 WHERE elevation__m_ = 4550 | Which province has an elevation of 4550? | CREATE TABLE table_2251578_4 (province VARCHAR, elevation__m_ VARCHAR) |
SELECT "Directed by" FROM table_2563 WHERE "Title" = 'Loathe and Marriage' | Who directed 'loathe and marriage'? | CREATE TABLE table_2563 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) |
SELECT MAX(displacement__cc_) FROM table_name_12 WHERE model = "r fwd auto phase1" | What is the highest displacement value for the R Fwd Auto Phase1? | CREATE TABLE table_name_12 (displacement__cc_ INTEGER, model VARCHAR) |
SELECT province FROM table_2251578_4 WHERE district = "San Antonio de Chuca" | Which province is in the district of San Antonio de Chuca? | CREATE TABLE table_2251578_4 (province VARCHAR, district VARCHAR) |
SELECT COUNT("Result") FROM table_18334 WHERE "Candidates" = 'Robert L. Leggett (D) 50.2% Albert Dehr (R) 49.8%' | How many times did an election feature the result robert l. leggett (d) 50.2% albert dehr (r) 49.8%? | CREATE TABLE table_18334 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) |
SELECT away_team FROM table_name_51 WHERE venue = "lake oval" | What team played at lake oval while away? | CREATE TABLE table_name_51 (away_team VARCHAR, venue VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.