answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT common_name FROM table_15417439_1 WHERE genus_species = "Rattus norvegicus" | What's the animals name when the genus/species is rattus norvegicus? | CREATE TABLE table_15417439_1 (common_name VARCHAR, genus_species VARCHAR) |
SELECT COUNT(country) FROM table_15887683_16 WHERE content = "arte" | How many countries have content of arte? | CREATE TABLE table_15887683_16 (
country VARCHAR,
content VARCHAR
) |
SELECT pole_position FROM table_name_86 WHERE grand_prix = "french grand prix" | Who had the pole at the French Grand Prix? | CREATE TABLE table_name_86 (pole_position VARCHAR, grand_prix VARCHAR) |
SELECT length FROM table_15417439_1 WHERE genus_species = "Arabidopsis thaliana" | For the genus/species arabidopsis thaliana, what are the lengths? | CREATE TABLE table_15417439_1 (length VARCHAR, genus_species VARCHAR) |
SELECT MIN(market_value__billion_) AS $_ FROM table_name_44 WHERE assets__billion_$_ > 276.81 AND company = "toyota" AND profits__billion_$_ > 17.21 | Name the lowest Market Value (billion $) which has Assets (billion $) larger than 276.81, and a Company of toyota, and Profits (billion $) larger than 17.21? | CREATE TABLE table_name_44 (
market_value__billion_ INTEGER,
profits__billion_$_ VARCHAR,
assets__billion_$_ VARCHAR,
company VARCHAR
) |
SELECT constructor FROM table_name_97 WHERE grand_prix = "canadian grand prix" | Who constructed the car that won the Canadian Grand Prix? | CREATE TABLE table_name_97 (constructor VARCHAR, grand_prix VARCHAR) |
SELECT COUNT(original_air_date) FROM table_15430813_1 WHERE no_in_season = 17 | How many original air dates were there for episode 17? | CREATE TABLE table_15430813_1 (original_air_date VARCHAR, no_in_season VARCHAR) |
SELECT discipline FROM table_30073089_2 WHERE fis_points = 1561 | Name the discipline for 1561 fis points | CREATE TABLE table_30073089_2 (
discipline VARCHAR,
fis_points VARCHAR
) |
SELECT fastest_lap FROM table_name_18 WHERE winning_driver = "michael schumacher" | When Michael Schumacher won the race, who had the fastest lap? | CREATE TABLE table_name_18 (fastest_lap VARCHAR, winning_driver VARCHAR) |
SELECT institution FROM table_15438337_1 WHERE country = "London, United Kingdom" | Which company was based in London, United Kingdom? | CREATE TABLE table_15438337_1 (institution VARCHAR, country VARCHAR) |
SELECT DISTINCT department, name, number FROM course WHERE credits = 13 AND department = 'SOC' AND number < 400 + 100 AND number >= 400 | On the SOC 400 -level , which ones offer 13 -credit courses ? | CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
star... |
SELECT school FROM table_name_72 WHERE college = "kentucky" AND height = "6-7" | For the Player playing for the College of Kentucky and a Height of 6-7 what was their corresponding School? | CREATE TABLE table_name_72 (school VARCHAR, college VARCHAR, height VARCHAR) |
SELECT original_air_date FROM table_15431959_1 WHERE written_by = "Peter DeLuise" | What was the original air date of Stargate SG-1 written by Peter Deluise? | CREATE TABLE table_15431959_1 (original_air_date VARCHAR, written_by VARCHAR) |
SELECT SUM(points) FROM table_name_15 WHERE team = "são paulo athletic" AND position > 5 | Which Points has a Team of s o paulo athletic, and a Position larger than 5? | CREATE TABLE table_name_15 (
points INTEGER,
team VARCHAR,
position VARCHAR
) |
SELECT school FROM table_name_40 WHERE player = "terrence jones" | What School did Terrence Jones play for? | CREATE TABLE table_name_40 (school VARCHAR, player VARCHAR) |
SELECT MAX(no_in_season) FROM table_15431959_1 WHERE directed_by = "Peter DeLuise" | How many seasons did Peter Deluise direct Stargate SG-1? | CREATE TABLE table_15431959_1 (no_in_season INTEGER, directed_by VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2144" AND lab.label = "Heparin, LMW" | provide the number of patients whose admission year is less than 2144 and lab test name is heparin, lmw? | 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 demographic (
subject_id text,
hadm_id t... |
SELECT player FROM table_name_42 WHERE height = "6-3" | What Player(s) have a Height of 6-3? | CREATE TABLE table_name_42 (player VARCHAR, height VARCHAR) |
SELECT fifth_district FROM table_15442974_1 WHERE third_district = "William Womer" | Name the fifth district for william womer | CREATE TABLE table_15442974_1 (fifth_district VARCHAR, third_district VARCHAR) |
SELECT score FROM table_name_46 WHERE opponent = "detroit pistons" | What was the score when the opponent was Detroit Pistons? | CREATE TABLE table_name_46 (
score VARCHAR,
opponent VARCHAR
) |
SELECT nba_draft FROM table_name_41 WHERE height = "6-9" AND college = "kentucky" | For the player with a Height of 6-9 and College of Kentucky what was their NBA Draft? | CREATE TABLE table_name_41 (nba_draft VARCHAR, height VARCHAR, college VARCHAR) |
SELECT third_district FROM table_15442974_1 WHERE fifth_district = "Christine Young" | Name the third district for christine young | CREATE TABLE table_15442974_1 (third_district VARCHAR, fifth_district VARCHAR) |
SELECT Founder, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder DESC | For those records from the products and each product's manufacturer, show me about the distribution of founder and the average of revenue , and group by attribute founder in a bar chart, list in descending by the Founder please. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) |
SELECT score FROM table_name_84 WHERE date = "february 9" | What was the score on February 9? | CREATE TABLE table_name_84 (score VARCHAR, date VARCHAR) |
SELECT fourth_district FROM table_15442974_1 WHERE second_district = "Joan Runnels" | Name the fourth district for joan runnels | CREATE TABLE table_15442974_1 (fourth_district VARCHAR, second_district VARCHAR) |
SELECT opponent FROM table_name_59 WHERE week = 14 | Tell me the opponent of week 14 | CREATE TABLE table_name_59 (
opponent VARCHAR,
week VARCHAR
) |
SELECT AVG(points) FROM table_name_73 WHERE team = "arrows racing team" AND year < 1983 | What is the average point total for arrows racing team before 1983? | CREATE TABLE table_name_73 (points INTEGER, team VARCHAR, year VARCHAR) |
SELECT fourth_district FROM table_15442974_1 WHERE first_district = "Beverly Bodem" | Name the fourth district for beverly bodem | CREATE TABLE table_15442974_1 (fourth_district VARCHAR, first_district VARCHAR) |
SELECT MIN(salary), dept_name FROM instructor GROUP BY dept_name HAVING AVG(salary) > (SELECT AVG(salary) FROM instructor) | Find the minimum salary for the departments whose average salary is above the average payment of all instructors. | CREATE TABLE instructor (
dept_name VARCHAR,
salary INTEGER
) |
SELECT team FROM table_name_61 WHERE year > 1990 AND chassis = "jordan 193" | What team has jordan 193 chassis after 1990? | CREATE TABLE table_name_61 (team VARCHAR, year VARCHAR, chassis VARCHAR) |
SELECT COUNT(fifth_district) FROM table_15442974_1 WHERE third_district = "Richard Houskamp" | Name the number for fifth district for richard houskamp | CREATE TABLE table_15442974_1 (fifth_district VARCHAR, third_district VARCHAR) |
SELECT Height, Prominence FROM mountain WHERE Range <> 'Aberdare Range' | What are the correlation between the height and prominence of mountains which do not belong to the range 'Aberdare Range'? Plot the result by a scatter chart. | CREATE TABLE camera_lens (
id int,
brand text,
name text,
focal_length_mm real,
max_aperture real
)
CREATE TABLE photos (
id int,
camera_lens_id int,
mountain_id int,
color text,
name text
)
CREATE TABLE mountain (
id int,
name text,
Height real,
Prominence real... |
SELECT points FROM table_name_23 WHERE year > 1985 AND engine = "cosworth v8" | How many points for the cosworth v8 engine after 1985? | CREATE TABLE table_name_23 (points VARCHAR, year VARCHAR, engine VARCHAR) |
SELECT fifth_district FROM table_15442974_1 WHERE fourth_district = "Steve Rudoni" | Name the fifth district for steve rudoni | CREATE TABLE table_15442974_1 (fifth_district VARCHAR, fourth_district VARCHAR) |
SELECT "Place & date" FROM table_25637 WHERE "Area damaged" = 'Apartments area' | What was the place and date that the Apartments area was damaged? | CREATE TABLE table_25637 (
"No." real,
"Place & date" text,
"Target" text,
"Area damaged" text,
"Cause of damage" text,
"Intercepted by Patriot" text
) |
SELECT constructor FROM table_name_6 WHERE grid < 2 | What is the constructor for the driver with grid less than 2? | CREATE TABLE table_name_6 (constructor VARCHAR, grid INTEGER) |
SELECT locale FROM table_1543845_63 WHERE stolen_ends = 12 AND shot_pct = "77%" | What was the location when the stolen ends is 12 and shot pct is 77%? | CREATE TABLE table_1543845_63 (locale VARCHAR, stolen_ends VARCHAR, shot_pct VARCHAR) |
SELECT "Player" FROM table_27572 WHERE "Blocks" = '9' | Which player had 9 blocks? | CREATE TABLE table_27572 (
"Player" text,
"Games Played" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
) |
SELECT position FROM table_name_12 WHERE player = "aaron williams" | What Position did Aaron Williams play? | CREATE TABLE table_name_12 (position VARCHAR, player VARCHAR) |
SELECT stolen_ends FROM table_1543845_63 WHERE locale = Sweden | How many stolen ends were there when the locale was Sweden? | CREATE TABLE table_1543845_63 (stolen_ends VARCHAR, locale VARCHAR, Sweden VARCHAR) |
SELECT time FROM table_name_62 WHERE meet = "duel in the pool" AND date = "19 december 2009" | What is Time, when Meet is 'Duel in the Pool', and when Date is '19 December 2009'? | CREATE TABLE table_name_62 (
time VARCHAR,
meet VARCHAR,
date VARCHAR
) |
SELECT years_for_jazz FROM table_name_43 WHERE position = "guard" AND school_club_team = "notre dame" | At Position of guard, from the School/Club Team Notre Dame, how many Years for Jazz did that person play? | CREATE TABLE table_name_43 (years_for_jazz VARCHAR, position VARCHAR, school_club_team VARCHAR) |
SELECT school_club_team FROM table_15463188_17 WHERE season = "2012" AND acquisition_via = "Trade" | What was the school/club team whose season was in 2012 and were acquired via trade? | CREATE TABLE table_15463188_17 (school_club_team VARCHAR, season VARCHAR, acquisition_via VARCHAR) |
SELECT to_par FROM table_name_82 WHERE place = "8" | what is the to par when the place is 8? | CREATE TABLE table_name_82 (
to_par VARCHAR,
place VARCHAR
) |
SELECT school_club_team FROM table_name_34 WHERE player = "andre wakefield" | Which School/Club Team did Andre Wakefield play for? | CREATE TABLE table_name_34 (school_club_team VARCHAR, player VARCHAR) |
SELECT school_club_team FROM table_15463188_17 WHERE name = "Mark Sanford" | Which school/club team has a player named Mark Sanford? | CREATE TABLE table_15463188_17 (school_club_team VARCHAR, name VARCHAR) |
SELECT "Points against" FROM table_18092 WHERE "Points" = '31' | In the 2008/2009 season one team had a season total points of 31, for that team how many total points were scored against them? | CREATE TABLE table_18092 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) |
SELECT nationality FROM table_name_59 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_name_59 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR) |
SELECT COUNT(number) FROM table_15463188_17 WHERE school_club_team = "Manuel Luis Quezon" | How many school/club teams have a player named Manuel Luis Quezon? | CREATE TABLE table_15463188_17 (number VARCHAR, school_club_team VARCHAR) |
SELECT "Player" FROM table_10260 WHERE "School/Club Team/Country" = 'illinois' | Which player plays for Illinois? | CREATE TABLE table_10260 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
) |
SELECT school_club_team FROM table_name_83 WHERE player = "howard wood" | What School/Club Team is Player Howard Wood from? | CREATE TABLE table_name_83 (school_club_team VARCHAR, player VARCHAR) |
SELECT COUNT(name) FROM table_15463188_17 WHERE school_club_team = "Washington" | How many players are listed for the school/club team Washington? | CREATE TABLE table_15463188_17 (name VARCHAR, school_club_team VARCHAR) |
SELECT home_captain FROM table_name_42 WHERE venue = "bourda" | Which Home Captain has Venue of Bourda? | CREATE TABLE table_name_42 (
home_captain VARCHAR,
venue VARCHAR
) |
SELECT school_club_team FROM table_name_5 WHERE player = "aaron williams" | What School/Club Team is Player Aaron Williams from? | CREATE TABLE table_name_5 (school_club_team VARCHAR, player VARCHAR) |
SELECT COUNT(position) FROM table_15463188_17 WHERE season = "2009" | How many players with a position are listed for the 2009 season? | CREATE TABLE table_15463188_17 (position VARCHAR, season VARCHAR) |
SELECT score FROM table_name_21 WHERE away_team = "brighton & hove albion" | What was the score when the away team was brighton & hove albion? | CREATE TABLE table_name_21 (
score VARCHAR,
away_team VARCHAR
) |
SELECT street_address FROM table_name_9 WHERE floors = "5" | What is the street address of the building with 5 floors? | CREATE TABLE table_name_9 (street_address VARCHAR, floors VARCHAR) |
SELECT school_club_team FROM table_15463188_1 WHERE position = "Guard" | Name the school/club for guard | CREATE TABLE table_15463188_1 (school_club_team VARCHAR, position VARCHAR) |
SELECT "Result" FROM table_37699 WHERE "Incumbent" = 'william vandever' | What are incumbent William Vandever's results? | CREATE TABLE table_37699 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text
) |
SELECT street_address FROM table_name_94 WHERE floors = "40" | What is the street address of the building with 40 floors? | CREATE TABLE table_name_94 (street_address VARCHAR, floors VARCHAR) |
SELECT position FROM table_15463188_1 WHERE name = "judy-ann ramirez" | Name the position for judy-ann ramirez | CREATE TABLE table_15463188_1 (position VARCHAR, name VARCHAR) |
SELECT "Time in office" FROM table_50090 WHERE "Branch" = 'u.s. navy' | What time in office does the U.S. Navy have? | CREATE TABLE table_50090 (
"Name" text,
"Branch" text,
"Term began" text,
"Term ended" text,
"Time in office" text
) |
SELECT years_as_tallest FROM table_name_53 WHERE floors = "44" | What were the years the building with 44 floors was tallest? | CREATE TABLE table_name_53 (years_as_tallest VARCHAR, floors VARCHAR) |
SELECT losing_bonus FROM table_15467476_3 WHERE points_difference = "-99" | What is the losing bonus for the team with a point difference of -99? | CREATE TABLE table_15467476_3 (losing_bonus VARCHAR, points_difference VARCHAR) |
SELECT AVG(bronze) FROM table_name_62 WHERE silver > "2" AND rank = "2" AND gold > 2 | What is the average Bronze when silver is more than 2, and rank is 2, and gold more than 2 | CREATE TABLE table_name_62 (
bronze INTEGER,
gold VARCHAR,
silver VARCHAR,
rank VARCHAR
) |
SELECT street_address FROM table_name_20 WHERE name = "oliver building" | What is the street address of Oliver Building? | CREATE TABLE table_name_20 (street_address VARCHAR, name VARCHAR) |
SELECT played FROM table_15467476_3 WHERE points_for = "277" | How many games played for teams with 277 points? | CREATE TABLE table_15467476_3 (played VARCHAR, points_for VARCHAR) |
SELECT MAX(rank) FROM table_name_89 WHERE time = 53.33 | With a time of 53.33, who ranked the highest? | CREATE TABLE table_name_89 (
rank INTEGER,
time VARCHAR
) |
SELECT winning_party_2003 FROM table_name_62 WHERE constituency = "aberdeen north" | Can you tell me the Winning party of 2003 that has the Constituency of aberdeen north? | CREATE TABLE table_name_62 (winning_party_2003 VARCHAR, constituency VARCHAR) |
SELECT won FROM table_15467476_3 WHERE tries_against = "49" | How many games won for teams with 49 tries against? | CREATE TABLE table_15467476_3 (won VARCHAR, tries_against VARCHAR) |
SELECT "Opponent" FROM table_5882 WHERE "Record" = '23-5' | Who was the opponent that led to a record of 23-5? | CREATE TABLE table_5882 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Location" text
) |
SELECT MIN(rank) FROM table_name_64 WHERE constituency = "strathkelvin and bearsden" | Can you tell me the lowest Rank that has the Constituency of strathkelvin and bearsden? | CREATE TABLE table_name_64 (rank INTEGER, constituency VARCHAR) |
SELECT COUNT(points_difference) FROM table_15467476_3 WHERE tries_against = "62" | How many teams have 62 tries against? | CREATE TABLE table_15467476_3 (points_difference VARCHAR, tries_against VARCHAR) |
SELECT written_by FROM table_18424435_3 WHERE canadian_viewers__million_ = "1.575" | Who wrote the episodes watched by 1.575 million people in Canada? | CREATE TABLE table_18424435_3 (
written_by VARCHAR,
canadian_viewers__million_ VARCHAR
) |
SELECT SUM(swing_to_gain) FROM table_name_48 WHERE constituency = "caithness, sutherland and easter ross" | Can you tell me the sum of Swing to gain that has Constituency of caithness, sutherland and easter ross? | CREATE TABLE table_name_48 (swing_to_gain INTEGER, constituency VARCHAR) |
SELECT tries_for FROM table_15467476_3 WHERE club = "Cambrian Welfare RFC" | How many tries for, for club cambrian welfare rfc? | CREATE TABLE table_15467476_3 (tries_for VARCHAR, club VARCHAR) |
SELECT DISTINCT airline.airline_code FROM airline, airport_service, city, flight WHERE city.city_code = airport_service.city_code AND city.city_name = 'ATLANTA' AND flight.airline_code = airline.airline_code AND flight.from_airport = airport_service.airport_code | what airlines flies out of ATLANTA | CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE flight (
aircraft_code_sequence... |
SELECT time_retired FROM table_name_59 WHERE laps = 75 | What's the Time/Retired of Laps of 75? | CREATE TABLE table_name_59 (time_retired VARCHAR, laps VARCHAR) |
SELECT COUNT(points_difference) FROM table_15467476_3 WHERE tries_for = "21" | How many teams have 21 tries for? | CREATE TABLE table_15467476_3 (points_difference VARCHAR, tries_for VARCHAR) |
SELECT T1.region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id | How many storms occured in each region? | CREATE TABLE storm (
storm_id number,
name text,
dates_active text,
max_speed number,
damage_millions_usd number,
number_deaths number
)
CREATE TABLE region (
region_id number,
region_code text,
region_name text
)
CREATE TABLE affected_region (
region_id number,
storm_id nu... |
SELECT driver FROM table_name_99 WHERE laps > 78 AND time_retired = "+ 1:09.4" | Which Driver has Laps larger than 78, and a Time/Retired of + 1:09.4? | CREATE TABLE table_name_99 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR) |
SELECT COUNT(chassis) FROM table_15491596_1 WHERE no = 34 | How many chassis used number 34? | CREATE TABLE table_15491596_1 (chassis VARCHAR, no VARCHAR) |
SELECT "Date" FROM table_23957 WHERE "Opponent" = 'West Virginia' | When did they play against West Virginia? | CREATE TABLE table_23957 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Orangemen points" real,
"Opponents" real,
"Record" text
) |
SELECT COUNT(laps) FROM table_name_72 WHERE grid = 4 | Hows many Laps are in a Grid of 4? | CREATE TABLE table_name_72 (laps VARCHAR, grid VARCHAR) |
SELECT constructor FROM table_15491596_1 WHERE no = 22 | Who was the constructor of car 22? | CREATE TABLE table_15491596_1 (constructor VARCHAR, no VARCHAR) |
SELECT "Team Name" FROM table_24713 WHERE "Tumbling" = '44.5' | Which team names have 44.5 for tumbling? | CREATE TABLE table_24713 (
"Rank" real,
"Team Name" text,
"Basic Elements" text,
"Tumbling" text,
"Stunts" text,
"Tosses/Pyramids" text,
"Deductions" text,
"Total" text
) |
SELECT venue FROM table_name_42 WHERE away_team = "collingwood" | What venue did the away team Collingwood play at? | CREATE TABLE table_name_42 (venue VARCHAR, away_team VARCHAR) |
SELECT COUNT(engine) FROM table_15491596_1 WHERE no = 48 | How many cars used number 48? | CREATE TABLE table_15491596_1 (engine VARCHAR, no VARCHAR) |
SELECT original_nonequity_tour_cast FROM table_name_49 WHERE original_broadway_cast = "kevin chamberlin" | What was the original nonequity tour when the original broadway was Kevin Chamberlin? | CREATE TABLE table_name_49 (
original_nonequity_tour_cast VARCHAR,
original_broadway_cast VARCHAR
) |
SELECT away_team AS score FROM table_name_33 WHERE venue = "kardinia park" | What is the score of the away team that played at Kardinia Park? | CREATE TABLE table_name_33 (away_team VARCHAR, venue VARCHAR) |
SELECT driver FROM table_15491596_1 WHERE no = 44 | Who drove car 44? | CREATE TABLE table_15491596_1 (driver VARCHAR, no VARCHAR) |
SELECT constructor FROM table_name_42 WHERE free_practice_driver_s_ = "n/a" AND chassis = "005" AND driver = "takuma sato" | who is the constructor when the free practice driver(s) is n/a, the chassis is 005 and the driver is takuma sato? | CREATE TABLE table_name_42 (
constructor VARCHAR,
driver VARCHAR,
free_practice_driver_s_ VARCHAR,
chassis VARCHAR
) |
SELECT away_team FROM table_name_2 WHERE venue = "kardinia park" | What is the name of the away team that played at Kardinia Park? | CREATE TABLE table_name_2 (away_team VARCHAR, venue VARCHAR) |
SELECT COUNT(year) FROM table_1547951_3 WHERE outcome = "Runner-up" AND championship = "US Open" | Name the total number of years where runner-up and championship is us open | CREATE TABLE table_1547951_3 (year VARCHAR, outcome VARCHAR, championship 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 = "Polycythemia vera" AND prescriptions.drug_type = "MAIN" | how many patients with polycythemia were treated with main drug? | 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 demographic (
subject_id text,
hadm_id t... |
SELECT attendance FROM table_name_40 WHERE week > 5 AND opponent = "bye" | What is the attendance in the bye week after week 5? | CREATE TABLE table_name_40 (attendance VARCHAR, week VARCHAR, opponent VARCHAR) |
SELECT surface FROM table_1547951_3 WHERE outcome = "Runner-up" AND championship = "US Open" | Name the surfaace where outcome is runner-up and championship is us open | CREATE TABLE table_1547951_3 (surface VARCHAR, outcome VARCHAR, championship VARCHAR) |
SELECT (SELECT chartevents.valuenum 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 = 28443) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_i... | is the level of arterial bp [diastolic] in patient 28443 last measured on the current intensive care unit visit greater than the value second to last measured on the current intensive care unit visit? | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
... |
SELECT location FROM table_name_1 WHERE time = "1:59:12" | What location had 1:59:12 in time? | CREATE TABLE table_name_1 (location VARCHAR, time VARCHAR) |
SELECT partner FROM table_1547951_3 WHERE opponents = "Mark Woodforde Martina Navratilova" | Name the partner for mark woodforde martina navratilova | CREATE TABLE table_1547951_3 (partner VARCHAR, opponents VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.