answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT warship FROM table_23614702_1 WHERE horse__power = 1500 | What warship has horse-power of 1500? | CREATE TABLE table_23614702_1 (warship VARCHAR, horse__power VARCHAR) |
SELECT COUNT(highest) FROM table_237757_10 WHERE low_team = "Baltimore Rays" | How many entries for highest when the low team was baltimore rays? | CREATE TABLE table_237757_10 (highest VARCHAR, low_team VARCHAR) |
SELECT MAX("Average") FROM table_78961 WHERE "Goals" = '34' AND "Matches" < '37' | What is the highest Average, when Goals is '34', and when Matches is less than 37? | CREATE TABLE table_78961 (
"Goalkeeper" text,
"Goals" real,
"Matches" real,
"Average" real,
"Team" text
) |
SELECT MIN(tons___lton__) FROM table_23614702_1 WHERE warship = "Independencia" | How much does the Independencia weight? | CREATE TABLE table_23614702_1 (tons___lton__ INTEGER, warship VARCHAR) |
SELECT season FROM table_237757_10 WHERE low_team = "Chicago Sting" | What was the season when the low team is chicago sting? | CREATE TABLE table_237757_10 (season VARCHAR, low_team VARCHAR) |
SELECT COUNT("Silver") FROM table_40902 WHERE "Rank" > '4' AND "Bronze" < '1' | What is the number of silver where the rank is higher than 4 and bronze is smaller than 1? | CREATE TABLE table_40902 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT COUNT(built_year) FROM table_23614702_1 WHERE tons___lton__ = 1130 | In how many different years was the warship that weights 1130 tons built? | CREATE TABLE table_23614702_1 (built_year VARCHAR, tons___lton__ VARCHAR) |
SELECT rank FROM table_23759976_1 WHERE building_[a_] = "Stock Exchange Plaza" | What's the Stock Exchange Plaza's rank? | CREATE TABLE table_23759976_1 (rank VARCHAR, building_ VARCHAR, a_ VARCHAR) |
SELECT team FROM table_27713030_11 WHERE score = "W 94–88 (OT)" | Who was the opponent for the game with a score of w 94 88 (ot)? | CREATE TABLE table_27713030_11 (
team VARCHAR,
score VARCHAR
) |
SELECT _percentage_20_39 FROM table_23606500_4 WHERE _percentage_60_74 = "10,46%" | What is every value for % 20-39 if % 60-74 is 10,46%? | CREATE TABLE table_23606500_4 (_percentage_20_39 VARCHAR, _percentage_60_74 VARCHAR) |
SELECT height__m_ FROM table_23759976_1 WHERE floors = 36 | How tall is the building with 36 floors? | CREATE TABLE table_23759976_1 (height__m_ VARCHAR, floors VARCHAR) |
SELECT high_rebounds FROM table_name_68 WHERE team = "charlotte" | What is the High rebounds with a Team that is charlotte? | CREATE TABLE table_name_68 (
high_rebounds VARCHAR,
team VARCHAR
) |
SELECT _percentage_40_59 FROM table_23606500_4 WHERE _percentage_60_74 = "12,42%" | What is every value for % 40-59 if % 60-74 is 12,42%? | CREATE TABLE table_23606500_4 (_percentage_40_59 VARCHAR, _percentage_60_74 VARCHAR) |
SELECT COUNT(floors) FROM table_23759976_1 WHERE building_[a_] = "Chongqing Poly Tower" | How many different numbers of floors are there for the Chongqing Poly Tower? | CREATE TABLE table_23759976_1 (floors VARCHAR, building_ VARCHAR, a_ VARCHAR) |
SELECT "City of license /Market" FROM table_18791 WHERE "Channel TV ( DT )" = '25 (31)' | What city has channel tv (dt) 25 (31)? | CREATE TABLE table_18791 (
"City of license /Market" text,
"Station" text,
"Channel TV ( DT )" text,
"Owned since" text,
"Primary affiliation" text
) |
SELECT _percentage_20_39 FROM table_23606500_4 WHERE _percentage_0_19 = "21,11%" | What is every value for % 20-39 if % 0-19 is 21,11%? | CREATE TABLE table_23606500_4 (_percentage_20_39 VARCHAR, _percentage_0_19 VARCHAR) |
SELECT COUNT(rank) FROM table_23759976_1 WHERE building_[a_] = "Cathay Pacific Plaza 2" | How many different ranks does the Cathay Pacific Plaza 2 have? | CREATE TABLE table_23759976_1 (rank VARCHAR, building_ VARCHAR, a_ VARCHAR) |
SELECT AVG(CAST(ROUND(Reputation, -FLOOR(LOG(10, Reputation))) AS INT)) AS UserReputation, SUM(CASE WHEN ClosedDate IS NULL THEN 1 ELSE 0 END) / CAST(COUNT(Posts.Id) AS FLOAT) AS "PercentOpen" FROM Posts INNER JOIN Users ON (Users.Id = Posts.OwnerUserId) WHERE PostTypeId = 1 GROUP BY ROUND(Reputation, -FLOOR(LOG(10, Re... | Closed Status of All Questions by Reputation (including high-rep users). A graph what percentage of questions are closed, grouped by the reputation of the users who asked them. This graph includes high-rep users. For a zoomed in view of lower rep users (more interesting IMO) see https://data.stackexchange.com/stackover... | CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationD... |
SELECT _percentage_40_59 FROM table_23606500_4 WHERE _percentage_60_74 = "12,40%" | What is every value for % 40-59 if % 60-74 is 12,40%? | CREATE TABLE table_23606500_4 (_percentage_40_59 VARCHAR, _percentage_60_74 VARCHAR) |
SELECT production_code FROM table_23799417_1 WHERE directed_by = "Matt Shakman" | What is the production code directed by Matt Shakman? | CREATE TABLE table_23799417_1 (production_code VARCHAR, directed_by VARCHAR) |
SELECT COUNT(*) FROM employee | Find the total number of employees. | CREATE TABLE employee (
Id VARCHAR
) |
SELECT horse__power FROM table_23614702_2 WHERE warship = "Covadonga" | How man horse power did the ship covadonga have? | CREATE TABLE table_23614702_2 (horse__power VARCHAR, warship VARCHAR) |
SELECT COUNT(no_in_series) FROM table_23799417_1 WHERE production_code = 202 | How many series had a production code of 202? | CREATE TABLE table_23799417_1 (no_in_series VARCHAR, production_code VARCHAR) |
SELECT game FROM table_name_73 WHERE road_team = "boston" AND date = "april 23" | What game number was played on April 23, with Boston as the road team? | CREATE TABLE table_name_73 (
game VARCHAR,
road_team VARCHAR,
date VARCHAR
) |
SELECT main_artillery FROM table_23614702_2 WHERE tons___lton__ = "1,051" | What is the primary artillery for the 1,051 ships? | CREATE TABLE table_23614702_2 (main_artillery VARCHAR, tons___lton__ VARCHAR) |
SELECT bleeding_time FROM table_238124_1 WHERE partial_thromboplastin_time = "Prolonged" AND prothrombin_time = "Unaffected" | What was the bleeding time during the prolonged partial thromboplastin time in which the prothrombin time is unaffected? | CREATE TABLE table_238124_1 (bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR) |
SELECT record_low FROM table_26558_1 WHERE precip = "1.71 in." | What was the record lowest temperature with a precipitation of 1.71 in.? | CREATE TABLE table_26558_1 (
record_low VARCHAR,
precip VARCHAR
) |
SELECT speed___knots__ FROM table_23614702_2 WHERE tons___lton__ = "1.150" | List the maximum speed for the 1.150 ton ships? | CREATE TABLE table_23614702_2 (speed___knots__ VARCHAR, tons___lton__ VARCHAR) |
SELECT bleeding_time FROM table_238124_1 WHERE condition = "Glanzmann's thrombasthenia" | What is the bleeding time for glanzmann's thrombasthenia? | CREATE TABLE table_238124_1 (bleeding_time VARCHAR, condition VARCHAR) |
SELECT "Venue" FROM table_52838 WHERE "Home team score" = '10.11 (71)' | In which venue did the home team score 10.11 (71) | CREATE TABLE table_52838 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT warship FROM table_23614702_2 WHERE main_artillery = "1x115-2x70-2x12-pounders" | List the ship with 1x115-2x70-2x12-pounders for primary artillery. | CREATE TABLE table_23614702_2 (warship VARCHAR, main_artillery VARCHAR) |
SELECT platelet_count FROM table_238124_1 WHERE condition = "Congenital afibrinogenemia" | What is the platelet count for congenital afibrinogenemia? | CREATE TABLE table_238124_1 (platelet_count VARCHAR, condition VARCHAR) |
SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '002-35416' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-4 year') | what are the hospitals admission times of patient 002-35416 since 4 years ago? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
a... |
SELECT location FROM table_23612439_2 WHERE date = "October 28" | Which location has the date of October 28? | CREATE TABLE table_23612439_2 (location VARCHAR, date VARCHAR) |
SELECT COUNT(prothrombin_time) FROM table_238124_1 WHERE condition = "Von Willebrand disease" | What is the prothrombin time of von willebrand disease? | CREATE TABLE table_238124_1 (prothrombin_time VARCHAR, condition VARCHAR) |
SELECT country FROM table_name_35 WHERE player = "nick price" | What country is Nick Price from? | CREATE TABLE table_name_35 (
country VARCHAR,
player VARCHAR
) |
SELECT final_score FROM table_23612439_2 WHERE attendance = 22210 | What is the final score when 22210 is the attendance? | CREATE TABLE table_23612439_2 (final_score VARCHAR, attendance VARCHAR) |
SELECT platelet_count FROM table_238124_1 WHERE bleeding_time = "Unaffected" AND prothrombin_time = "Prolonged" | When the bleeding time is unaffected and prothrombin time is prolonged, what are the platelet counts? | CREATE TABLE table_238124_1 (platelet_count VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR) |
SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'pneumothorax') AS t1 GROUP BY t1.uniquepid HAVING MIN(t1.diagnos... | count the number of patients who are dead after being diagnosed with pneumothorax during the same month the last year. | 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 opponent FROM table_23612439_2 WHERE date = "July 22" | Which opponents are on the date July 22? | CREATE TABLE table_23612439_2 (opponent VARCHAR, date VARCHAR) |
SELECT last_match FROM table_23819979_3 WHERE final_place = "Argentina - Estadio José María Minella" | Name the last match for argentina - estadio josé maría minella | CREATE TABLE table_23819979_3 (last_match VARCHAR, final_place VARCHAR) |
SELECT Work_Type, AVG(Years_working) FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_ID = t2.journalist_ID GROUP BY t2.Work_Type | Return me a bar chart to show the average experience working length of journalists working on different role type. | CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type ... |
SELECT opponent FROM table_23612439_2 WHERE date = "September 5" | Which opponents are on the date September 5? | CREATE TABLE table_23612439_2 (opponent VARCHAR, date VARCHAR) |
SELECT final_position FROM table_23819979_3 WHERE competition = "Copa Libertadores" | Name the final position for copa libertadores | CREATE TABLE table_23819979_3 (final_position VARCHAR, competition VARCHAR) |
SELECT "Home team score" FROM table_57257 WHERE "Venue" = 'glenferrie oval' | What is the score for the home team for the venue glenferrie oval? | CREATE TABLE table_57257 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT final_score FROM table_23612439_2 WHERE date = "July 16" | What is the final score when July 16 is the date? | CREATE TABLE table_23612439_2 (final_score VARCHAR, date VARCHAR) |
SELECT final_place FROM table_23819979_3 WHERE last_match = "July 25, 2009" | Name the final place for july 25, 2009 | CREATE TABLE table_23819979_3 (final_place VARCHAR, last_match VARCHAR) |
SELECT "Crowd" FROM table_53093 WHERE "Date" = '26 april 1948' AND "Away team" = 'hawthorn' | What was the attendence of the game on 26 April 1948 and an away team of Hawthorn? | CREATE TABLE table_53093 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT date FROM table_23612439_2 WHERE location = "Taylor Field" | On which date is Taylor Field the location? | CREATE TABLE table_23612439_2 (date VARCHAR, location VARCHAR) |
SELECT epa_rated_combined_fuel_economy FROM table_23840623_4 WHERE vehicle = "Nissan Leaf" | What is the epa rated combined fuel economy for the Nissan Leaf? | CREATE TABLE table_23840623_4 (epa_rated_combined_fuel_economy VARCHAR, vehicle VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= "2131.0" AND lab.itemid = "51248" | find the number of patients who passed away in or before the year 2131 had lab test item id 51248. | 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 COUNT(regular_season) FROM table_2361788_1 WHERE year = 2007 | Name the number of regular season for 2007 | CREATE TABLE table_2361788_1 (regular_season VARCHAR, year VARCHAR) |
SELECT operating_mode FROM table_23840623_4 WHERE vehicle = "Coda" | What is the operating mode of the Coda? | CREATE TABLE table_23840623_4 (operating_mode VARCHAR, vehicle VARCHAR) |
SELECT Last_year, COUNT(Last_year) FROM party WHERE Party_Theme = "Spring" OR Party_Theme = "Teqnology" GROUP BY Last_year ORDER BY COUNT(Last_year) DESC | Count the last year of parties with theme 'Spring' or 'Teqnology' with a bar grpah, I want to rank in descending by the Y. | CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
Number_of_hosts int
)
CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge... |
SELECT MAX(year) FROM table_2361788_1 WHERE playoffs = "Conference Finals" | Name the most year for conference finals | CREATE TABLE table_2361788_1 (year INTEGER, playoffs VARCHAR) |
SELECT dirty_electric_grid_rocky_mountains__denver_ FROM table_23840623_4 WHERE clean_electric_grid_california__san_francisco_ = "160 g/mi (99 g/km)" | What is the dirty electric grid rocky mountains (denver) for the vehicle with the clean electric grid california (san francisco) of 160 g/mi (99 g/km)? | CREATE TABLE table_23840623_4 (dirty_electric_grid_rocky_mountains__denver_ VARCHAR, clean_electric_grid_california__san_francisco_ VARCHAR) |
SELECT "Musical Guest (Song performed)" FROM table_20431 WHERE "Who knows the most about the guest host? panelists" = 'Jermaine Jackson and Nora Sands' | Name the musical guest for panelists jermaine jackson and nora sands | CREATE TABLE table_20431 (
"Episode Number" real,
"Air Date" text,
"Guest Host" text,
"Musical Guest (Song performed)" text,
"Who knows the most about the guest host? panelists" text,
"Coat Of Cash Wearing Celebrity" text
) |
SELECT regular_season FROM table_2361911_2 WHERE playoffs = "Final" | Name the regular season for final playoffs | CREATE TABLE table_2361911_2 (regular_season VARCHAR, playoffs VARCHAR) |
SELECT COUNT(dirty_electric_grid_rocky_mountains__denver_) FROM table_23840623_4 WHERE epa_rated_combined_fuel_economy = "102 mpg-e (33kW-hrs/100mi)" | How many dirty electric grid rocky mountains (denver) vehicles have an epa rated combined fuel economy of 102 mpg-e (33kw-hrs/100mi)? | CREATE TABLE table_23840623_4 (dirty_electric_grid_rocky_mountains__denver_ VARCHAR, epa_rated_combined_fuel_economy VARCHAR) |
SELECT Year, COUNT(Year) FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID ORDER BY COUNT(Year) | weekday , and could you order in ascending by the y-axis? | CREATE TABLE farm (
Farm_ID int,
Year int,
Total_Horses real,
Working_Horses real,
Total_Cattle real,
Oxen real,
Bulls real,
Cows real,
Pigs real,
Sheep_and_Goats real
)
CREATE TABLE competition_record (
Competition_ID int,
Farm_ID int,
Rank int
)
CREATE TABLE city ... |
SELECT MIN(division) FROM table_2361911_2 | Name the least division | CREATE TABLE table_2361911_2 (division INTEGER) |
SELECT epa_rated_combined_fuel_economy FROM table_23840623_4 WHERE operating_mode = "All-electric" AND dirty_electric_grid_rocky_mountains__denver_ = "330 g/mi (205 g/km)" | What is the epa rated combined fuel economy for the all-electric vehicle with dirty electric grid rocky mountains (denver) of 330 g/mi (205 g/km)? | CREATE TABLE table_23840623_4 (epa_rated_combined_fuel_economy VARCHAR, operating_mode VARCHAR, dirty_electric_grid_rocky_mountains__denver_ VARCHAR) |
SELECT owner_s_ FROM table_name_75 WHERE team = "rss racing" AND driver_s_ = "ryan sieg" | Who is the owner of RSS Racing that driver Ryan Sieg belongs to? | CREATE TABLE table_name_75 (
owner_s_ VARCHAR,
team VARCHAR,
driver_s_ VARCHAR
) |
SELECT regular_season FROM table_2361911_2 WHERE league = "USISL D-3 Pro league" AND playoffs = "Did not qualify" | Name the regular season for usisl d-3 pro league did not qualify | CREATE TABLE table_2361911_2 (regular_season VARCHAR, league VARCHAR, playoffs VARCHAR) |
SELECT COUNT(clean_electric_grid_california__san_francisco_) FROM table_23840623_4 WHERE vehicle = "Nissan Leaf" | How many clean electric grid california (san francisco) figures are given for the Nissan Leaf? | CREATE TABLE table_23840623_4 (clean_electric_grid_california__san_francisco_ VARCHAR, vehicle VARCHAR) |
SELECT Score, Id AS "post_link" FROM Posts WHERE Score = 9 AND TIME_TO_STR(CreationDate, '%YEAR') = 2016 ORDER BY CreationDate DESC | Posts with a score of 9. | CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number... |
SELECT position FROM table_23619005_3 WHERE cfl_team = "Saskatchewan Roughriders" | What was the position of the player from Saskatchewan Roughriders? | CREATE TABLE table_23619005_3 (position VARCHAR, cfl_team VARCHAR) |
SELECT aper_in FROM table_23851574_2 WHERE built_used = "1987-2001" | Which aperture were built or used between 1987-2001? | CREATE TABLE table_23851574_2 (aper_in VARCHAR, built_used VARCHAR) |
SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY Rank | How many captains are in each rank, and show from low to high by the x axis please. | CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
) |
SELECT cfl_team FROM table_23619005_3 WHERE position = "SB" | What CFL team was the player playing on SB position drafted for? | CREATE TABLE table_23619005_3 (cfl_team VARCHAR, position VARCHAR) |
SELECT COUNT(nationality_sponsors) FROM table_23851574_2 WHERE mirror_type = "Schmidt UV" | How many nationalities/sponsors for mirror/type schmidt uv? | CREATE TABLE table_23851574_2 (nationality_sponsors VARCHAR, mirror_type VARCHAR) |
SELECT SUM("Year") FROM table_74998 WHERE "Winner" = 'new york jets' AND "Result" = '24–17' AND "Location" = 'giants stadium' | What is the year when the Winner was the new york jets, with a Result of 24 17, played at giants stadium? | CREATE TABLE table_74998 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
) |
SELECT position FROM table_23619005_3 WHERE player = "Michael Shaver" | What was Michael Shaver's position? | CREATE TABLE table_23619005_3 (position VARCHAR, player VARCHAR) |
SELECT name FROM table_23851574_2 WHERE nationality_sponsors = "Belgium" | Which telescopes were sponsored by or originated in Belgium? | CREATE TABLE table_23851574_2 (name VARCHAR, nationality_sponsors VARCHAR) |
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '006-124193' AND patient.hospitaldischargetime IS NULL | how many hours since patient 006-124193 was admitted to hospital? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... |
SELECT COUNT(player) FROM table_23619005_3 WHERE cfl_team = "Ottawa Renegades" | How many different players got drafted for the Ottawa Renegades? | CREATE TABLE table_23619005_3 (player VARCHAR, cfl_team VARCHAR) |
SELECT 4 AS th_place FROM table_2388763_1 WHERE year = 2007 | What team finished in 4th place in 2007? | CREATE TABLE table_2388763_1 (year 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 position FROM table_23619005_3 WHERE player = "Doug Borden" | What's Doug Borden's position? | CREATE TABLE table_23619005_3 (position VARCHAR, player VARCHAR) |
SELECT record FROM table_23916539_3 WHERE opponent = "Stampeders" | If the opponent is the Stampeders, what is the record? | CREATE TABLE table_23916539_3 (record VARCHAR, opponent VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.age < "67" | how many patients aged below 67 years had an elective admission type? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... |
SELECT _percentage_of_all_immigrants_2007 FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2008 = "1.7%" | What's the percentage of all immigrants in 2007 in the country with 1.7% of all immigrants in 2008? | CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2007 VARCHAR, _percentage_of_all_immigrants_2008 VARCHAR) |
SELECT record FROM table_23916539_3 WHERE location = "Clarke Stadium" | What is the record if the location is Clarke Stadium? | CREATE TABLE table_23916539_3 (record VARCHAR, location VARCHAR) |
SELECT "Away team score" FROM table_51743 WHERE "Home team score" = '13.20 (98)' | What is the score of the away team where the home team scored 13.20 (98)? | CREATE TABLE table_51743 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT COUNT(_percentage_of_all_immigrants_2006) FROM table_23619212_1 WHERE country = "Morocco" | How many different percentages of immigrants in 2006 can there be for Morocco? | CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2006 VARCHAR, country VARCHAR) |
SELECT COUNT(market_cap_march_15__mil_usd__) FROM table_23950611_2 WHERE april_2013_cum_rank = 3 | How many companies had an april 2013 cumulative ranking of 3? | CREATE TABLE table_23950611_2 (market_cap_march_15__mil_usd__ VARCHAR, april_2013_cum_rank VARCHAR) |
SELECT "End of Reign" FROM table_42191 WHERE "Birth Name" = 'dimitar stojkovski' | What is the end of reign for Dimitar Stojkovski? | CREATE TABLE table_42191 (
"Name" text,
"Start of Reign" real,
"End of Reign" text,
"Birth Name" text,
"Title" text
) |
SELECT _percentage_of_all_immigrants_2004 FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2006 = "2.1%" | What's the percentage of immigrants in 2004 in the country with 2.1% of the immigrants in 2006? | CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2004 VARCHAR, _percentage_of_all_immigrants_2006 VARCHAR) |
SELECT rank__all__2012 FROM table_23950611_2 WHERE name = "Cenovus Energy" | What was the Forbers rank (all companies) in 2012 for cenovus energy? | CREATE TABLE table_23950611_2 (rank__all__2012 VARCHAR, name VARCHAR) |
SELECT writer FROM table_name_14 WHERE film = "run" | Who is the writer of the film Run? | CREATE TABLE table_name_14 (
writer VARCHAR,
film VARCHAR
) |
SELECT _percentage_of_all_immigrants_2007 FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2006 = "14.1%" | What's the percentage of the immigrants in 2007 in the country with 14.1% of the immigrants in 2006? | CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2007 VARCHAR, _percentage_of_all_immigrants_2006 VARCHAR) |
SELECT assets__bil_usd__ FROM table_23950611_2 WHERE rank__all__2013 = 1532 | How many assets in billions US$, for the company that ranked 1532 overall in 2013? | CREATE TABLE table_23950611_2 (assets__bil_usd__ VARCHAR, rank__all__2013 VARCHAR) |
SELECT COUNT(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id WHERE T2.city <> "San Francisco" | Count the number of trips that did not end in San Francisco city. | CREATE TABLE trip (
id number,
duration number,
start_date text,
start_station_name text,
start_station_id number,
end_date text,
end_station_name text,
end_station_id number,
bike_id number,
subscription_type text,
zip_code number
)
CREATE TABLE status (
station_id numb... |
SELECT COUNT(_percentage_of_all_immigrants_2007) FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2005 = "1.2%" | How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005? | CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2007 VARCHAR, _percentage_of_all_immigrants_2005 VARCHAR) |
SELECT COUNT(rank__all__2013) FROM table_23950611_2 WHERE name = "Cenovus Energy" | How many companies named cenovus energy? | CREATE TABLE table_23950611_2 (rank__all__2013 VARCHAR, name VARCHAR) |
SELECT partner FROM table_name_3 WHERE outcome = "winner" AND opponents_in_the_final = "rick leach jim pugh" | WHich Partner has a Outcome of winner, and a Opponents in the final of rick leach jim pugh? | CREATE TABLE table_name_3 (
partner VARCHAR,
outcome VARCHAR,
opponents_in_the_final VARCHAR
) |
SELECT outcome FROM table_2362486_1 WHERE score_in_the_final = "6–7(1), 2–6, 6–4, 7–5, 6–7(2)" | What was the outcome in the championship where the final score was 6–7(1), 2–6, 6–4, 7–5, 6–7(2)? | CREATE TABLE table_2362486_1 (outcome VARCHAR, score_in_the_final VARCHAR) |
SELECT french_title FROM table_23963073_1 WHERE date_of_publication = 1968 | What was the French title of the story published in 1968? | CREATE TABLE table_23963073_1 (french_title VARCHAR, date_of_publication VARCHAR) |
SELECT COUNT("Year") FROM table_22512 WHERE "2nd Place Team" = 'Merchants, Tampico, IL' | How many years was the 2nd place team merchants, tampico, il? | CREATE TABLE table_22512 (
"Year" real,
"1st Place Team" text,
"2nd Place Team" text,
"3rd Place Team" text,
"4th Place Team" text,
"Host Location" text
) |
SELECT opponents_in_the_final FROM table_2362486_1 WHERE score_in_the_final = "6–4, 2–6, 6–4, 7–6(3)" | Who were the opponents in the final where the score was 6–4, 2–6, 6–4, 7–6(3)? | CREATE TABLE table_2362486_1 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.