sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
---|---|---|
SELECT Opponent FROM table WHERE Type = ud AND Round = 10 AND Date = 2008-06-11
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Opponent has a Type of ud and a Round of 10 on 2008-06-11?.It is not neccessary to use all the tables.
|
SELECT COUNT Institution FROM table WHERE Founded = 1833
|
CREATE TABLE INST, Here is a database schema( table schema);
|
in 1833, how many institutions were created?.It is not neccessary to use all the tables.
|
SELECT Commune FROM table WHERE Area (km 2 ) = 12.4
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What commune has an area of 12.4 sq.km.?.It is not neccessary to use all the tables.
|
SELECT Other Mozilla FROM table WHERE Period = january 2010
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What other mozilla has January 2010 as the period?.It is not neccessary to use all the tables.
|
SELECT MIN Population Density 2012 (km 2 ) FROM table WHERE Sector = Gatunda
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the population density for 2012 for Gatunda sector?.It is not neccessary to use all the tables.
|
SELECT AVG(to_par) FROM table_name_58 WHERE score = 70 - 71 = 141
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the To par of the Player with a Score of 70-71=141?It is not neccessary to use all the tables.
|
SELECT date FROM table_name_45 WHERE away_team = "carlton"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What date was the game when the away team was carlton?It is not neccessary to use all the tables.
|
SELECT Date of vacancy FROM table WHERE Outgoing manager = Thomas Thomasberg
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the vacancy date for Thomas Thomasberg?.It is not neccessary to use all the tables.
|
SELECT High points FROM table WHERE Record = 11-40
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who ihad the highest points and what was the number when the record was 11-40?.It is not neccessary to use all the tables.
|
SELECT T1.Delegate, T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Show the delegates and the names of the party they belong to.It is not neccessary to use all the tables.
|
SELECT away_team FROM table_name_73 WHERE attendance = "1,730"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the away team at the game with an Attendance of 1730?It is not neccessary to use all the tables.
|
SELECT COUNT(year) FROM table_name_1 WHERE uk_peak_position = "10"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many years had a film that peaked at #10 in the UK?It is not neccessary to use all the tables.
|
SELECT driver_s_ FROM table_1266602_2 WHERE team = "Circle Sport"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who drove for team Circle Sport?It is not neccessary to use all the tables.
|
SELECT MIN("Bangladeshi Population") FROM table_22845 WHERE "Rank" = '7'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many Bangladeshi citizens are there in the borough ranked at number 7?It is not neccessary to use all the tables.
|
SELECT City FROM table WHERE Arena = kara ali acar sport hall
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What city is Kara Ali Acar Sport Hall located in?.It is not neccessary to use all the tables.
|
SELECT original_teams FROM table_name_77 WHERE name = "the biggest loser (season 1)"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What were the original teams for The Biggest Loser (Season 1)?It is not neccessary to use all the tables.
|
SELECT Written by FROM table WHERE Title = "It's Only Rock and Roll"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who wrote "it's only rock and roll"?.It is not neccessary to use all the tables.
|
SELECT MAX Opened FROM table WHERE City = glasgow, scotland
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the latest opened year of the team in Glasgow, Scotland?.It is not neccessary to use all the tables.
|
SELECT MIN Matches FROM table WHERE Against < 7 AND Wins > 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest Matches, when Against is less than 7, and when Wins is greater than 1?.It is not neccessary to use all the tables.
|
SELECT LOCATION FROM cinema WHERE openning_year = 2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year = 2011
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Show all the locations where some cinemas were opened in both year 2010 and year 2011.It is not neccessary to use all the tables.
|
SELECT Chest FROM table WHERE Supplier = gilbert
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Chest is Supplied by Gilbert?.It is not neccessary to use all the tables.
|
SELECT SUM(losses) FROM table_name_9 WHERE manager = "jim hoff" AND wins < 12
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was Jim Hoff's sum of losses and a wins smaller than 12?It is not neccessary to use all the tables.
|
SELECT Year (Ceremony) FROM table WHERE Result = not nominated AND Film title used in nomination = in the navel of the sea
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the year when not nominated was the result, and In the Navel of the Sea was the film title used in nomination?.It is not neccessary to use all the tables.
|
SELECT "Partner" FROM table_22872 WHERE "Championship" = 'US Open' AND "Outcome" = 'Runner-up'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was her partner at the US Open and they were runner-up?It is not neccessary to use all the tables.
|
SELECT MIN(pick__number) FROM table_name_62 WHERE position = "rec" AND cfl_team = "hamilton tiger-cats"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest Pick # when Position is REC and when CFL Team is Hamilton Tiger-Cats?It is not neccessary to use all the tables.
|
SELECT competition FROM table_name_17 WHERE date = "july 1, 2000"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Competition has the Date July 1 2000?It is not neccessary to use all the tables.
|
SELECT COUNT Event 2 Truck Pull FROM table WHERE Event 1 Medley = 6 (16.6m)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many men had an event 1 medley score of 6 (16.6m)?.It is not neccessary to use all the tables.
|
SELECT genus_ & _species FROM table_26957063_3 WHERE ncbi_accession_number = "XP_002439156.1"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the genus & species of the animal whose accession number is XP_002439156.1?It is not neccessary to use all the tables.
|
SELECT Score FROM table WHERE Player = john mahaffey
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What score did John Mahaffey have?.It is not neccessary to use all the tables.
|
SELECT AVG(goals) FROM table_name_94 WHERE matches = 644 AND rank > 3
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many goals on average had 644 matches and a rank bigger than 3?It is not neccessary to use all the tables.
|
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY city_code DESC
|
CREATE TABLE INST, Here is a database schema( table schema);
|
A bar chart about how many students live in each city?, and sort by the bar in desc.It is not neccessary to use all the tables.
|
SELECT Original air date FROM table WHERE Episode # = 31
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the original airdate of episode #31?.It is not neccessary to use all the tables.
|
SELECT chartevents.charttime 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 = 12885) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp mean' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
when was the first time that arterial bp mean was measured for patient 12885 on the last icu visit?It is not neccessary to use all the tables.
|
SELECT player FROM table_name_48 WHERE years_for_grizzlies = "2002-2003"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Player has Years for Grizzlies of 2002-2003?It is not neccessary to use all the tables.
|
SELECT Class FROM table WHERE Frequency = 560 am
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the class when the frequency is 560 AM?.It is not neccessary to use all the tables.
|
SELECT MIN("Wins") FROM table_62385 WHERE "Points" = '34' AND "Draws" > '13'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the lowest win when there were 34 points and more than 13 draws?It is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "PITUITARY BLEED" AND demographic.dod_year <= "2180.0"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how many patients died in or before year 2180 had pituitary bleed as the primary disease?It is not neccessary to use all the tables.
|
SELECT SUM(total) FROM table_name_45 WHERE nation = "austria" AND gold < 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the full amount of Total for Austria when the number of gold is less than 0?It is not neccessary to use all the tables.
|
SELECT Price FROM publication WHERE Publisher = "Person" OR Publisher = "Wiley"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Show the prices of publications whose publisher is either "Person" or "Wiley"It is not neccessary to use all the tables.
|
SELECT Model FROM table WHERE Digital = dvb-t (cx22702) AND Tuner = thomson dtt75105
|
CREATE TABLE INST, Here is a database schema( table schema);
|
I want the model for digital of dvb-t (cx22702) and tuner of thomson dtt75105.It is not neccessary to use all the tables.
|
SELECT february FROM table_name_46 WHERE record = "21-29-11"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is February when Record is "21-29-11"?It is not neccessary to use all the tables.
|
SELECT res FROM table_name_95 WHERE event = "ufc 87"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the result of the UFC 87?It is not neccessary to use all the tables.
|
SELECT method_of_elimination FROM table_24628683_2 WHERE wrestler = "Kofi Kingston"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the method of elimination for Kofi Kingston/It is not neccessary to use all the tables.
|
SELECT report FROM table_19908651_3 WHERE winning_driver = "Michael Andretti" AND fastest_lap = "Nigel Mansell"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the report of the race won by Michael Andretti, with Nigel Mansell driving the fastest lap?It is not neccessary to use all the tables.
|
SELECT Competition_type, Country FROM competition
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What are the types and countries of competitions?It is not neccessary to use all the tables.
|
SELECT time_retired FROM table_name_38 WHERE driver = "mika häkkinen"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the time/retired for mika häkkinenIt is not neccessary to use all the tables.
|
SELECT player FROM table_11677691_10 WHERE school = "Vista Murrieta High school"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What player represented Vista Murrieta High School?It is not neccessary to use all the tables.
|
SELECT No. FROM table WHERE Directed by = Tucker Gates
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the number of the episode directed by Tucker Gates?.It is not neccessary to use all the tables.
|
SELECT * FROM table_train_233 WHERE admission_blood_glucose > 140 AND admission_blood_glucose < 400 AND (ketoacidosis = 0 OR serum_bicarbonate > 18)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
subjects must have an admission blood glucose > 140 mg and < 400 mg / dl and no evidence of ketoacidosis ( serum bicarbonate < 18 meq / lIt is not neccessary to use all the tables.
|
SELECT COUNT(institution) FROM table_27599216_6 WHERE football_stadium = "Mosaic Stadium"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many institutions are shown for the football stadium of mosaic stadium?It is not neccessary to use all the tables.
|
SELECT Aircraft FROM table WHERE Location = s of avion
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What aircraft is located at S of Avion?.It is not neccessary to use all the tables.
|
SELECT Partner FROM table WHERE Date = 6 july 1987
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the partner of the tournament on 6 July 1987?.It is not neccessary to use all the tables.
|
SELECT away_team AS score FROM table_name_86 WHERE away_team = "carlton"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was Carlton's score when they were the away team?It is not neccessary to use all the tables.
|
SELECT MAX(release_date) FROM table_1467951_4
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the most recent release date?It is not neccessary to use all the tables.
|
SELECT COUNT Grid FROM table WHERE Driver = david coulthard AND Laps > 45
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the grid total for david coulthard with over 45 laps?.It is not neccessary to use all the tables.
|
SELECT Future stem FROM table WHERE Imperfect stem = hartzen
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the future stem for the word that has an imperfect stem of hartzen?.It is not neccessary to use all the tables.
|
SELECT virtue FROM table_name_13 WHERE (latin) = acedia
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which virtue is acedia(Latin)?It is not neccessary to use all the tables.
|
SELECT name FROM table_name_13 WHERE authority = "state" AND roll = "72"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Name of a state Authority that has a Roll of 72?It is not neccessary to use all the tables.
|
SELECT chassis FROM table_name_75 WHERE entrant = "lavazza march" AND points = 0.5
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the chassis when the entrant was Lavazza March and the points were 0.5?It is not neccessary to use all the tables.
|
SELECT MIN Quantity rebuilt FROM table WHERE Class = t2a
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What the least quantity having a T2A class?.It is not neccessary to use all the tables.
|
SELECT Type FROM table WHERE Averaging Time = 1-hour AND Standard = 0.12 ppm (235 μg/m³)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the type when the averaging time is 1-hour and the standard is 0.12 ppm (235 μg/m³)?.It is not neccessary to use all the tables.
|
SELECT prescriptions.drug, prescriptions.drug_dose FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Betty Campbell"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
let me know the name and dosage of drug prescribed to patient betty campbell.It is not neccessary to use all the tables.
|
SELECT passed FROM table_256286_40 WHERE description = "Authorizing State Acceptance of Certain Gifts"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What vote passed for the measure with the description authorizing state acceptance of certain gifts?It is not neccessary to use all the tables.
|
SELECT Nation FROM table WHERE Sail = usa-18
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Nation has the USA-18 sail?.It is not neccessary to use all the tables.
|
SELECT MAX(silver) FROM table_name_81 WHERE nation = "germany" AND bronze > 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many silver medals for germany with a bronze count more than 0?It is not neccessary to use all the tables.
|
SELECT Home team FROM table WHERE Venue = mcg
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the home team that played at venue MCG?.It is not neccessary to use all the tables.
|
SELECT percentage FROM table_26200568_16 WHERE points_for = 63
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the percentage listed for the team who scored 63 points?It is not neccessary to use all the tables.
|
SELECT AVG(played) FROM table_name_70 WHERE drawn = 4 AND position = 9 AND goals_against > 59
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Played has a Drawn of 4 and a Position of 9 and Goals Against larger than 59?It is not neccessary to use all the tables.
|
SELECT T2.name, T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Show the member name and hometown who registered a branch in 2016.It is not neccessary to use all the tables.
|
SELECT COUNT Interview subject FROM table WHERE Centerfold model = Sherry Arnett
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the interview subject when the centerfold model was Sherry Arnett?.It is not neccessary to use all the tables.
|
SELECT song_title FROM table_22457674_1 WHERE artist = "Europe"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the song title for europeIt is not neccessary to use all the tables.
|
SELECT four FROM table_name_23 WHERE date = "6 march 1801"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the four for 6 march 1801It is not neccessary to use all the tables.
|
SELECT score FROM table_name_58 WHERE player = "raymond floyd"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was Raymond Floyd's score?It is not neccessary to use all the tables.
|
SELECT COUNT Background FROM table WHERE Hometown = Memphis, Tennessee
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many backgrounds are there represented from Memphis, Tennessee?.It is not neccessary to use all the tables.
|
SELECT Winners club FROM table WHERE Week = 4.5
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Winners club has a Week of 4.5?.It is not neccessary to use all the tables.
|
SELECT MAX No. in series FROM table WHERE Original air date = April 27, 1999
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What episode number in the series originally aired on April 27, 1999?.It is not neccessary to use all the tables.
|
SELECT Title/Subject FROM table WHERE Date Painted/Created = 1982
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the subject of the sculpture created in 1982? .It is not neccessary to use all the tables.
|
SELECT "Points" FROM table_39457 WHERE "Class" = '500cc' AND "Machine" = 'nsr500'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What points have 500cc as a class, and nsr500 as a machine?It is not neccessary to use all the tables.
|
SELECT Career Win-Loss FROM table WHERE 2002 = a AND 2001 = 4r
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Career Win-Loss, when 2002 is "A", and when 2001 is "4R"?.It is not neccessary to use all the tables.
|
SELECT Manufacturer FROM table WHERE Year > 1969 AND Finish = 34
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which manufacturer was used after 1969 with a finish position of 34?.It is not neccessary to use all the tables.
|
SELECT Opponent FROM table WHERE Location/Attendance = madison square garden
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the opponent at the game at Madison Square Garden?.It is not neccessary to use all the tables.
|
SELECT sspec_number FROM table_name_68 WHERE model_number = "atom n475"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is sSpec Number when Model Number is Atom N475?It is not neccessary to use all the tables.
|
SELECT Ticket price(s) FROM table WHERE Venue = red rocks amphitheatre
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the ticket price at Red Rocks Amphitheatre?.It is not neccessary to use all the tables.
|
SELECT Frequency FROM table WHERE Branding = 106.3 Energy FM Naga
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the frequency when radio station branding is 106.3 energy fm naga?.It is not neccessary to use all the tables.
|
SELECT first_broadcast FROM table_23292220_17 WHERE seans_team = "Tina Malone and Joe Wilkinson"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the first broadcast for tina malone and joe wilkinsonIt is not neccessary to use all the tables.
|
SELECT Ticket price(s) FROM table WHERE Venue = canadian national exhibition stadium
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the ticket price at Canadian National Exhibition Stadium?.It is not neccessary to use all the tables.
|
SELECT SUM 2nd (m) FROM table WHERE Rank > 4 AND 1st (m) < 111.5
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the sum of the distances in 2nd for ranks higher than 4 and distance for 1st less than 111.5?.It is not neccessary to use all the tables.
|
SELECT Home FROM table WHERE Visitor = edmonton oilers AND Date = may 22
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the home team of the game on May 22 with the Edmonton Oilers as the visiting team?.It is not neccessary to use all the tables.
|
SELECT Part 3 FROM table WHERE Part 4 = gelopen
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the part 3 of the verb with part 4 gelopen?.It is not neccessary to use all the tables.
|
SELECT "nationality" FROM table_203_268 GROUP BY "nationality" ORDER BY COUNT("name") DESC LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what country lost the most ships to u-502 ?It is not neccessary to use all the tables.
|
SELECT year_s__withdrawn FROM table_name_86 WHERE class = "t14"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In what year(s) were the CLASS T14 trains withdrawn from service?It is not neccessary to use all the tables.
|
SELECT Score FROM table WHERE Country = united states AND Player = fuzzy zoeller
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was Fuzzy Zoeller's score in the United States?.It is not neccessary to use all the tables.
|
SELECT MAX Home Total FROM table
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the highest home total?.It is not neccessary to use all the tables.
|
SELECT date FROM table_name_37 WHERE venue = "western oval"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
The Western Oval venue has what date?It is not neccessary to use all the tables.
|
SELECT "Away team" FROM table_12019 WHERE "Venue" = 'corio oval'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the away team at corio oval?It is not neccessary to use all the tables.
|
SELECT country FROM table_name_45 WHERE transfer_window = "winter" AND ends > 2009 AND moving_from = "bolton wanderers"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the name of the country that has a transfer window of winter with an end after 2009 and moving from Bolton Wanderers?It is not neccessary to use all the tables.
|
SELECT AVG(length_feet) FROM bridge
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the average length in feet of the bridges?It is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2155.0" AND prescriptions.drug = "Cyanocobalamin"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Give me the number of patients who were prescribed cyanocobalamin and died in or before 2155.It is not neccessary to use all the tables.
|
SELECT Venue FROM table WHERE Result = 1–0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which venue has a Result of 1–0?.It is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT transfers.hadm_id FROM transfers WHERE transfers.wardid = 49 AND STRFTIME('%y', transfers.intime) >= '2105')
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how many patients had been staying in ward 49 since 2105?It is not neccessary to use all the tables.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.