answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT runs FROM table_1670921_2 WHERE fielding_team = "Bangladesh" | How many runs when bangladesh was the fielding team? | CREATE TABLE table_1670921_2 (runs VARCHAR, fielding_team VARCHAR) |
SELECT type FROM table_name_68 WHERE number_of_bearers_2008 > 12.376 AND rank > 3 AND etymology = "son of jens" | What is Type, when Number of Bearers 2008 is greater than 12.376, when Rank is greater than 3, and when Etymology is Son of Jens? | CREATE TABLE table_name_68 (
type VARCHAR,
etymology VARCHAR,
number_of_bearers_2008 VARCHAR,
rank VARCHAR
) |
SELECT akira FROM table_name_99 WHERE prince_devitt = "devitt (7:20)" | What is the Akira when Prince Devitt is Devitt (7:20)? | CREATE TABLE table_name_99 (akira VARCHAR, prince_devitt VARCHAR) |
SELECT wicket FROM table_1670921_2 WHERE runs = "451" AND fielding_team = "India" | What are the wickets when there are 451 runs and india is the fielding team? | CREATE TABLE table_1670921_2 (wicket VARCHAR, runs VARCHAR, fielding_team VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "SINGLE" AND lab.itemid = "51144" | count the number of patients whose marital status is single and item id is 51144? | 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 prince_devitt FROM table_name_49 WHERE block_a = "yamato" | What is the Prince Devitt when Block A is Yamato? | CREATE TABLE table_name_49 (prince_devitt VARCHAR, block_a VARCHAR) |
SELECT batting_partners FROM table_1670921_2 WHERE venue = "Sydney" | What batting partners played in sydney? | CREATE TABLE table_1670921_2 (batting_partners VARCHAR, venue VARCHAR) |
SELECT "Score" FROM table_10077 WHERE "Place" = 't8' AND "Country" = 'united states' AND "Player" = 'craig stadler' | What is the score of player craig stadler from the United States with a t8 place? | CREATE TABLE table_10077 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real
) |
SELECT league_one_second_division FROM table_name_80 WHERE club = "millwall" | I want the league one/second division for club of millwall | CREATE TABLE table_name_80 (league_one_second_division VARCHAR, club VARCHAR) |
SELECT batting_partners FROM table_1670921_2 WHERE season = "2004" | What batting partners were the most successful in 2004? | CREATE TABLE table_1670921_2 (batting_partners VARCHAR, season VARCHAR) |
SELECT Date FROM game ORDER BY home_team DESC | List the dates of games by the home team name in descending order. | CREATE TABLE game (
Date VARCHAR,
home_team VARCHAR
) |
SELECT home_team AS score FROM table_name_77 WHERE away_team = "carlton" | What was the score of the home team when they played carlton? | CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR) |
SELECT falcons_points FROM table_16710829_2 WHERE record = "3-2" | Name the falcons points for record of 3-2 | CREATE TABLE table_16710829_2 (falcons_points VARCHAR, record VARCHAR) |
SELECT MIN(game) FROM table_name_17 WHERE batting_2nd = "new zealand 6/133 (18)" | what is the game when batting 2nd is new zealand 6/133 (18)? | CREATE TABLE table_name_17 (
game INTEGER,
batting_2nd VARCHAR
) |
SELECT away_team AS score FROM table_name_94 WHERE home_team = "south melbourne" | How many points did the visiting team score at south melbourne? | CREATE TABLE table_name_94 (away_team VARCHAR, home_team VARCHAR) |
SELECT date FROM table_16710829_2 WHERE game = 9 | Name the date for game 9 | CREATE TABLE table_16710829_2 (date VARCHAR, game VARCHAR) |
SELECT score FROM table_name_84 WHERE home_team = "goole town" | What was the score when the home team was goole town? | CREATE TABLE table_name_84 (
score VARCHAR,
home_team VARCHAR
) |
SELECT COUNT(crowd) FROM table_name_15 WHERE away_team = "hawthorn" | What is the total Crowd number for the Away team of Hawthorn? | CREATE TABLE table_name_15 (crowd VARCHAR, away_team VARCHAR) |
SELECT MAX(game) FROM table_16710829_2 WHERE attendance = 54774 | Name the max game for attendance being 54774 | CREATE TABLE table_16710829_2 (game INTEGER, attendance VARCHAR) |
SELECT demographic.admission_type, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "30011" | what is admission type and diagnoses short title of subject id 30011? | 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 home_team AS score FROM table_name_72 WHERE away_team = "geelong" | What did the team score when playing against home in geelong? | CREATE TABLE table_name_72 (home_team VARCHAR, away_team VARCHAR) |
SELECT COUNT(result) FROM table_16710829_2 WHERE opponent = "New Orleans Saints" | Name the total number of results for new orleans saints | CREATE TABLE table_16710829_2 (result VARCHAR, opponent VARCHAR) |
SELECT "Theme Song(s)" FROM table_73019 WHERE "Romaji Title" = 'Magarikado no Kanojo' | What is the theme song for Magarikado no Kanojo? | CREATE TABLE table_73019 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Time Frame" text,
"Starring Actors" text,
"Theme Song(s)" text,
"Episodes" real,
"Average Ratings" text
) |
SELECT crowd FROM table_name_79 WHERE home_team = "st kilda" | How many people watched when st kilda played at home? | CREATE TABLE table_name_79 (crowd VARCHAR, home_team VARCHAR) |
SELECT COUNT(opponent) FROM table_16710971_2 WHERE record = "1-3" | What is the total number of opponents for the game recorded as 1-3? | CREATE TABLE table_16710971_2 (opponent VARCHAR, record VARCHAR) |
SELECT COUNT("title") FROM table_204_631 WHERE "length" IS NULL | how many albums did not have a time length ? | CREATE TABLE table_204_631 (
id number,
"#" number,
"title" text,
"english translation" text,
"original album" text,
"length" text
) |
SELECT away_team FROM table_name_69 WHERE crowd > 41 OFFSET 451 | Who was the away team when the crowd was larger than 41,451? | CREATE TABLE table_name_69 (away_team VARCHAR, crowd INTEGER) |
SELECT result FROM table_16710971_2 WHERE record = "1-2" | What was the result of the 1978 Atlanta Falcons season when the record was 1-2? | CREATE TABLE table_16710971_2 (result VARCHAR, record VARCHAR) |
SELECT COUNT("season") FROM table_204_237 WHERE "average" >= 15000 | how many seasons had average attendance of at least 15,000 at the stadio ennio tardini ? | CREATE TABLE table_204_237 (
id number,
"season" text,
"average" number,
"high" number,
"low" number,
"season tickets" number
) |
SELECT home_team FROM table_name_82 WHERE venue = "junction oval" | Who was the home team when the venue was Junction Oval? | CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR) |
SELECT falcons_points FROM table_16710971_2 WHERE record = "4-4" | How many points did the Falcons score when the record was 4-4? | CREATE TABLE table_16710971_2 (falcons_points VARCHAR, record VARCHAR) |
SELECT * FROM sys.databases WHERE (NOT name LIKE '%.Meta' OR name = 'StackExchange.Meta') AND database_id > 5 ORDER BY name | List of Stack Exchange non-meta sites. | CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId num... |
SELECT time FROM table_name_82 WHERE attendance = "66,772" | I want to know the time which has attendance of 66,772 | CREATE TABLE table_name_82 (time VARCHAR, attendance VARCHAR) |
SELECT COUNT(opponents) FROM table_16710971_2 WHERE record = "6-4" | How many opponents were there for the game recorded as 6-4 in the Atlanta Falcons 1978 season? | CREATE TABLE table_16710971_2 (opponents VARCHAR, record VARCHAR) |
SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 66015 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = ... | what was the name of the drug that was prescribed to patient 66015 within 2 days after having received a reopen recent lap site procedure the last month. | CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
... |
SELECT opponent FROM table_name_86 WHERE attendance = "76,965" | Name the opponent that has attendance of 76,965 | CREATE TABLE table_name_86 (opponent VARCHAR, attendance VARCHAR) |
SELECT MIN(falcons_points) FROM table_16710971_2 WHERE opponent = "San Francisco 49ers" | In games where the opponent was the San Francisco 49ers what was the minimum amount of points scored? | CREATE TABLE table_16710971_2 (falcons_points INTEGER, opponent VARCHAR) |
SELECT MIN("Other Black Population") FROM table_1993 WHERE "Black African Population" = '37811' | How much is the other black population when the black African population is 37811? | CREATE TABLE table_1993 (
"Rank" real,
"London Borough" text,
"Black African Population" real,
"Black Caribbean Population" real,
"Other Black Population" real,
"Total Black Population" real
) |
SELECT week FROM table_name_89 WHERE attendance = "78,301" | Tell me the week that has an attendance of 78,301 | CREATE TABLE table_name_89 (week VARCHAR, attendance VARCHAR) |
SELECT pts FROM table_16710541_2 WHERE team = "Kiefer-Bos-Castrol Honda" | How many points did kiefer-bos-castrol honda have? | CREATE TABLE table_16710541_2 (pts VARCHAR, team VARCHAR) |
SELECT Tags, p.Id AS "post_link" FROM Posts AS p JOIN PostTags AS pt ON p.Id = pt.PostId JOIN Tags AS t ON pt.TagId = t.Id WHERE t.TagName = 'origins' ORDER BY CASE WHEN p.Tags LIKE '%history-of%' THEN 1 ELSE 0 END, p.CreationDate | Questions tagged [origins] on SFF. | CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostsWithDe... |
SELECT opponent FROM table_name_61 WHERE week = "3" | I want to know the opponent that ha a week of 3 | CREATE TABLE table_name_61 (opponent VARCHAR, week VARCHAR) |
SELECT position FROM table_16710541_2 WHERE motorcycle = "KTM" | What result did the ktm motorcycle achieve? | CREATE TABLE table_16710541_2 (position VARCHAR, motorcycle VARCHAR) |
SELECT s.Id AS "suggested_edit_link", v.UserId, v.CreationDate, s.Comment FROM SuggestedEditVotes AS v INNER JOIN SuggestedEdits AS s ON s.Id = v.SuggestedEditId WHERE v.SuggestedEditId IN (SELECT Id FROM SuggestedEdits WHERE Id IN (SELECT SuggestedEditId FROM ReviewTasks WHERE Id IN (SELECT ReviewTaskId FROM ReviewTas... | Suggested Edits that someone rejected as vandalism, someone approved, and the edit got rejected. | CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
... |
SELECT MIN(attendance) FROM table_name_50 WHERE date = "14 april 2007" | How many were in attendance on 14 April 2007? | CREATE TABLE table_name_50 (attendance INTEGER, date VARCHAR) |
SELECT MIN(poles) FROM table_16710541_2 | What is the lowest number of poles? | CREATE TABLE table_16710541_2 (poles INTEGER) |
SELECT application_sharing FROM table_name_40 WHERE web_conferencing = "web conferencing" | What is Application Sharing, when Web Conferencing is 'Web Conferencing'? | CREATE TABLE table_name_40 (
application_sharing VARCHAR,
web_conferencing VARCHAR
) |
SELECT pick FROM table_name_11 WHERE position = "catcher" AND player = "josh donaldson" | What is catcher Josh Donaldson's pick number? | CREATE TABLE table_name_11 (pick VARCHAR, position VARCHAR, player VARCHAR) |
SELECT MIN(top_5) FROM table_1671401_1 | Name the least top 5 | CREATE TABLE table_1671401_1 (top_5 INTEGER) |
SELECT LAST_NAME, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMPLOYEE_ID | For those employees who do not work in departments with managers that have ids between 100 and 200, find last_name and employee_id , and visualize them by a bar chart, order in ascending by the Y. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_... |
SELECT player FROM table_name_25 WHERE college = "akron" | Which players plays at Akron College? | CREATE TABLE table_name_25 (player VARCHAR, college VARCHAR) |
SELECT top_5 FROM table_1671401_3 WHERE winnings = "$52,595" | name the top 5 where the winnings is $52,595 | CREATE TABLE table_1671401_3 (top_5 VARCHAR, winnings VARCHAR) |
SELECT home FROM table_name_70 WHERE competition = "european cup" AND round = "qf" | Which Home has a Competition of european cup, and a Round of qf? | CREATE TABLE table_name_70 (
home VARCHAR,
competition VARCHAR,
round VARCHAR
) |
SELECT college FROM table_name_93 WHERE player = "jon hameister-ries" | Which college does the player jon hameister-ries play for? | CREATE TABLE table_name_93 (college VARCHAR, player VARCHAR) |
SELECT COUNT(top_10) FROM table_1671401_3 WHERE position = "51st" | name the total number of top 10 also where the position is 51st | CREATE TABLE table_1671401_3 (top_10 VARCHAR, position VARCHAR) |
SELECT "Year(s) Won" FROM table_59093 WHERE "To par" > '5' AND "Total" < '155' AND "Country" = 'united states' | Can you tell me the Year(s) Won that has the To par larger than 5, and the Total smaller than 155, and the Country of united states? | CREATE TABLE table_59093 (
"Player" text,
"Country" text,
"Year(s) Won" text,
"Total" real,
"To par" real
) |
SELECT nationality FROM table_name_14 WHERE pick > 21 AND college_high_school_club = "college of the sequoias" | What is the nationality of the player with a pick larger than 21 from the College of the Sequoias? | CREATE TABLE table_name_14 (nationality VARCHAR, pick VARCHAR, college_high_school_club VARCHAR) |
SELECT winnings FROM table_1671401_3 WHERE starts = 7 | name all the winnings that the start appears to be 7 | CREATE TABLE table_1671401_3 (winnings VARCHAR, starts 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 = 186... | what was the name of the procedure that was given two or more times to patient 1862 in 09/2100? | CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
... |
SELECT result FROM table_name_52 WHERE goals = "deacon 6/6" | I want the result for goals which has goals of deacon 6/6 | CREATE TABLE table_name_52 (result VARCHAR, goals VARCHAR) |
SELECT COUNT(winnings) FROM table_1671401_2 WHERE year = 1995 | Name the total number of winnings for 1995 | CREATE TABLE table_1671401_2 (winnings VARCHAR, year VARCHAR) |
SELECT MIN("Rank") FROM table_63876 WHERE "Rider" = 'darren gilpin' | What is the lowest rank of rider darren gilpin? | CREATE TABLE table_63876 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) |
SELECT competition FROM table_name_28 WHERE venue = "wilderspool" | Which competition was at wilderspool? | CREATE TABLE table_name_28 (competition VARCHAR, venue VARCHAR) |
SELECT MAX(top_5) FROM table_1671401_2 WHERE avg_finish = "5.0" | Name the max top 5 for 5.0 avg finish | CREATE TABLE table_1671401_2 (top_5 INTEGER, avg_finish VARCHAR) |
SELECT home_leg FROM table_2214582_3 WHERE opponents = "Partizani Tirana" | What was the home leg score against partizani tirana? | CREATE TABLE table_2214582_3 (
home_leg VARCHAR,
opponents VARCHAR
) |
SELECT venue FROM table_name_58 WHERE score = "82-0" | Tell me the venue for score of 82-0 | CREATE TABLE table_name_58 (venue VARCHAR, score VARCHAR) |
SELECT poles FROM table_1671401_2 WHERE avg_finish = "26.8" | Name the poles for avg finish is 26.8 | CREATE TABLE table_1671401_2 (poles VARCHAR, avg_finish VARCHAR) |
SELECT loss FROM table_name_83 WHERE record = "10-16" | What loss has 10-16 as the record? | CREATE TABLE table_name_83 (
loss VARCHAR,
record VARCHAR
) |
SELECT date FROM table_name_68 WHERE venue = "mcalpine stadium" | I want the date with the venue of mcalpine stadium | CREATE TABLE table_name_68 (date VARCHAR, venue VARCHAR) |
SELECT COUNT(team_s_) FROM table_1671401_2 WHERE top_10 = 5 | Name the total number of teams for top 10 being 5 | CREATE TABLE table_1671401_2 (team_s_ VARCHAR, top_10 VARCHAR) |
SELECT Team_Name, All_Games_Percent FROM basketball_match ORDER BY All_Games_Percent DESC | Give me a bar chart for all_games_percent of each team name, and list in descending by the y-axis. | 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 goals FROM table_name_54 WHERE score = "38-28" | Tell me the goals for score of 38-28 | CREATE TABLE table_name_54 (goals VARCHAR, score VARCHAR) |
SELECT COUNT(mens_u20) FROM table_16724844_1 WHERE womens_40 = "Sydney Scorpions def North Queensland Cyclones" | How many times was the mens u20 recorded when the Womens 40 were Sydney Scorpions def North Queensland Cyclones? | CREATE TABLE table_16724844_1 (mens_u20 VARCHAR, womens_40 VARCHAR) |
SELECT COUNT(P.Id) AS Posts, YEAR(P.CreationDate) AS Year_Data FROM Posts AS P WHERE P.Title LIKE '%mockito%' AND ((P.Tags LIKE '%android-testing%') OR (P.Tags LIKE '%robotium%') OR (P.Tags LIKE '%androidviewclient%') OR (P.Tags LIKE '%monkeyrunner%') OR (P.Tags LIKE '%robolectric%') OR (P.Tags LIKE '%android-espresso%... | Count Questions Freq by Year per Title. | CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Na... |
SELECT MIN(grid) FROM table_name_96 WHERE points > 11 AND driver = "sébastien bourdais" AND laps < 67 | Tell me the least Grid with points more than 11 and drivers being sébastien bourdais with laps less than 67 | CREATE TABLE table_name_96 (grid INTEGER, laps VARCHAR, points VARCHAR, driver VARCHAR) |
SELECT mens_40 FROM table_16724844_1 WHERE mens_u20 = "Southern Suns def Gold Coast Sharks" | What were the results for mens 40 when the mens u20 was Southern Suns def Gold Coast Sharks? | CREATE TABLE table_16724844_1 (mens_40 VARCHAR, mens_u20 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... | calculate the one year survival rate of those who were diagnosed with tracheostomy performed during this admission for ventilatory support. | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... |
SELECT MAX(laps) FROM table_name_9 WHERE grid > 9 AND driver = "jan heylen" | Name the most laps for grid more than 9 and the driver being jan heylen | CREATE TABLE table_name_9 (laps INTEGER, grid VARCHAR, driver VARCHAR) |
SELECT mens_open FROM table_16724844_1 WHERE womens_40 = "Sydney Scorpions defeated Hunter Hornets" | What were the results of the mens open when the womens 40 was Sydney Scorpions defeated Hunter Hornets? | CREATE TABLE table_16724844_1 (mens_open VARCHAR, womens_40 VARCHAR) |
SELECT "Date" FROM table_6655 WHERE "Type of game" = 'friendly' AND "Opponent" = 'wales' | On what date was there a friendly game against Wales? | CREATE TABLE table_6655 (
"Date" text,
"City" text,
"Opponent" text,
"Results\u00b9" text,
"Type of game" text
) |
SELECT COUNT(grid) FROM table_name_69 WHERE laps = 24 | What is the grid when the laps were 24? | CREATE TABLE table_name_69 (grid VARCHAR, laps VARCHAR) |
SELECT womens_u20 FROM table_16724844_1 WHERE mens_45 = "SunWest Razorbacks def Northern Eagles" | What were the results of the womens u20 when the mens 45 was Sunwest Razorbacks def Northern Eagles? | CREATE TABLE table_16724844_1 (womens_u20 VARCHAR, mens_45 VARCHAR) |
SELECT player FROM table_name_50 WHERE games_played > 46 AND goals_allowed < 195 | Who played over 46 games and allowed less than 195 goals? | CREATE TABLE table_name_50 (
player VARCHAR,
games_played VARCHAR,
goals_allowed VARCHAR
) |
SELECT constructor FROM table_name_77 WHERE driver = "chris amon" | Who constructed Chris Amon's car? | CREATE TABLE table_name_77 (constructor VARCHAR, driver VARCHAR) |
SELECT mens_45 FROM table_16724844_1 WHERE mens_40 = "SunWest Razorbacks def Sydney Mets" | What was the mens 45 when mens 40 was Sunwest Razorbacks def Sydney Mets? | CREATE TABLE table_16724844_1 (mens_45 VARCHAR, mens_40 VARCHAR) |
SELECT "Date" FROM table_64938 WHERE "Int'l Debut" = 'rl test v wales' | What is the Date of RL Test v Wales Int'l Debut? | CREATE TABLE table_64938 (
"Player" text,
"Int'l Debut" text,
"Year" text,
"Cross Code Debut" text,
"Date" text
) |
SELECT MAX(grid) FROM table_name_76 WHERE driver = "jack brabham" AND laps > 90 | What was Jack Brabham's highest grid when his laps were more than 90? | CREATE TABLE table_name_76 (grid INTEGER, driver VARCHAR, laps VARCHAR) |
SELECT mens_open FROM table_16724844_1 WHERE mens_u20 = "Qld Country Rustlers def Southern Suns" | What was the mens open when the mens u20 was Qld Country Rustlers def Southern Suns? | CREATE TABLE table_16724844_1 (mens_open VARCHAR, mens_u20 VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA" AND demographic.dob_year < "2170" | count the number of patients whose primary disease is squamous cell carcinoma oral tongue/sda and year of birth is less than 2170? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... |
SELECT MAX(laps) FROM table_name_31 WHERE driver = "chris amon" AND grid < 4 | What was CHris Amon's highest lap when his grid was 4? | CREATE TABLE table_name_31 (laps INTEGER, driver VARCHAR, grid VARCHAR) |
SELECT date FROM table_16729063_2 WHERE opponent = "Los Angeles Raiders" | What date was the opponent the Los Angeles Raiders? | CREATE TABLE table_16729063_2 (date VARCHAR, opponent VARCHAR) |
SELECT constructor FROM table_name_99 WHERE time_retired = "handling" | What is the constructor for time/retired of handling? | CREATE TABLE table_name_99 (
constructor VARCHAR,
time_retired VARCHAR
) |
SELECT venue FROM table_name_50 WHERE away_team = "hawthorn" | Where did Hawthorn have their away match against North Melbourne? | CREATE TABLE table_name_50 (venue VARCHAR, away_team VARCHAR) |
SELECT COUNT(date) FROM table_16729063_2 WHERE game_site = "Cleveland Stadium" | How many games were played at Cleveland Stadium? | CREATE TABLE table_16729063_2 (date VARCHAR, game_site VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "4105" AND prescriptions.drug_type = "MAIN" | how many patients whose procedure icd9 code is 4105 and drug type is main? | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... |
SELECT home_team AS score FROM table_name_17 WHERE away_team = "richmond" | What was the home team score at Richmond's away game against Footscray? | CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR) |
SELECT COUNT(week) FROM table_16729063_2 WHERE attendance = 74716 | In what week number was the attendance 74716? | CREATE TABLE table_16729063_2 (week VARCHAR, attendance VARCHAR) |
SELECT municipality FROM table_name_34 WHERE party = "lega friuli-vg" AND election < 2011 | Which municipality has a party of Lega Friuli-VG that won elections before 2011? | CREATE TABLE table_name_34 (
municipality VARCHAR,
party VARCHAR,
election VARCHAR
) |
SELECT crowd FROM table_name_28 WHERE home_team = "footscray" | What is the size of the crowd for the home team of Footscray? | CREATE TABLE table_name_28 (crowd VARCHAR, home_team VARCHAR) |
SELECT region FROM table_1672804_2 WHERE name_of_city = "Iquitos" | What is the region where Iquitos is located? | CREATE TABLE table_1672804_2 (region VARCHAR, name_of_city VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.