answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
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 = "Joint replaced hip" AND prescriptions.route = "SC" | get me the number of patients on sc route of drug administration who were diagnosed with hip joint replacement. | 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 final_placing FROM table_name_12 WHERE poles = 0 AND races > 16 AND podiums = 16 | What is the final placing of the team with 0 ples, more than 16 races, and 16 podiums? | CREATE TABLE table_name_12 (final_placing VARCHAR, podiums VARCHAR, poles VARCHAR, races VARCHAR) |
SELECT us_viewers__in_millions_ FROM table_20704243_5 WHERE series__number = 50 | Name the number of viewers for series number 50 | CREATE TABLE table_20704243_5 (us_viewers__in_millions_ VARCHAR, series__number VARCHAR) |
SELECT nhl_team FROM table_2897457_1 WHERE nationality = "Sweden" | What team drafted a player from Sweden? | CREATE TABLE table_2897457_1 (
nhl_team VARCHAR,
nationality VARCHAR
) |
SELECT SUM(podiums) FROM table_name_92 WHERE final_placing = "14th" AND season > 2008 AND races < 1 | What is the sum of podiums of the teams with a final placing of 14th, seasons after 2008, and less than 1 races? | CREATE TABLE table_name_92 (podiums INTEGER, races VARCHAR, final_placing VARCHAR, season VARCHAR) |
SELECT directed_by FROM table_20704243_5 WHERE season__number = 1 | Name who directed season 1 | CREATE TABLE table_20704243_5 (directed_by VARCHAR, season__number VARCHAR) |
SELECT idoe_profile FROM table_1984697_85 WHERE city___town = "North Manchester" | What is the IDOE Profile in North Manchester? | CREATE TABLE table_1984697_85 (
idoe_profile VARCHAR,
city___town VARCHAR
) |
SELECT COUNT(season) FROM table_name_30 WHERE wins > 0 AND final_placing = "1st" | What is the total number of seasons with more than 0 wins and a 1st final placing? | CREATE TABLE table_name_30 (season VARCHAR, wins VARCHAR, final_placing VARCHAR) |
SELECT COUNT(moment_of_inertia_in_torsion__j___cm_4__) FROM table_2071644_1 WHERE beam_height__mm_ = 120 | What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??= | CREATE TABLE table_2071644_1 (moment_of_inertia_in_torsion__j___cm_4__ VARCHAR, beam_height__mm_ VARCHAR) |
SELECT product_category, COUNT(*) FROM Mailshot_Campaigns GROUP BY product_category | Show all distinct product categories along with the number of mailshots in each category in a pie chart. | CREATE TABLE Mailshot_Customers (
mailshot_id INTEGER,
customer_id INTEGER,
outcome_code VARCHAR(15),
mailshot_customer_date DATETIME
)
CREATE TABLE Customer_Orders (
order_id INTEGER,
customer_id INTEGER,
order_status_code VARCHAR(15),
shipping_method_code VARCHAR(15),
order_placed... |
SELECT AVG(wins) FROM table_name_12 WHERE poles > 0 AND podiums < 3 | What is the average wins of a team with more than 0 ples and less than 3 podiums? | CREATE TABLE table_name_12 (wins INTEGER, poles VARCHAR, podiums VARCHAR) |
SELECT cross_section_area__cm_2__ FROM table_2071644_1 WHERE moment_of_inertia_in_torsion__j___cm_4__ = "2.54" | What is the cross section area (cm 2) for the moment of intertia in torsion (j) (cm 4) 2.54? | CREATE TABLE table_2071644_1 (cross_section_area__cm_2__ VARCHAR, moment_of_inertia_in_torsion__j___cm_4__ VARCHAR) |
SELECT SALARY, DEPARTMENT_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, draw a scatter chart about the correlation between salary and department_id . | 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 locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(... |
SELECT ends FROM table_name_53 WHERE transfer_fee = "free" AND goals = 0 AND name = "roy carroll" | I want the ends for transfer fee of free and goals being 0 for roy carroll | CREATE TABLE table_name_53 (ends VARCHAR, name VARCHAR, transfer_fee VARCHAR, goals VARCHAR) |
SELECT flange_thickness__mm_ FROM table_2071644_1 WHERE weight__kg_m_ = "6.0" | What is the flange thickness (mm) for the weight (kg/m) 6.0?Wg | CREATE TABLE table_2071644_1 (flange_thickness__mm_ VARCHAR, weight__kg_m_ VARCHAR) |
SELECT COUNT("Rank") FROM table_74744 WHERE "Rider" = 'ray pickrell' | How many Ranks have ray pickrell as a Rider? | CREATE TABLE table_74744 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) |
SELECT COUNT(ends) FROM table_name_67 WHERE name = "filip šebo" AND goals > 2 | I want the total number of ends for filip šebo and Goals more than 2 | CREATE TABLE table_name_67 (ends VARCHAR, name VARCHAR, goals VARCHAR) |
SELECT COUNT(moment_of_inertia_in_torsion__j___cm_4__) FROM table_2071644_1 WHERE web_thickness__mm_ = "4.7" | What is the number for the moment of intertia in torsion (j) (cm 4) for the 4.7 web thickness (mm)? | CREATE TABLE table_2071644_1 (moment_of_inertia_in_torsion__j___cm_4__ VARCHAR, web_thickness__mm_ VARCHAR) |
SELECT * FROM table_train_100 WHERE (body_mass_index_bmi >= 19 AND body_mass_index_bmi <= 30) AND (body_weight >= 50 AND body_weight <= 100) | body mass index ( bmi ) between 19 and 30 kg / m2 and weigh at least 50 kg and no more than 100 kg. | CREATE TABLE table_train_100 (
"id" int,
"systolic_blood_pressure_sbp" int,
"stroke" bool,
"body_weight" float,
"diastolic_blood_pressure_dbp" int,
"rosen_modified_hachinski_ischemic_score" int,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) |
SELECT crowd FROM table_name_34 WHERE away_team = "richmond" | How big was the crowd of away team Richmond? | CREATE TABLE table_name_34 (crowd VARCHAR, away_team VARCHAR) |
SELECT flange_thickness__mm_ FROM table_2071644_1 WHERE weight__kg_m_ = "10.4" | What is the flange thickness (mm) for the weight (kg/m) 10.4? | CREATE TABLE table_2071644_1 (flange_thickness__mm_ VARCHAR, weight__kg_m_ VARCHAR) |
SELECT date FROM table_name_90 WHERE time = "56.49" | What is Date, when Time is '56.49'? | CREATE TABLE table_name_90 (
date VARCHAR,
time VARCHAR
) |
SELECT away_team AS score FROM table_name_53 WHERE away_team = "geelong" | How much did the away team Geelong score? | CREATE TABLE table_name_53 (away_team VARCHAR) |
SELECT COUNT(flange_width__mm_) FROM table_2071644_1 WHERE cross_section_area__cm_2__ = "16.4" | What is the flange width (mm) for cross section area (cm 2) 16.4? | CREATE TABLE table_2071644_1 (flange_width__mm_ VARCHAR, cross_section_area__cm_2__ VARCHAR) |
SELECT COUNT(*) > 0, program_course.workload FROM course, program_course WHERE course.department = 'SLAVIC' AND course.number = 490 AND program_course.course_id = course.course_id AND program_course.workload > 3 | Do you know whether SLAVIC 490 is hard ? | CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE com... |
SELECT AVG(year) FROM table_name_28 WHERE day_in_release = "friday" AND day_of_week > 2 | What is the average year for releases on Friday and weeks larger than 2 days? | CREATE TABLE table_name_28 (year INTEGER, day_in_release VARCHAR, day_of_week VARCHAR) |
SELECT lyon__32_ FROM table_20711545_1 WHERE seed = 5 | In what round was lyon (32) a 5 seed? | CREATE TABLE table_20711545_1 (lyon__32_ VARCHAR, seed VARCHAR) |
SELECT "Opponent" FROM table_6471 WHERE "Date" = 'may 21' | What Opponent played on the Date May 21? | CREATE TABLE table_6471 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
) |
SELECT COUNT(win_percentage) FROM table_name_89 WHERE postseason = "did not qualify" AND rank > 8 | What number of win% has a postseason of did not qualify and rank larger than 8? | CREATE TABLE table_name_89 (win_percentage VARCHAR, postseason VARCHAR, rank VARCHAR) |
SELECT COUNT(marseille__32_draw_) FROM table_20711545_1 WHERE seed = 2 | How many items were recorded marseille (32 draw) was a 2 seed? | CREATE TABLE table_20711545_1 (marseille__32_draw_ VARCHAR, seed VARCHAR) |
SELECT Id, DisplayName, (U.DownVotes * -2) AS Loss1, U.Reputation AS CurrentRep, (U.Reputation + U.DownVotes * -2) AS NewRep FROM Users AS U ORDER BY Loss1 LIMIT 100 | rep loss -1 -> -2. | CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PendingFlags ... |
SELECT year FROM table_name_18 WHERE rank > 5 | What year ranked larger than 5? | CREATE TABLE table_name_18 (year VARCHAR, rank INTEGER) |
SELECT MAX(seed) FROM table_20711545_1 WHERE lyon__32_ = "DNQ" | What is the seed for lyon (32) was DNQ? | CREATE TABLE table_20711545_1 (seed INTEGER, lyon__32_ VARCHAR) |
SELECT MAX("Game") FROM table_5419 WHERE "Opponent" = 'new york islanders' AND "December" > '10' | Which Game is the highest one that has an Opponent of new york islanders, and a December larger than 10? | CREATE TABLE table_5419 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) |
SELECT postseason FROM table_name_54 WHERE win_percentage > 0.40700000000000003 AND games < 108 AND rank = 1 | What postseason has a win% between 0.40700000000000003 and 108 with a rank of 1? | CREATE TABLE table_name_54 (postseason VARCHAR, rank VARCHAR, win_percentage VARCHAR, games VARCHAR) |
SELECT paris__48___byes_ FROM table_20711545_1 WHERE seed = 3 | What was the result for Paris(48-byes) for 3 seed? | CREATE TABLE table_20711545_1 (paris__48___byes_ VARCHAR, seed VARCHAR) |
SELECT "School/Club Team" FROM table_44235 WHERE "Round" < '5' AND "Pick" > '1' AND "Player" = 'reggie mckenzie' | Which School/Club Team has a Round smaller than 5, a Pick larger than 1, and a Player of reggie mckenzie? | CREATE TABLE table_44235 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
) |
SELECT COUNT(laps) FROM table_name_7 WHERE driver = "eddie irvine" | How many laps in total does the driver named Eddie Irvine have? | CREATE TABLE table_name_7 (laps VARCHAR, driver VARCHAR) |
SELECT mccain_percentage FROM table_20722805_1 WHERE obama_percentage = "64.39%" | What was McCain's percentage when Obama had 64.39% of the vote? | CREATE TABLE table_20722805_1 (mccain_percentage VARCHAR, obama_percentage VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "0" AND lab.label = "Potassium, Urine" | show me the number of non-hospitalized patients who had urine potassium lab test. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... |
SELECT AVG(crowd) FROM table_name_91 WHERE venue = "western oval" | What's the average crowd size when the venue is western oval? | CREATE TABLE table_name_91 (crowd INTEGER, venue VARCHAR) |
SELECT MIN(mccain_number) FROM table_20722805_1 WHERE obama_percentage = "48.35%" | What was McCain's vote when Obama had 48.35% | CREATE TABLE table_20722805_1 (mccain_number INTEGER, obama_percentage VARCHAR) |
SELECT office FROM table_name_9 WHERE party = "rep" AND representative = "brian bosma" | Which Office has a Party of rep, and a Representative of brian bosma? | CREATE TABLE table_name_9 (
office VARCHAR,
party VARCHAR,
representative VARCHAR
) |
SELECT team FROM table_name_64 WHERE average < 1.12 AND goalkeeper = "carlos sánchez" | What team has Carlos Sánchez as a goalkeeper and an average below 1.12? | CREATE TABLE table_name_64 (team VARCHAR, average VARCHAR, goalkeeper VARCHAR) |
SELECT MIN(obama_number) FROM table_20722805_1 WHERE obama_percentage = "32.12%" | How many votes did Obama have at 32.12% | CREATE TABLE table_20722805_1 (obama_number INTEGER, obama_percentage VARCHAR) |
SELECT school_club_team FROM table_name_35 WHERE position = "guard/forward" | For which school/club team did the player in the position of Guard/Forward play? | CREATE TABLE table_name_35 (
school_club_team VARCHAR,
position VARCHAR
) |
SELECT AVG(average) FROM table_name_14 WHERE goalkeeper = "jacobo" AND matches > 32 | What is the average of the team who has Jacobo as a goalkeeper and has played more than 32 matches? | CREATE TABLE table_name_14 (average INTEGER, goalkeeper VARCHAR, matches VARCHAR) |
SELECT parish FROM table_20722805_1 WHERE mccain_percentage = "45.37%" | What parish did McCain have 45.37% of the votes? | CREATE TABLE table_20722805_1 (parish VARCHAR, mccain_percentage VARCHAR) |
SELECT AVG("Round") FROM table_77231 WHERE "Overall" > '310' AND "Name" = 'billy hicks' | What is the average number of rounds for billy hicks who had an overall pick number bigger than 310? | CREATE TABLE table_77231 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) |
SELECT home_team FROM table_name_57 WHERE away_team = "fitzroy" | What home team played Fitzroy? | CREATE TABLE table_name_57 (home_team VARCHAR, away_team VARCHAR) |
SELECT MAX(mccain_number) FROM table_20722805_1 WHERE parish = "Webster" | What is the total number of votes McCain had in Webster? | CREATE TABLE table_20722805_1 (mccain_number INTEGER, parish VARCHAR) |
SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 281 | 281 , does it have a lab ? | CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description v... |
SELECT network FROM table_name_36 WHERE play_by_play = "john wells" | Which network has a play-by-play announcer of John Wells? | CREATE TABLE table_name_36 (network VARCHAR, play_by_play VARCHAR) |
SELECT originalairdate FROM table_20726262_2 WHERE production_code = "1WAB06" | What was the original air date for the episode with production code 1wab06? | CREATE TABLE table_20726262_2 (originalairdate VARCHAR, production_code VARCHAR) |
SELECT actual_order_id FROM actual_orders WHERE order_status_code = 'Success' | Find the ids of orders whose status is 'Success'. | CREATE TABLE actual_orders (
actual_order_id VARCHAR,
order_status_code VARCHAR
) |
SELECT colour_commentator_s_ FROM table_name_24 WHERE network = "cbc" AND year = 1987 | On CBC, who was the colour commentator in 1987? | CREATE TABLE table_name_24 (colour_commentator_s_ VARCHAR, network VARCHAR, year VARCHAR) |
SELECT title FROM table_20726262_2 WHERE directedby = "Paris Barclay" | What title episode did Paris Barclay direct? | CREATE TABLE table_20726262_2 (title VARCHAR, directedby VARCHAR) |
SELECT first_name, COUNT(first_name) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id GROUP BY first_name ORDER BY COUNT(first_name) | How many staffs have contacted with each engineer? Give me a bar chart grouping by each engineer's first name, and could you display by the y-axis from low to high? | CREATE TABLE Engineer_Skills (
engineer_id INTEGER,
skill_id INTEGER
)
CREATE TABLE Engineer_Visits (
engineer_visit_id INTEGER,
contact_staff_id INTEGER,
engineer_id INTEGER,
fault_log_entry_id INTEGER,
fault_status VARCHAR(10),
visit_start_datetime DATETIME,
visit_end_datetime DAT... |
SELECT colour_commentator_s_ FROM table_name_58 WHERE play_by_play = "bob cole" | Who was the colour commentator when the play-by-play announcer was Bob Cole? | CREATE TABLE table_name_58 (colour_commentator_s_ VARCHAR, play_by_play VARCHAR) |
SELECT production_code FROM table_20726262_2 WHERE no_in_series = 1 | What was the production code for episode #1? | CREATE TABLE table_20726262_2 (production_code VARCHAR, no_in_series VARCHAR) |
SELECT "year" FROM table_204_399 WHERE "outcome" = 'winner' GROUP BY "year" ORDER BY COUNT(*) DESC LIMIT 1 | in what year did he win the most titles ? | CREATE TABLE table_204_399 (
id number,
"outcome" text,
"no." number,
"year" number,
"championship" text,
"opponent in the final" text,
"score" text
) |
SELECT studio_host FROM table_name_38 WHERE play_by_play = "bob cole" AND colour_commentator_s_ = "harry neale" | Who is the studio host that has a play-by-play announcer of Bob Cole and a colour commentator of Harry Neale? | CREATE TABLE table_name_38 (studio_host VARCHAR, play_by_play VARCHAR, colour_commentator_s_ VARCHAR) |
SELECT MAX(no_in_series) FROM table_20726262_2 WHERE writtenby = "Kurt Sutter & Jack LoGiudice" | What number episode was written by kurt sutter & jack logiudice? | CREATE TABLE table_20726262_2 (no_in_series INTEGER, writtenby VARCHAR) |
SELECT method FROM table_name_29 WHERE opponent = "björn bregy" | What is the method against Bj rn Bregy? | CREATE TABLE table_name_29 (
method VARCHAR,
opponent VARCHAR
) |
SELECT colour_commentator_s_ FROM table_name_17 WHERE studio_host = "dave hodge" AND year = 1981 | In 1981, with a studio host of Dave Hodge, who was the colour commentator? | CREATE TABLE table_name_17 (colour_commentator_s_ VARCHAR, studio_host VARCHAR, year VARCHAR) |
SELECT production_code FROM table_20726262_3 WHERE usviewers__million_ = "3.38" | What was the production code for the episode with 3.38 million viewers? | CREATE TABLE table_20726262_3 (production_code VARCHAR, usviewers__million_ VARCHAR) |
SELECT "Nationality" FROM table_51728 WHERE "Position" = 'guard' AND "School/Club Team" = 'notre dame' | What is the Nationality of the player who had Position of guard from School/Club Team Notre Dame? | CREATE TABLE table_51728 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) |
SELECT song FROM table_name_19 WHERE artist = "mor ve ötesi" | What Song is by the Artist 'mor ve ötesi'? | CREATE TABLE table_name_19 (song VARCHAR, artist VARCHAR) |
SELECT no_in_season FROM table_20726262_3 WHERE production_code = "2WAB12" | What season number did production code 2wab12? | CREATE TABLE table_20726262_3 (no_in_season VARCHAR, production_code VARCHAR) |
SELECT Name, COUNT(Name) FROM train GROUP BY Name ORDER BY COUNT(Name) | Compare the total number of trains in each name by a bar graph, sort by the total number in ascending. | CREATE TABLE railway (
Railway_ID int,
Railway text,
Builder text,
Built text,
Wheels text,
Location text,
ObjectNumber text
)
CREATE TABLE manager (
Manager_ID int,
Name text,
Country text,
Working_year_starts text,
Age int,
Level int
)
CREATE TABLE railway_manage ... |
SELECT date FROM table_name_34 WHERE home_team = "richmond" | What date did the home team Richmond play? | CREATE TABLE table_name_34 (date VARCHAR, home_team VARCHAR) |
SELECT COUNT(no_in_season) FROM table_20726262_3 WHERE writtenby = "Brett Conrad & Liz Sagal" | How many numbers in the season were written by Brett Conrad & Liz Sagal? | CREATE TABLE table_20726262_3 (no_in_season VARCHAR, writtenby VARCHAR) |
SELECT "Album" FROM table_62359 WHERE "Composer(s)" = 'jimmie lee sloas' | Jimmie Lee Sloas was the composer for what album? | CREATE TABLE table_62359 (
"Year" real,
"Single" text,
"CHR chart peak" real,
"Album" text,
"Composer(s)" text
) |
SELECT MAX(crowd) FROM table_name_95 WHERE home_team = "hawthorn" | What size was the biggest crowd that watched the home team Hawthorn play? | CREATE TABLE table_name_95 (crowd INTEGER, home_team VARCHAR) |
SELECT MAX(no_in_series) FROM table_20726262_4 WHERE production_code = "3WAB07" | what i the maximum number in the series where the production code is 3wab07? | CREATE TABLE table_20726262_4 (no_in_series INTEGER, production_code VARCHAR) |
SELECT country FROM table_name_30 WHERE date = "october 24, 2008" | What is the country when the date shows October 24, 2008? | CREATE TABLE table_name_30 (
country VARCHAR,
date VARCHAR
) |
SELECT MAX(caps) FROM table_name_55 WHERE position = "lock" AND club_province = "vicenza rangers" | What is the high cap total for a lock with the vicenza rangers? | CREATE TABLE table_name_55 (caps INTEGER, position VARCHAR, club_province VARCHAR) |
SELECT MAX(no_in_season) FROM table_20726262_4 WHERE usviewers__million_ = "2.59" | what is the maximum number in the season wher the us viewers is 2.59? | CREATE TABLE table_20726262_4 (no_in_season INTEGER, usviewers__million_ VARCHAR) |
SELECT league FROM table_name_76 WHERE fa_cup > 0 AND total > 21 | Which league has an FA cup greater than 0, with a total greater than 21? | CREATE TABLE table_name_76 (
league VARCHAR,
fa_cup VARCHAR,
total VARCHAR
) |
SELECT date_of_birth__age_ FROM table_name_19 WHERE player = "nese malifa" | When was nese malifa born? | CREATE TABLE table_name_19 (date_of_birth__age_ VARCHAR, player VARCHAR) |
SELECT writtenby FROM table_20726262_4 WHERE production_code = "3WAB03" | what is the written by and production code is 3wab03? | CREATE TABLE table_20726262_4 (writtenby VARCHAR, production_code VARCHAR) |
SELECT nation FROM table_name_32 WHERE total < 2 AND bronze < 1 AND silver = 1 | What nation has a total less than 2, silver of 1 and bronze less than 1? | CREATE TABLE table_name_32 (
nation VARCHAR,
silver VARCHAR,
total VARCHAR,
bronze VARCHAR
) |
SELECT position FROM table_name_3 WHERE player = "jj gagiano" | What position for jj gagiano? | CREATE TABLE table_name_3 (position VARCHAR, player VARCHAR) |
SELECT seats_won FROM table_20728138_1 WHERE seats_contested = 48 | How many seats were won, when the seats contested was 48? | CREATE TABLE table_20728138_1 (seats_won VARCHAR, seats_contested VARCHAR) |
SELECT "Visiting Team" FROM table_11095 WHERE "Date" = 'october 23' | What was the visiting team on october 23? | CREATE TABLE table_11095 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
) |
SELECT club_province FROM table_name_66 WHERE caps = 41 | What club/province has 41 caps? | CREATE TABLE table_name_66 (club_province VARCHAR, caps VARCHAR) |
SELECT seats_contested FROM table_20728138_1 WHERE party = "Independents" | How many seats are contested for independents? | CREATE TABLE table_20728138_1 (seats_contested VARCHAR, party VARCHAR) |
SELECT constructor FROM table_name_28 WHERE laps = 45 AND qual < 142.29 AND driver = "chuck weyant" | Which constructor has Chuck Weyant as a driver, 45 laps, and a qual of less than 142.29? | CREATE TABLE table_name_28 (
constructor VARCHAR,
driver VARCHAR,
laps VARCHAR,
qual VARCHAR
) |
SELECT date FROM table_name_12 WHERE grand_prix = "australian grand prix" | Name the date for the australian grand prix. | CREATE TABLE table_name_12 (date VARCHAR, grand_prix VARCHAR) |
SELECT _percentage_in_seats_contested FROM table_20728138_1 WHERE party = "Revolutionary Socialist party" | What is the percentage seats contested for the revolutionary socialist party? | CREATE TABLE table_20728138_1 (_percentage_in_seats_contested VARCHAR, party VARCHAR) |
SELECT "TV Time" FROM table_43089 WHERE "Giants' points" = '14' | What was the TV time for the game where the Giants had 14 points? | CREATE TABLE table_43089 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Giants' points" text,
"Opponents' Points" text,
"Record" text,
"TV Time" text,
"Attendance" text
) |
SELECT fastest_lap FROM table_name_33 WHERE pole_position = "damon hill" AND location = "magny-cours" | Who did the fastest lap when pole position was damon hill and the location was magny-cours? | CREATE TABLE table_name_33 (fastest_lap VARCHAR, pole_position VARCHAR, location VARCHAR) |
SELECT MIN(2003 AS _seats) FROM table_20728138_1 WHERE _percentage_in_seats_contested = "38.23%" | What is the 2003 seat number, when seats contested was at 38.23% | CREATE TABLE table_20728138_1 (_percentage_in_seats_contested VARCHAR) |
SELECT "Quarterfinals" FROM table_22496 WHERE "Athlete" = 'Bas van Erp' | When bas van erp was the athlete what was the quarterfinals? | CREATE TABLE table_22496 (
"Athlete" text,
"Class" text,
"Event" text,
"Round of 64" text,
"Round of 32" text,
"Round of 16" text,
"Quarterfinals" text,
"Semifinals" text,
"Final/ Bronze medal match" text
) |
SELECT date FROM table_name_65 WHERE grand_prix = "canadian grand prix" | What was the date for the canadian grand prix? | CREATE TABLE table_name_65 (date VARCHAR, grand_prix VARCHAR) |
SELECT COUNT(seats_forfeited) FROM table_20728138_1 WHERE party = "Revolutionary Socialist party" | How many seats were forfeited in the revolutionary socialist party? | CREATE TABLE table_20728138_1 (seats_forfeited VARCHAR, party VARCHAR) |
SELECT PostId AS "post_link", Score, Text FROM Comments ORDER BY Score DESC LIMIT 250 | Top comments of all time. | CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
... |
SELECT SUM(foundation) FROM table_name_79 WHERE japanese_orthography = "国立看護大学校" | What is the number of the Foundation with Japanese orthography of 国立看護大学校? | CREATE TABLE table_name_79 (foundation INTEGER, japanese_orthography VARCHAR) |
SELECT opponent FROM table_20745685_1 WHERE attendance = 16642 | Who was the opponent when the attendance was exactly 16642? | CREATE TABLE table_20745685_1 (opponent VARCHAR, attendance VARCHAR) |
SELECT "L2 cache" FROM table_56644 WHERE "Model number" = 'pentium dual-core t3400' | What is the L2 cache of the microprocessor with model number pentium dual-core t3400? | CREATE TABLE table_56644 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"L2 cache" text,
"Mult." text,
"Voltage" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.