answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT COUNT(solo) FROM table_name_33 WHERE player = "sean mcinerney" AND yards > 0 | What is the total number of Solo with a Player with sean mcinerney, and Yards larger than 0? | CREATE TABLE table_name_33 (solo VARCHAR, player VARCHAR, yards VARCHAR) |
SELECT runner_up FROM table_21808535_1 WHERE date = "September 11" | Who was the runner-up on September 11? | CREATE TABLE table_21808535_1 (runner_up VARCHAR, date VARCHAR) |
SELECT "Game site" FROM table_28664 WHERE "Final score" = 'L 26β42' | Name the game site for l 26 42 | CREATE TABLE table_28664 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
) |
SELECT SUM(total_capacity__mwe_) FROM table_name_86 WHERE power_plant = "ramakkalmedu" | At the power plant located in ramakkalmedu, what is the sum of the total capacity (MWe)? | CREATE TABLE table_name_86 (total_capacity__mwe_ INTEGER, power_plant VARCHAR) |
SELECT COUNT(round) FROM table_21808535_1 WHERE date = "July 10" | How many rounds were on July 10? | CREATE TABLE table_21808535_1 (round VARCHAR, date VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND demographic.age < "67" | tell me the number of hispanic/latino-puerto rican patients who are less than 67 years of age. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... |
SELECT producer FROM table_name_79 WHERE power_plant = "chennai mohan" | What company is the producer in the chennai mohan power plant? | CREATE TABLE table_name_79 (producer VARCHAR, power_plant VARCHAR) |
SELECT COUNT(year) FROM table_2181798_1 WHERE avg_finish = "18.5" | Name the number of years for 18.5 | CREATE TABLE table_2181798_1 (year VARCHAR, avg_finish VARCHAR) |
SELECT name FROM team WHERE NOT team_id IN (SELECT team FROM match_season) | What are the names of teams that do no have match season record? | CREATE TABLE player (
player_id number,
player text,
years_played text,
total_wl text,
singles_wl text,
doubles_wl text,
team number
)
CREATE TABLE team (
team_id number,
name text
)
CREATE TABLE match_season (
season number,
player text,
position text,
country numb... |
SELECT producer FROM table_name_99 WHERE location = "poolavadi" | What company is the producer at the poolavadi location | CREATE TABLE table_name_99 (producer VARCHAR, location VARCHAR) |
SELECT MAX(top_5) FROM table_2181798_1 WHERE avg_finish = "27.6" | Name the max top 5 for avg finish being 27.6 | CREATE TABLE table_2181798_1 (top_5 INTEGER, avg_finish VARCHAR) |
SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'inject anticoagulant')) AND STRFTIME('%y', cost.chargetim... | what is the maximum total hospital cost to include inject anticoagulant since 2105? | 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_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE chart... |
SELECT producer FROM table_name_64 WHERE location = "kethanur" | What company is known as the producer at the kethanur location? | CREATE TABLE table_name_64 (producer VARCHAR, location VARCHAR) |
SELECT COUNT(wins) FROM table_2181798_1 WHERE starts = 30 | Name the number of wins for 30 starts | CREATE TABLE table_2181798_1 (wins VARCHAR, starts VARCHAR) |
SELECT "volts" FROM table_204_583 WHERE id > (SELECT id FROM table_204_583 WHERE "volts" = 2.7 ORDER BY id DESC LIMIT 1) ORDER BY id LIMIT 1 | what comes after 2.7 volts | CREATE TABLE table_204_583 (
id number,
"capacitor type" text,
"capacity" text,
"volts" text,
"temp." text,
"energy-to-weight ratio" text,
"power-to-weight ratio" text
) |
SELECT feathered__fxx_ FROM table_name_37 WHERE duration = "11 min, 34 sec" | When the duration was 11 min, 34 sec, what was the feathered (Fxx)? | CREATE TABLE table_name_37 (feathered__fxx_ VARCHAR, duration VARCHAR) |
SELECT year FROM table_2181798_1 WHERE team_s_ = "Donlavey Racing Bill Davis Racing" | Name the year for donlavey racing bill davis racing | CREATE TABLE table_2181798_1 (year VARCHAR, team_s_ VARCHAR) |
SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17953) AND STRFTIME('%y', procedures_icd.charttime) <= '2102' ORDER BY procedures_icd.charttime LIMIT 1 | when did first patient 17953 receive a procedure until 2102? | CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_typ... |
SELECT city FROM table_name_6 WHERE date = "5th" AND name = "guelferbytanus b" | I want to know the city for guelferbytanus b and the 5th | CREATE TABLE table_name_6 (city VARCHAR, date VARCHAR, name VARCHAR) |
SELECT starts FROM table_2181798_1 WHERE avg_start = "23.7" | Name the starts for 23.7 | CREATE TABLE table_2181798_1 (starts VARCHAR, avg_start VARCHAR) |
SELECT player FROM table_name_37 WHERE place = "t1" AND country = "scotland" | Who placed t1 in Scotland? | CREATE TABLE table_name_37 (
player VARCHAR,
place VARCHAR,
country VARCHAR
) |
SELECT country FROM table_name_51 WHERE date = "9th" AND sign = "g e" | Name the country for the 9th and sign of g e | CREATE TABLE table_name_51 (country VARCHAR, date VARCHAR, sign VARCHAR) |
SELECT COUNT(position) FROM table_2181798_1 WHERE avg_start = "23.7" | Name the position for 23.7 avg start | CREATE TABLE table_2181798_1 (position VARCHAR, avg_start VARCHAR) |
SELECT t1.name, t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot WHERE t1.age < 30 GROUP BY t2.winning_pilot ORDER BY COUNT(*) DESC LIMIT 1 | find the name and age of the pilot who has won the most number of times among the pilots who are younger than 30. | CREATE TABLE pilot (
name VARCHAR,
age INTEGER,
pilot_id VARCHAR
)
CREATE TABLE MATCH (
winning_pilot VARCHAR
) |
SELECT content FROM table_name_54 WHERE sign = "g e" | Name the content for sign of g e | CREATE TABLE table_name_54 (content VARCHAR, sign VARCHAR) |
SELECT MIN(_number) FROM table_2182170_1 WHERE car_s_ = "Chevrolet Monte Carlo" AND listed_owner_s_ = "Teresa Earnhardt" AND driver_s_ = "Paul Menard" | What is the car number for the Chevrolet Monte Carlo that Teresa Earnhardt owns and Paul Menard is her driver? | CREATE TABLE table_2182170_1 (_number INTEGER, driver_s_ VARCHAR, car_s_ VARCHAR, listed_owner_s_ VARCHAR) |
SELECT Grape, COUNT(Grape) FROM wine GROUP BY Grape ORDER BY COUNT(Grape) | Please give me a bar chart that counts the number of grape of wine, list in ascending by the total number. | CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TE... |
SELECT city FROM table_name_22 WHERE name = "athous lavrensis" | Name the city for athous lavrensis | CREATE TABLE table_name_22 (city VARCHAR, name VARCHAR) |
SELECT car_s_ FROM table_2182170_1 WHERE driver_s_ = "Jeff Fuller" | What type of car does Jeff Fuller drive? | CREATE TABLE table_2182170_1 (car_s_ VARCHAR, driver_s_ VARCHAR) |
SELECT county FROM table_name_98 WHERE location = "st. augustine" | What county is the St. Augustine bridge in? | CREATE TABLE table_name_98 (
county VARCHAR,
location VARCHAR
) |
SELECT race_name FROM table_name_22 WHERE dist__miles_ = "4" AND runner_up = "not known" | Which race had a distance of 4 miles where the runner-up was not known? | CREATE TABLE table_name_22 (race_name VARCHAR, dist__miles_ VARCHAR, runner_up VARCHAR) |
SELECT COUNT(car_s_) FROM table_2182170_1 WHERE listed_owner_s_ = "Gregg Mixon" | How many cars does Gregg Mixon own? | CREATE TABLE table_2182170_1 (car_s_ VARCHAR, listed_owner_s_ VARCHAR) |
SELECT "Rounds" FROM table_58506 WHERE "Driver" = 'vic elford' AND "Engine" = 'ford cosworth dfv 3.0 v8' | Which rounds did Vic Elford with a Ford cosworth dfv 3.0 v8 engine have? | CREATE TABLE table_58506 (
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
) |
SELECT date FROM table_name_91 WHERE home = "jazz" AND visitor = "bulls" | What date did the Jazz play the Bulls at home? | CREATE TABLE table_name_91 (date VARCHAR, home VARCHAR, visitor VARCHAR) |
SELECT crew_chief FROM table_2182170_1 WHERE listed_owner_s_ = "Wayne Day" | Who is Wayne Day's crew chief? | CREATE TABLE table_2182170_1 (crew_chief VARCHAR, listed_owner_s_ VARCHAR) |
SELECT "Trainer" FROM table_3161 WHERE "Jockey" = 'Luke Nolen' | Who was the trainer when the jockey was Luke Nolen? | CREATE TABLE table_3161 (
"Saddle cloth" real,
"Horse" text,
"Trainer" text,
"Jockey" text,
"Weight (kg)" text,
"Barrier [b ]" real,
"Placing" text
) |
SELECT leading_scorer FROM table_name_30 WHERE date = "february 26" | On February 26, who was the leading scorer? | CREATE TABLE table_name_30 (leading_scorer VARCHAR, date VARCHAR) |
SELECT MIN(_number) FROM table_2182170_1 WHERE driver_s_ = "Geoffrey Bodine" | What number is on the car that Geoffrey Bodine drives? | CREATE TABLE table_2182170_1 (_number INTEGER, driver_s_ VARCHAR) |
SELECT record FROM table_27882867_8 WHERE team = "Philadelphia" | What was the team's record against philadelphia? | CREATE TABLE table_27882867_8 (
record VARCHAR,
team VARCHAR
) |
SELECT record FROM table_name_83 WHERE leading_scorer = "carlos boozer (23)" | What's the record of Carlos Boozer (23) as the leading scorer? | CREATE TABLE table_name_83 (record VARCHAR, leading_scorer VARCHAR) |
SELECT no_in_season FROM table_2182654_3 WHERE no_in_series = 24 | What episode number in the season is episode 24 in the series? | CREATE TABLE table_2182654_3 (no_in_season VARCHAR, no_in_series VARCHAR) |
SELECT (SELECT vitalperiodic.temperature FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-17495') AND NOT patient.unitdischargetime I... | is patient 022-17495's temperature last measured on the first intensive care unit visit greater than the value second to last measured on the first intensive care unit visit? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
me... |
SELECT date FROM table_name_50 WHERE leading_scorer = "carlos boozer (23)" | What date was Carlos Boozer (23) the leading scorer? | CREATE TABLE table_name_50 (date VARCHAR, leading_scorer VARCHAR) |
SELECT COUNT(no_in_season) FROM table_2182654_3 WHERE directed_by = "Jeremy Podeswa" | How many episodes in the season were directed by Jeremy Podeswa? | CREATE TABLE table_2182654_3 (no_in_season VARCHAR, directed_by VARCHAR) |
SELECT "Venue" FROM table_60432 WHERE "Score" = '0β2' | What is the Venue of the Competition with a Score of 0 2? | CREATE TABLE table_60432 (
"Date" text,
"Venue" text,
"Score" text,
"Competition" text,
"Report" text
) |
SELECT leading_scorer FROM table_name_96 WHERE date = "february 9" | Who was the leading scorer on February 9? | CREATE TABLE table_name_96 (leading_scorer VARCHAR, date VARCHAR) |
SELECT title FROM table_2182654_3 WHERE directed_by = "Miguel Arteta" | What is the name of the episode directed by Miguel Arteta? | CREATE TABLE table_2182654_3 (title VARCHAR, directed_by VARCHAR) |
SELECT date FROM table_name_8 WHERE class = "gt" AND race = "monterey sports car grand prix" | On which date was the GT class at Monterey Sports Car Grand Prix? | CREATE TABLE table_name_8 (
date VARCHAR,
class VARCHAR,
race VARCHAR
) |
SELECT date FROM table_name_94 WHERE leading_scorer = "deron williams (29)" AND visitor = "hornets" | While the Hornets were visiting, what date was Deron Williams (29) the leading scorer? | CREATE TABLE table_name_94 (date VARCHAR, leading_scorer VARCHAR, visitor VARCHAR) |
SELECT COUNT(no_in_series) FROM table_2182654_3 WHERE directed_by = "Alan Taylor" | How many episodes in the series were directed by Alan Taylor? | CREATE TABLE table_2182654_3 (no_in_series VARCHAR, directed_by VARCHAR) |
SELECT "Aircraft Type" FROM table_30480 WHERE "Geschwader Base" = 'Furstenau/Vorden' | Name the aircraft type for furstenau/vorden | CREATE TABLE table_30480 (
"Parent unit" text,
"Geschwader Base" text,
"Unit (Gruppe/Staffel)" text,
"Aircraft Type" text,
"Commanding Officer" text
) |
SELECT ships_in_class FROM table_name_52 WHERE class = "kuha class" | Tell me the ships in classs for kuha class | CREATE TABLE table_name_52 (ships_in_class VARCHAR, class VARCHAR) |
SELECT COUNT(team_s_) FROM table_2182562_2 WHERE avg_start = "12.9" | How many different teams had an average start of 12.9? | CREATE TABLE table_2182562_2 (team_s_ VARCHAR, avg_start VARCHAR) |
SELECT position FROM table_name_64 WHERE venue = "debrecen, hungary" | What Position is listed against a Venue of Debrecen, Hungary | CREATE TABLE table_name_64 (
position VARCHAR,
venue VARCHAR
) |
SELECT COUNT(grid) FROM table_name_20 WHERE constructor = "talbot-lago - talbot" AND laps < 83 AND driver = "johnny claes" | How many grids have a Constructor of talbot-lago - talbot, a Laps under 83, and a driver of johnny claes? | CREATE TABLE table_name_20 (grid VARCHAR, driver VARCHAR, constructor VARCHAR, laps VARCHAR) |
SELECT winnings FROM table_2182562_2 WHERE starts = 15 | How high was the amount of winnings (in $) in the year with 15 starts? | CREATE TABLE table_2182562_2 (winnings VARCHAR, starts VARCHAR) |
SELECT music FROM table_name_23 WHERE choreographer_s_ = "sabina dalfjΓ€ll" | What is the music for choreographer sabina dalfj ll? | CREATE TABLE table_name_23 (
music VARCHAR,
choreographer_s_ VARCHAR
) |
SELECT MAX(crowd) FROM table_name_86 WHERE away_team = "geelong" | When the away team is Geelong, what is the highest crowd count? | CREATE TABLE table_name_86 (crowd INTEGER, away_team VARCHAR) |
SELECT COUNT(winnings) FROM table_2182562_2 WHERE avg_finish = "17.4" | How many different amounts of winnings were there for the year when the team had an average finish of 17.4? | CREATE TABLE table_2182562_2 (winnings VARCHAR, avg_finish VARCHAR) |
SELECT "party affiliation" FROM table_204_54 WHERE "name of m.l.a." = 'v. vaithilingam' | was v. vaithilingam a member of the indian national congress or the janata party ? | CREATE TABLE table_204_54 (
id number,
"pondicherry assembly" text,
"duration" text,
"name of m.l.a." text,
"party affiliation" text,
"election year" number
) |
SELECT SUM(crowd) FROM table_name_23 WHERE venue = "princes park" | What is the total crowd count for the venue Princes Park? | CREATE TABLE table_name_23 (crowd INTEGER, venue VARCHAR) |
SELECT MIN(top_5) FROM table_2182562_2 WHERE avg_finish = "8.2" | What was the top 5 in the year with an average finish of 8.2? | CREATE TABLE table_2182562_2 (top_5 INTEGER, avg_finish VARCHAR) |
SELECT "Circuit" FROM table_4554 WHERE "Winning driver" = 'rupert keegan' AND "Round" = '8' | What circuit did Rupert Keegan win in round 8? | CREATE TABLE table_4554 (
"Round" real,
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning car" text
) |
SELECT home_port FROM table_name_62 WHERE pennant = "m40" | What is the home port of m40? | CREATE TABLE table_name_62 (home_port VARCHAR, pennant VARCHAR) |
SELECT position FROM table_2182562_2 WHERE avg_finish = "21.5" | What was the position of the team with an average finish of 21.5? | CREATE TABLE table_2182562_2 (position VARCHAR, avg_finish VARCHAR) |
SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'san francisco' AND location.street_name = 'buchanan' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5 | where is a arabic restaurant on buchanan in san francisco ? | CREATE TABLE geographic (
city_name varchar,
county varchar,
region varchar
)
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rating "decimal
)
CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_n... |
SELECT navy FROM table_name_84 WHERE home_port = "portsmouth" AND commissioned > 1983 AND name = "middleton" | What is the navy for middleton with a home port of portsmouth after 1983? | CREATE TABLE table_name_84 (navy VARCHAR, name VARCHAR, home_port VARCHAR, commissioned VARCHAR) |
SELECT COUNT(year) FROM table_2182562_1 WHERE position = "97th" | How many years was the position 97th? | CREATE TABLE table_2182562_1 (year VARCHAR, position VARCHAR) |
SELECT "Winner" FROM table_45912 WHERE "Winter Olympics" = '1968' | Which Winner has a Winter Olympics of 1968? | CREATE TABLE table_45912 (
"Winner" text,
"Country" text,
"Winter Olympics" text,
"FIS Nordic World Ski Championships" text,
"Holmenkollen" text
) |
SELECT date_of_death FROM table_name_4 WHERE name = "charles iii" | When did Charles III die? | CREATE TABLE table_name_4 (date_of_death VARCHAR, name VARCHAR) |
SELECT COUNT(wins) FROM table_2182562_1 WHERE avg_start = "29.0" | How many wins when the average start is 29.0? | CREATE TABLE table_2182562_1 (wins VARCHAR, avg_start VARCHAR) |
SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-53416')) AND treatment.treatmentname = 'bronchoscopy' | has patient 030-53416 been treated with a bronchoscopy? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medi... |
SELECT fastest_lap FROM table_name_76 WHERE winning_driver = "giuseppe farina" | What is the fastest lap of the race where Giuseppe Farina was the winning driver? | CREATE TABLE table_name_76 (fastest_lap VARCHAR, winning_driver VARCHAR) |
SELECT avg_finish FROM table_2182562_1 WHERE winnings = "$71,200" | What is the average finish when winnings equals $71,200? | CREATE TABLE table_2182562_1 (avg_finish VARCHAR, winnings VARCHAR) |
SELECT "Resolution" FROM table_79813 WHERE "Dish" = '5270' | Name the resolution for dish of 5270 | CREATE TABLE table_79813 (
"Dish" text,
"Callsign" text,
"Network" text,
"Resolution" text,
"City of License" text,
"Official Website" text
) |
SELECT report FROM table_name_92 WHERE constructor = "ferrari" AND circuit = "monza" | What is the report status of the race with Ferrari as the constructor and a monza circuit? | CREATE TABLE table_name_92 (report VARCHAR, constructor VARCHAR, circuit VARCHAR) |
SELECT year FROM table_2182562_1 WHERE winnings = "$281,945" | What year did the winnings equal $281,945? | CREATE TABLE table_2182562_1 (year VARCHAR, winnings VARCHAR) |
SELECT AVG(crowd) FROM table_name_22 WHERE away_team = "north melbourne" | What is the average crowd size for games with north melbourne as the away side? | CREATE TABLE table_name_22 (
crowd INTEGER,
away_team VARCHAR
) |
SELECT constructor FROM table_name_26 WHERE fastest_lap = "juan manuel fangio" AND winning_driver = "giuseppe farina" | What is the constructor of the race with Juan Manuel Fangio as the fastest lap and Giuseppe Farina as the winning driver? | CREATE TABLE table_name_26 (constructor VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR) |
SELECT top_5 FROM table_2182562_1 WHERE avg_finish = "40.3" | What are the top 5 average finishes equalling 40.3? | CREATE TABLE table_2182562_1 (top_5 VARCHAR, avg_finish VARCHAR) |
SELECT COUNT(*) > 0 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'albumin') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14467) AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME()... | did patient 14467 have a albumin laboratory test in 08/this year? | CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
... |
SELECT winning_driver FROM table_name_21 WHERE fastest_lap = "giuseppe farina" AND race = "british grand prix" | Who was the winning driver of the British Grand Prix where Giuseppe Farina had the fastest lap? | CREATE TABLE table_name_21 (winning_driver VARCHAR, fastest_lap VARCHAR, race VARCHAR) |
SELECT written_by FROM table_21831229_3 WHERE no_in_series = 31 | Who wrote episode 31 in the series? | CREATE TABLE table_21831229_3 (written_by VARCHAR, no_in_series VARCHAR) |
SELECT "Winning score" FROM table_5494 WHERE "Tournament" = 'walt disney world/oldsmobile classic' | Which Winning score has a Tournament of walt disney world/oldsmobile classic? | CREATE TABLE table_5494 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text
) |
SELECT race FROM table_name_99 WHERE tyre = "p" AND winning_driver = "juan manuel fangio" | What is the race that had a tyre of p and Juan Manuel Fangio as the winning driver? | CREATE TABLE table_name_99 (race VARCHAR, tyre VARCHAR, winning_driver VARCHAR) |
SELECT original_us_air_date FROM table_21831229_3 WHERE prod_code = 213 | What was the date that the episode with a production code of 213 was originally aired? | CREATE TABLE table_21831229_3 (original_us_air_date VARCHAR, prod_code VARCHAR) |
SELECT "player" FROM table_203_499 WHERE "place" = (SELECT "place" FROM table_203_499 WHERE "player" = 'seve ballesteros') + 1 | who came next after seve ballesteros ? | CREATE TABLE table_203_499 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number,
"money ($)" number
) |
SELECT SUM(quantity) FROM table_name_76 WHERE type = "2-4-2t" | What is the Quantity of Type 2-4-2t? | CREATE TABLE table_name_76 (quantity INTEGER, type VARCHAR) |
SELECT opponents FROM table_2186447_1 WHERE score = "5β7, 6β7 (4β7)" | Who was playing when the score was 5β7, 6β7 (4β7)? | CREATE TABLE table_2186447_1 (opponents VARCHAR, score VARCHAR) |
SELECT final FROM table_name_1 WHERE lane = 4 | What were the final time for the swimmer on lane 4? | CREATE TABLE table_name_1 (
final VARCHAR,
lane VARCHAR
) |
SELECT SUM(quantity) FROM table_name_71 WHERE date = "1900" | What was the Quantity on Date 1900? | CREATE TABLE table_name_71 (quantity INTEGER, date VARCHAR) |
SELECT opponents FROM table_2186447_1 WHERE score = "5β7, 5β7" | Who was playing when the score was 5β7, 5β7? | CREATE TABLE table_2186447_1 (opponents VARCHAR, score VARCHAR) |
SELECT "Venue" FROM table_35302 WHERE "Competition" = 'friendly match' | Which venue is the friendly match in? | CREATE TABLE table_35302 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) |
SELECT COUNT(quantity) FROM table_name_59 WHERE type = "2-4-2t" | What is the Quantity of type 2-4-2t? | CREATE TABLE table_name_59 (quantity VARCHAR, type VARCHAR) |
SELECT COUNT(partner) FROM table_2186447_1 WHERE score = "7β6 (7β4) , 6β3" | How many partners were there when the score was 7β6 (7β4) , 6β3? | CREATE TABLE table_2186447_1 (partner VARCHAR, score VARCHAR) |
SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.dod_year < "2168.0" | calculate the minimum days for which patients who died before 2168 stayed in hospital. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... |
SELECT MIN(grid) FROM table_name_70 WHERE time_retired = "engine" AND qual < 138.75 | What is the smallest grid with a Time/Retired of engine, and a qual of less than 138.75? | CREATE TABLE table_name_70 (grid INTEGER, time_retired VARCHAR, qual VARCHAR) |
SELECT record FROM table_21839208_4 WHERE opponent = "Stampeders" | What was their record when they played the stampeders? | CREATE TABLE table_21839208_4 (record VARCHAR, opponent VARCHAR) |
SELECT COUNT("Incumbent") FROM table_18409 WHERE "District" = 'Tennessee 5' | how many incumbent with district being tennessee 5 | CREATE TABLE table_18409 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) |
SELECT laps FROM table_name_40 WHERE rank > 13 AND time_retired = "accident" AND qual < 136.98 | What laps have a rank larger than 13 and the Time/Retired is accident, and a Qual smaller than 136.98? | CREATE TABLE table_name_40 (laps VARCHAR, qual VARCHAR, rank VARCHAR, time_retired VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.