answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT MAX(total) FROM table_name_92 WHERE bronze = 1 AND silver > 1 | What is the largest total for a nation with 1 bronze and more than 1 silver? | CREATE TABLE table_name_92 (total INTEGER, bronze VARCHAR, silver VARCHAR) |
SELECT COUNT(date) FROM table_17120964_7 WHERE man_of_the_match = "David Savage" | How many dates did David Savage get man of the match? | CREATE TABLE table_17120964_7 (date VARCHAR, man_of_the_match VARCHAR) |
SELECT COUNT(*) > 0 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 = 739)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp mean' A... | on 12/21/2105, is patient 739's arterial bp mean ever greater than 96.0? | CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insuranc... |
SELECT MIN(total) FROM table_name_75 WHERE silver > 1 | What is the smallest total for a nation with more than 1 silver? | CREATE TABLE table_name_75 (total INTEGER, silver INTEGER) |
SELECT man_of_the_match FROM table_17120964_7 WHERE attendance = 1568 | When the attendance was 1568, who was man of the match? | CREATE TABLE table_17120964_7 (man_of_the_match VARCHAR, attendance VARCHAR) |
SELECT "Choreographer(s)" FROM table_40393 WHERE "Style" = 'jazz' | Who was the choreographer for the dance style of Jazz? | CREATE TABLE table_40393 (
"Couple" text,
"Style" text,
"Music" text,
"Choreographer(s)" text,
"Results" text
) |
SELECT agg FROM table_name_45 WHERE team__number2 = "okk beograd" | What was the aggregate for a team #2 of Okk Beograd? | CREATE TABLE table_name_45 (agg VARCHAR, team__number2 VARCHAR) |
SELECT man_of_the_match FROM table_17120964_7 WHERE result = "Lost 2-4" | Who was the man of the match when they lost 2-4? | CREATE TABLE table_17120964_7 (man_of_the_match VARCHAR, result VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2087" AND lab.fluid = "Other Body Fluid" | how many patients born before 2087 were tested for other body flluid? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... |
SELECT 2 AS nd_leg FROM table_name_73 WHERE team__number1 = "chemie halle" | What was the 2nd leg score for Chemie Halle? | CREATE TABLE table_name_73 (team__number1 VARCHAR) |
SELECT competition FROM table_17120964_9 WHERE opponent = "Sheffield Scimitars" | what was the competitoin where the opponent is sheffield scimitars? | CREATE TABLE table_17120964_9 (competition VARCHAR, opponent VARCHAR) |
SELECT "winners" FROM table_204_448 WHERE "team" = 'manchester united' | what 's the total of wins does the manchester united have ? | CREATE TABLE table_204_448 (
id number,
"team" text,
"winners" number,
"runners-up" number,
"years won" text,
"years runner-up" text
) |
SELECT away_team AS score FROM table_name_50 WHERE away_team = "south melbourne" | What was South Melbourne's score as the away team? | CREATE TABLE table_name_50 (away_team VARCHAR) |
SELECT venue FROM table_17120964_9 WHERE attendance = "702" | where was the venue where the attendance was 702? | CREATE TABLE table_17120964_9 (venue VARCHAR, attendance VARCHAR) |
SELECT "High rebounds" FROM table_2821 WHERE "Record" = '10-19' | Name the high rebounds for record 10-19 | CREATE TABLE table_2821 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT COUNT(crowd) FROM table_name_70 WHERE away_team = "geelong" | What was the attendance when Geelong played as the away team? | CREATE TABLE table_name_70 (crowd VARCHAR, away_team VARCHAR) |
SELECT venue FROM table_17120964_9 WHERE date = "22nd" | what was the venue where the date was the 22nd? | CREATE TABLE table_17120964_9 (venue VARCHAR, date VARCHAR) |
SELECT COUNT(week) FROM table_name_26 WHERE attendance = "68,932" AND opponent = "indianapolis colts" | What week is the opponent the Indianapolis Colts with an attendance of 68,932? | CREATE TABLE table_name_26 (
week VARCHAR,
attendance VARCHAR,
opponent VARCHAR
) |
SELECT venue FROM table_name_27 WHERE away_team = "footscray" | Where did Footscray play as the away team? | CREATE TABLE table_name_27 (venue VARCHAR, away_team VARCHAR) |
SELECT opponent FROM table_17120964_9 WHERE date = "21st" | who was the opponent where the date was the 21st? | CREATE TABLE table_17120964_9 (opponent VARCHAR, date VARCHAR) |
SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND NOT COURSE_0.course_id IN (SELECT STUDENT_RECORDalias0.course_id FROM student_record AS STUDENT_RECORDalias0 WHERE STUDENT... | Do I need to take any courses before taking BA 499 ? | CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_proje... |
SELECT crowd FROM table_name_54 WHERE venue = "arden street oval" | What was the attendance when the Arden Street Oval? | CREATE TABLE table_name_54 (crowd VARCHAR, venue VARCHAR) |
SELECT score FROM table_17121262_5 WHERE team = "Milwaukee" | What is the score for Milwaukee? | CREATE TABLE table_17121262_5 (score VARCHAR, team VARCHAR) |
SELECT invoice_number, COUNT(*) FROM Financial_Transactions GROUP BY invoice_number | How many transactions correspond to each invoice number. Plot them as scatter chart. | CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
account_id INTEGER,
invoice_number INTEGER,
transaction_type VARCHAR(15),
transaction_date DATETIME,
transaction_amount DECIMAL(19,4),
transaction_comment VARCHAR(255),
other_transaction_details VARCHAR(255)
)
CREATE TABLE Or... |
SELECT AVG(pick) FROM table_name_76 WHERE player = "marc lewis (lhp)" AND round < 20 | What is the mean pick when the play is Marc Lewis (lhp) and the round is less than 20? | CREATE TABLE table_name_76 (pick INTEGER, player VARCHAR, round VARCHAR) |
SELECT COUNT(record) FROM table_17121262_10 WHERE team = "Washington" | What was the record against Washington? | CREATE TABLE table_17121262_10 (record VARCHAR, team VARCHAR) |
SELECT AVG("Enrollment") FROM table_9437 WHERE "Team Nickname" = 'wolverines' AND "Founded" > '1817' | what is the average enrollment when the team nickname is wolverines and founded is after 1817? | CREATE TABLE table_9437 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text
) |
SELECT pick FROM table_name_76 WHERE player = "marc lewis (lhp)" | Which pick's player was Marc Lewis (lhp)? | CREATE TABLE table_name_76 (pick VARCHAR, player VARCHAR) |
SELECT population FROM table_171236_1 WHERE census_ranking = "231 of 5,008" | If the census ranking is 231 of 5,008, what was the population? | CREATE TABLE table_171236_1 (population VARCHAR, census_ranking VARCHAR) |
SELECT COUNT(*) FROM Posts WHERE Posts.ViewCount > 100000 AND Posts.ViewCount < 500000 | Query 1- Viewcount between 1 lac and 5 lac. | CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostHi... |
SELECT MAX(pick) FROM table_name_29 WHERE school = "naperville central high school" | Which is the biggest pick for Naperville Central High School? | CREATE TABLE table_name_29 (pick INTEGER, school VARCHAR) |
SELECT official_name FROM table_171236_1 WHERE area_km_2 = "59.73" | If the area is 59.73, what is the official name? | CREATE TABLE table_171236_1 (official_name VARCHAR, area_km_2 VARCHAR) |
SELECT COUNT("Game") FROM table_44681 WHERE "Attendance" = '18,568' | What is the total number of Game, when Attendance is '18,568'? | CREATE TABLE table_44681 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
) |
SELECT media_market_ranking FROM table_name_54 WHERE metropolitan_area = "new york, new york" | What is the media market ranking for new york, new york? | CREATE TABLE table_name_54 (media_market_ranking VARCHAR, metropolitan_area VARCHAR) |
SELECT status FROM table_171236_1 WHERE census_ranking = "693 of 5,008" | If the census ranking is 693 of 5,008, what is the status? | CREATE TABLE table_171236_1 (status VARCHAR, census_ranking VARCHAR) |
SELECT COUNT("Type") FROM table_27873 WHERE "Cyrillic Name Other Names" = 'Падина (Slovak: Padina)' | How many entries are there for type for the cyrillic name other names is (slovak: padina)? | CREATE TABLE table_27873 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
) |
SELECT home_away FROM table_name_49 WHERE opponent = "pride" AND result = "w 11-10" | Is it home or away when opponent is Pride with a W 11-10 result? | CREATE TABLE table_name_49 (home_away VARCHAR, opponent VARCHAR, result VARCHAR) |
SELECT census_ranking FROM table_171236_1 WHERE official_name = "Quispamsis" | With the official name Quispamsis, what is the census ranking? | CREATE TABLE table_171236_1 (census_ranking VARCHAR, official_name VARCHAR) |
SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'acetaminophen-caff-butalbital' AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-5 year') | what is the number of times acetaminophen-caff-butalbital was ordered since 5 years ago? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose... |
SELECT opponent FROM table_name_19 WHERE field = "bishop kearney field" | Who is the opponent at Bishop Kearney Field? | CREATE TABLE table_name_19 (opponent VARCHAR, field VARCHAR) |
SELECT population FROM table_171236_1 WHERE census_ranking = "782 of 5,008" | What was the population for census ranking 782 of 5,008? | CREATE TABLE table_171236_1 (population VARCHAR, census_ranking VARCHAR) |
SELECT Event_Details, COUNT(Event_Details) FROM Events AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage' GROUP BY Event_Details ORDER BY COUNT(Event_Details) DESC | what are the event details of the services that have the type code 'Marriage', and count them by a bar chart, show in descending by the Y please. | CREATE TABLE Participants_in_Events (
Event_ID INTEGER,
Participant_ID INTEGER
)
CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
)
CREATE TABLE Eve... |
SELECT date FROM table_name_17 WHERE home_away = "home" AND opponent = "bayhawks" | On what date were the opponents the Bayhawks at a home game? | CREATE TABLE table_name_17 (date VARCHAR, home_away VARCHAR, opponent VARCHAR) |
SELECT census_ranking FROM table_171236_1 WHERE area_km_2 = "34.73" | If the area is 34.73, what is the census ranking? | CREATE TABLE table_171236_1 (census_ranking VARCHAR, area_km_2 VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Hematoma complic proc" AND prescriptions.route = "BUCCAL" | provide the number of patients whose diagnoses short title is hematoma complic proc and drug route is buccal? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... |
SELECT raion__district__or_city FROM table_name_58 WHERE bessarabian_bulgarians = "8,600" | What city or Raion (district) has 8,600 Bessarabian Bulgarians? | CREATE TABLE table_name_58 (raion__district__or_city VARCHAR, bessarabian_bulgarians VARCHAR) |
SELECT census_ranking FROM table_171250_2 WHERE population = 284 | What are the census ranking(s) for a population of 284? | CREATE TABLE table_171250_2 (census_ranking VARCHAR, population VARCHAR) |
SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-151154')) AND intakeoutput.cellpath LIKE '%intake%' AND ... | tell me the name of the intake that patient 027-151154 had for the first time on this month/28? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TA... |
SELECT moldovans FROM table_name_81 WHERE ukrainians = "14,200" | what is the Moldovans number when there are 14,200 Ukrainians? | CREATE TABLE table_name_81 (moldovans VARCHAR, ukrainians VARCHAR) |
SELECT census_ranking FROM table_171250_2 WHERE area_km_2 = "369.25" | What are the census ranking(s) that have an area of 369.25 km2? | CREATE TABLE table_171250_2 (census_ranking VARCHAR, area_km_2 VARCHAR) |
SELECT week FROM table_name_70 WHERE tournament = "rome" | In what Week is the Rome Tournament? | CREATE TABLE table_name_70 (
week VARCHAR,
tournament VARCHAR
) |
SELECT MIN(reported_isn) FROM table_name_28 WHERE citizenship = "russia" | Name the lowest reported isn for russia | CREATE TABLE table_name_28 (reported_isn INTEGER, citizenship VARCHAR) |
SELECT population FROM table_171250_2 WHERE area_km_2 = "715.58" | What is the population that has an area of 715.58? | CREATE TABLE table_171250_2 (population VARCHAR, area_km_2 VARCHAR) |
SELECT mountains_classification FROM table_name_42 WHERE general_classification = "egoi martínez" AND stage = "9" | Which Mountains classification has a General classification of egoi mart nez, and a Stage of 9? | CREATE TABLE table_name_42 (
mountains_classification VARCHAR,
general_classification VARCHAR,
stage VARCHAR
) |
SELECT AVG(reported_isn) FROM table_name_4 WHERE on_july_2007_press_release = "no" AND citizenship = "kuwait" | Name the average reported isn for july 2007 for kuwait release of no | CREATE TABLE table_name_4 (reported_isn INTEGER, on_july_2007_press_release VARCHAR, citizenship VARCHAR) |
SELECT status FROM table_171250_2 WHERE official_name = "Saint-Jacques" | What are that status(es) of saint-jacques? | CREATE TABLE table_171250_2 (status VARCHAR, official_name VARCHAR) |
SELECT COUNT(high_points) FROM table_18904831_7 WHERE location = "MCI Center" | What were the high points for the game played at the MCI Center? | CREATE TABLE table_18904831_7 (
high_points VARCHAR,
location VARCHAR
) |
SELECT MAX(region) FROM table_name_10 WHERE population = 499 | What is the highest region number with a 499 population? | CREATE TABLE table_name_10 (region INTEGER, population VARCHAR) |
SELECT area_km_2 FROM table_171250_2 WHERE official_name = "Saint-Joseph" | What are the area(s) (km2) for saint-joseph? | CREATE TABLE table_171250_2 (area_km_2 VARCHAR, official_name VARCHAR) |
SELECT "Name" FROM table_61968 WHERE "Points" = '1344' | Who had 1344 points? | CREATE TABLE table_61968 (
"Position" real,
"Number" real,
"Name" text,
"Team" text,
"Points" real
) |
SELECT series FROM table_name_52 WHERE home = "minnesota" AND date = "april 17" | What was the series score on april 17 with minnesota at home? | CREATE TABLE table_name_52 (series VARCHAR, home VARCHAR, date VARCHAR) |
SELECT census_ranking FROM table_171356_2 WHERE area_km_2 = "482.81" | What rank is the parish with 482.81 km^2? | CREATE TABLE table_171356_2 (census_ranking VARCHAR, area_km_2 VARCHAR) |
SELECT "Division" FROM table_52512 WHERE "Finish" = '5th' AND "Losses" = '87' | Which division of the Brewers had a 5th place ranking and a loss record of 87? | CREATE TABLE table_52512 (
"MLB season" text,
"Team season" text,
"League" text,
"Division" text,
"Finish" text,
"Wins" text,
"Losses" text,
"Win %" text
) |
SELECT COUNT(attendance) FROM table_name_28 WHERE date = "april 14" | How many attended the game on april 14? | CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR) |
SELECT status FROM table_171356_2 WHERE census_ranking = "2,290 of 5,008" | What status doe the area with a census ranking of 2,290 of 5,008 have? | CREATE TABLE table_171356_2 (status VARCHAR, census_ranking VARCHAR) |
SELECT AVG("Attendance") FROM table_33694 WHERE "Week" > '6' AND "Opponent" = 'at philadelphia eagles' | What was the average attendance when the opponent was at Philadelphia Eagles and the week was later than week 6? | CREATE TABLE table_33694 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text,
"Attendance" real
) |
SELECT home FROM table_name_8 WHERE date = "april 14" | Who was at home on april 14? | CREATE TABLE table_name_8 (home VARCHAR, date VARCHAR) |
SELECT COUNT(status) FROM table_171356_2 WHERE official_name = "Gagetown" | How many statuses are listed for the parish officially named Gagetown? | CREATE TABLE table_171356_2 (status VARCHAR, official_name VARCHAR) |
SELECT "Incumbent" FROM table_28857 WHERE "Candidates" = 'John Banks (AM) 52.2% Samuel Power (J) 47.8%' | Who was the incumbent when the candidates were John banks (am) 52.2% samuel power (j) 47.8%? | CREATE TABLE table_28857 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) |
SELECT away_team FROM table_name_91 WHERE home_team = "melbourne" | What is the name of the away team that played Melbourne? | CREATE TABLE table_name_91 (away_team VARCHAR, home_team VARCHAR) |
SELECT census_ranking FROM table_171356_2 WHERE official_name = "Petersville" | What is Petersville's census ranking? | CREATE TABLE table_171356_2 (census_ranking VARCHAR, official_name VARCHAR) |
SELECT score FROM table_name_62 WHERE money___$__ = "22,500" | What's the score for $22,500? | CREATE TABLE table_name_62 (
score VARCHAR,
money___$__ VARCHAR
) |
SELECT date FROM table_name_33 WHERE venue = "punt road oval" | What date was the game played at Punt Road Oval? | CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR) |
SELECT population FROM table_171361_1 WHERE status = "City" | What is the population of each community with city status? | CREATE TABLE table_171361_1 (population VARCHAR, status VARCHAR) |
SELECT neighborhood.neighborhood_name FROM business, category AS CATEGORY_0, category AS CATEGORY_1, neighborhood WHERE business.city = 'Madison' AND business.rating < 2.5 AND CATEGORY_0.business_id = business.business_id AND CATEGORY_0.category_name = 'Italian' AND CATEGORY_1.business_id = business.business_id AND CAT... | List all the neighborhoods with Italian restaurant rated less than 2.5 in Madison | CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE neighborhood (
id int,
business_id varchar,
neighborhood_name varchar
)
CREATE TABLE category (
id int,
business_id varchar,
category_name varchar
)
CREATE TABLE tip (
tip_id int,
business_id varchar... |
SELECT home_team FROM table_name_13 WHERE away_team = "hawthorn" | What is the name of the home team that played against Hawthorn? | CREATE TABLE table_name_13 (home_team VARCHAR, away_team VARCHAR) |
SELECT official_name FROM table_171361_1 WHERE area_km_2 = "30.75" | What is the name of the community with an area of 30.75 sq. km.? | CREATE TABLE table_171361_1 (official_name VARCHAR, area_km_2 VARCHAR) |
SELECT "Mixed doubles" FROM table_70105 WHERE "Women's singles" = 'marija ulitina' | Who won Mixed Doubles the year that Marija Ulitina won the Women's Singles? | CREATE TABLE table_70105 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) |
SELECT home_team AS score FROM table_name_25 WHERE venue = "kardinia park" | What is the home team score that played at Kardinia Park? | CREATE TABLE table_name_25 (home_team VARCHAR, venue VARCHAR) |
SELECT area_km_2 FROM table_171361_1 WHERE population = 1209 | What is the area of the community with a population of 1209? | CREATE TABLE table_171361_1 (area_km_2 VARCHAR, population VARCHAR) |
SELECT lineup FROM table_name_33 WHERE match = "2" | What was her place in the lineup on match 2? | CREATE TABLE table_name_33 (
lineup VARCHAR,
match VARCHAR
) |
SELECT COUNT(laps) FROM table_name_85 WHERE driver = "rubens barrichello" | I want the total number of Laps for Rubens Barrichello | CREATE TABLE table_name_85 (laps VARCHAR, driver VARCHAR) |
SELECT COUNT(population) FROM table_171361_1 WHERE area_km_2 = "10.25" | How many population values are listed for the community with an area of 10.25 sq.km.? | CREATE TABLE table_171361_1 (population VARCHAR, area_km_2 VARCHAR) |
SELECT "Location" FROM table_42642 WHERE "Home team" = 'japan' | What was the location of the home game for Japan? | CREATE TABLE table_42642 (
"Date" text,
"Tournament" text,
"Location" text,
"Home team" text,
"Score" text,
"Away team" text
) |
SELECT driver FROM table_name_41 WHERE grid < 19 AND laps > 59 AND time_retired = "+0.294" | Tell me the driver for grid less than 19 and Laps more than 59 with time/retired of +0.294 | CREATE TABLE table_name_41 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR) |
SELECT region_1 FROM table_171320_3 WHERE region_4 = "April 2, 2009" | Name the region 1 where region 4 for april 2, 2009 | CREATE TABLE table_171320_3 (region_1 VARCHAR, region_4 VARCHAR) |
SELECT COUNT(*) FROM table_204_652 WHERE "genre" = 'crime thriller' | how many crime thrillers were released in this category in this year ? | CREATE TABLE table_204_652 (
id number,
"title" text,
"year" number,
"director" text,
"country" text,
"genre" text,
"notes" text
) |
SELECT rider FROM table_name_56 WHERE time = "1:45.52.84" AND rank = 8 | What is the name of the rider with a time of 1:45.52.84, and a Rank of 8? | CREATE TABLE table_name_56 (rider VARCHAR, time VARCHAR, rank VARCHAR) |
SELECT region_1 FROM table_171320_3 WHERE ep__number = 13 | Name the region 1 for episode number 13 | CREATE TABLE table_171320_3 (region_1 VARCHAR, ep__number VARCHAR) |
SELECT "Level" FROM table_26218 WHERE "Artist 1" = 'Wale' | Which level has wale as artist 1? | CREATE TABLE table_26218 (
"Song 1 title" text,
"Artist 1" text,
"Song 2 title" text,
"Artist 2" text,
"Mix artist" text,
"Guitar part?" text,
"Level" text
) |
SELECT team FROM table_name_10 WHERE rank < 5 AND time = "1:37.58.38" | What is the name of the team with a rank smaller than 5 and a time of 1:37.58.38? | CREATE TABLE table_name_10 (team VARCHAR, rank VARCHAR, time VARCHAR) |
SELECT COUNT(series__number) FROM table_17152787_3 WHERE season__number = 1 | How many episodes have the season number of 1? | CREATE TABLE table_17152787_3 (series__number VARCHAR, season__number VARCHAR) |
SELECT party FROM table_1341453_32 WHERE incumbent = "Jim Saxton" | What is the party of the district incumbent Jim Saxton? | CREATE TABLE table_1341453_32 (
party VARCHAR,
incumbent VARCHAR
) |
SELECT MAX(rank) FROM table_name_64 WHERE rider = "peter symes" | What is the highest rank for Peter Symes? | CREATE TABLE table_name_64 (rank INTEGER, rider VARCHAR) |
SELECT director FROM table_17155250_1 WHERE original_title = "The Patience Stone" | Who was the director of the film with the original title of "The Patience Stone"? | CREATE TABLE table_17155250_1 (director VARCHAR, original_title VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND procedures.short_title = "Hemodialysis" | what number of patients who underwent hemodialysis were discharged at home health care? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... |
SELECT away_team AS score FROM table_name_53 WHERE venue = "glenferrie oval" | What was the score for the away team at Glenferrie Oval? | CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR) |
SELECT year__ceremony_ FROM table_17155250_1 WHERE original_title = "Fire Dancer" | For what ceremony was "Fire Dancer" not nominated? | CREATE TABLE table_17155250_1 (year__ceremony_ VARCHAR, original_title VARCHAR) |
SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 1 | Find the first names of the teachers that teach first grade. | CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
) |
SELECT date FROM table_name_63 WHERE away_team = "st kilda" | When was a game played where the away team is St Kilda? | CREATE TABLE table_name_63 (date VARCHAR, away_team VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.