sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
|---|---|---|
SELECT Winner FROM table WHERE Elapsed Time = 12 h 42 min
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the winner with an elapsed time of 12 h 42 min?.It is not neccessary to use all the tables.
|
SELECT SUM 2009 FROM table WHERE 1989 < 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the listing for 2009 when 1989 is less than 0?.It is not neccessary to use all the tables.
|
SELECT COUNT Runners FROM table WHERE Placing > 8
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many runners had placings over 8?.It is not neccessary to use all the tables.
|
SELECT COUNT High rebounds FROM table WHERE Record = 19-13
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many people had the high rebound total when the team was 19-13?.It is not neccessary to use all the tables.
|
SELECT student_capacity, gender FROM dorm WHERE dorm_name LIKE '%Donor%'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Find the capacity and gender type of the dorm whose name has substring ‘Donor’.It is not neccessary to use all the tables.
|
SELECT Away team score FROM table WHERE Home team score = 17.19 (121)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the score of the Away team that played against a Home team that scored 17.19 (121)?.It is not neccessary to use all the tables.
|
SELECT knockouts_of_the_night FROM table_21114902_1 WHERE fighter = "Joe Lauzon"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many knockout of the night occurred when joe lauzon fought.It is not neccessary to use all the tables.
|
SELECT MAX(first_elected) FROM table_1342013_20 WHERE incumbent = "John W. Heselton"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
John W. Heselton was first elected in what year?It is not neccessary to use all the tables.
|
SELECT City FROM table WHERE Jul. = 88 °f / 31.1 °c
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the city with july of 88 °f / 31.1 °c.It is not neccessary to use all the tables.
|
SELECT MIN(pick__number) FROM table_25017530_5 WHERE player = "Steven Turner"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the least pick number for steven turnerIt is not neccessary to use all the tables.
|
SELECT Party FROM table WHERE Incumbent = Ray Roberts
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the political affiliation of ray roberts.It is not neccessary to use all the tables.
|
SELECT COUNT("Telephone (052)") FROM table_19360 WHERE "Area (km 2 )" = '362.81'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the total number of telephone 052 for 362.81It is not neccessary to use all the tables.
|
SELECT COUNT(rank_world) FROM table_2248784_3 WHERE country = "Bhutan"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the number of rank world for bhutanIt is not neccessary to use all the tables.
|
SELECT Driver FROM table WHERE Year = 1986
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the driver in 1986?.It is not neccessary to use all the tables.
|
SELECT t2.drugname FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-5351') AND diagnosis.diagnosisname = 'copd' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m', diagnosis.diagnosistime) = '06') AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-5351') AND DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m', medication.drugstarttime) = '06') AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t2.drugstarttime) BETWEEN DATETIME(t1.diagnosistime) AND DATETIME(t1.diagnosistime, '+2 day')
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the name of the prescription drug patient 009-5351 was prescribed within 2 days after being diagnosed with copd in 06/this year?It is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.discharge_location = "SNF" AND lab.label = "Blood"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
provide the number of patients whose discharge location is snf and lab test name is blood?It is not neccessary to use all the tables.
|
SELECT AVG(laps) FROM table_name_48 WHERE grid = 9
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the average number of laps when the grid number is 9?It is not neccessary to use all the tables.
|
SELECT School/Club Team FROM table WHERE Player = andre wakefield
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which School/Club Team did Andre Wakefield play for?.It is not neccessary to use all the tables.
|
SELECT MIN(total) FROM table_name_35 WHERE nation = "lithuania" AND silver > 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the total that wehn Lithuania is the nation and Silver is more than 0?It is not neccessary to use all the tables.
|
SELECT MIN(tie_no) FROM table_19294812_2 WHERE team_2 = "Koper"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the tie when team 2 is koper?It is not neccessary to use all the tables.
|
SELECT MIN Season FROM table WHERE Position > 12
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the earliest season that has a position over 12?.It is not neccessary to use all the tables.
|
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LAS VEGAS' AND date_day.day_number = 27 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NEW YORK' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.stops = 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
nonstop flights from NEW YORK to LAS VEGAS on sundayIt is not neccessary to use all the tables.
|
SELECT COUNT(no_in_series) FROM table_2226817_12 WHERE directed_by = "Mark K. Samuels"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how many episodes has been directed by Mark K. Samuels ?It is not neccessary to use all the tables.
|
SELECT Round FROM table WHERE Player = kelsey tessier
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In what round was Kelsey Tessier drafted?.It is not neccessary to use all the tables.
|
SELECT Team 1 FROM table WHERE Agg. = 3-4
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which teams had an aggregate score of 3-4?.It is not neccessary to use all the tables.
|
SELECT COUNT Grid FROM table WHERE Time = +37.949
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what's the grid with time +37.949?.It is not neccessary to use all the tables.
|
SELECT score FROM table_name_33 WHERE set_1 = "23–25"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the overall score when set 1 was 23–25?It is not neccessary to use all the tables.
|
SELECT Country FROM table WHERE ICAO = zgha
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Tell me the country with ICAO of zgha.It is not neccessary to use all the tables.
|
SELECT New entries this round FROM table WHERE Round = Semi-finals
|
CREATE TABLE INST, Here is a database schema( table schema);
|
If the round is the semi-finals, what are the new entries this round?.It is not neccessary to use all the tables.
|
SELECT Viewers (including HD) in millions FROM table WHERE Children of Earth = "day one"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many viewers were there for Children of Earth of "day one"?.It is not neccessary to use all the tables.
|
SELECT COUNT(location_attendance) FROM table_27539272_5 WHERE score = "1-3"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the total number of locations that had a score of 1-3?It is not neccessary to use all the tables.
|
SELECT race_name FROM table_name_3 WHERE winning_driver = "innes ireland"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the race name that the driver Innes Ireland won?It is not neccessary to use all the tables.
|
SELECT p.Id AS "post_link", p.CreationDate, p.Score, p.ViewCount, p.ClosedDate FROM Posts AS p WHERE p.PostTypeId = 1 AND MONTH(p.CreationDate) = MONTH(CURRENT_TIMESTAMP()) - 1 AND YEAR(p.CreationDate) = YEAR(CURRENT_TIMESTAMP()) ORDER BY p.Score DESC
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Questions asked in previous month. Retrieves the set of questions asked in the previous month and orders them by score.It is not neccessary to use all the tables.
|
SELECT name FROM table_name_65 WHERE constituency_number = "108"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the name of Constituency number 108?It is not neccessary to use all the tables.
|
SELECT Home FROM table WHERE Date = march 30
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Date of march 30 involves what home?.It is not neccessary to use all the tables.
|
SELECT College FROM table WHERE Player = delray brooks
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What college did delray brooks go to?.It is not neccessary to use all the tables.
|
SELECT To par FROM table WHERE Country = united states AND Place = t4 AND Player = arnold palmer
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is To Par, when Country is "United States", when Place is "T4", and when Player is "Arnold Palmer"?.It is not neccessary to use all the tables.
|
SELECT first_air_date FROM table_28980706_4 WHERE episode = 11
|
CREATE TABLE INST, Here is a database schema( table schema);
|
When 11 is the episode what is the air date?It is not neccessary to use all the tables.
|
SELECT MIN(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 = 16329)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'temperature c (calc)' AND d_items.linksto = 'chartevents') AND DATETIME(chartevents.charttime) >= DATETIME(CURRENT_TIME(), '-139 month') GROUP BY STRFTIME('%y-%m-%d', chartevents.charttime)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
indicate the daily minimum amount of temperature c (calc) for patient 16329 since 139 months ago.It is not neccessary to use all the tables.
|
SELECT date_made FROM table_name_9 WHERE type = "0-4-2"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the date of creation for the locomotive having a type of 0-4-2It is not neccessary to use all the tables.
|
SELECT No. of s Barangay FROM table WHERE Municipality = Paracale
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the number of S Barangay for Paracale?.It is not neccessary to use all the tables.
|
SELECT MAX(points) FROM table_name_67 WHERE drawn < 2 AND lost = 2
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the greatest points value that have draws under 2 and 2 losses?It is not neccessary to use all the tables.
|
SELECT IATA FROM table WHERE Airport = chennai international airport
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the IATA for the chennai international airport?.It is not neccessary to use all the tables.
|
SELECT Season FROM table WHERE Winner = Anthony Yeh
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What season was won by Anthony Yeh?.It is not neccessary to use all the tables.
|
SELECT p.Id AS "post_link", COALESCE(p.LastEditDate, p.CreationDate) AS MostRecentChange, (SELECT COUNT(v.Id) FROM Votes AS v INNER JOIN VoteTypes AS vt ON v.VoteTypeId = vt.Id WHERE vt.Name = 'UpMod' AND v.PostId = p.Id) AS UpVotes, (SELECT COUNT(v.Id) FROM Votes AS v INNER JOIN VoteTypes AS vt ON v.VoteTypeId = vt.Id WHERE vt.Name = 'DownMod' AND v.PostId = p.Id) AS DownVotes, p.Score FROM Posts AS p INNER JOIN PostTypes AS pt ON pt.Id = p.PostTypeId INNER JOIN Posts AS p2 ON p.ParentId = p2.Id WHERE pt.Name = 'Answer' AND p.OwnerUserId = @UserId AND p2.AcceptedAnswerId IS NULL ORDER BY p.Score DESC, p.LastEditDate DESC LIMIT 50
|
CREATE TABLE INST, Here is a database schema( table schema);
|
My 50 Highest Rated Answers On Questions With No Accepted Answer.It is not neccessary to use all the tables.
|
SELECT high_points FROM table_name_8 WHERE high_rebounds = "dwight howard (16)"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is High Points when High Rebounds is "Dwight Howard (16)"?It is not neccessary to use all the tables.
|
SELECT district FROM table_2668169_2 WHERE incumbent = "Luther Reily"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which district does the incumbent Luther Reily represent?It is not neccessary to use all the tables.
|
SELECT Speed FROM table WHERE NOAA = 37
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the speed of the higher harmonics that have an NOAA of 37?.It is not neccessary to use all the tables.
|
SELECT Score FROM table WHERE Player = fuzzy zoeller
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Fuzzy Zoeller's Score?.It is not neccessary to use all the tables.
|
SELECT major_users FROM table_29474407_11 WHERE name__designation = "Saturn machine pistol"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who are all the major users of the Saturn Machine Pistol?It is not neccessary to use all the tables.
|
SELECT "Tie no" FROM table_47838 WHERE "Date" = '5 january 1986' AND "Away team" = 'exeter city'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the tie number in the game on 5 January 1986 where Exeter City is the away team?It is not neccessary to use all the tables.
|
SELECT IATA Code FROM table WHERE Passengers = 15,505,566
|
CREATE TABLE INST, Here is a database schema( table schema);
|
If the passengers are 15,505,566, what is the iata code?.It is not neccessary to use all the tables.
|
SELECT Nation FROM table WHERE for = 326
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the nation when the for is 326?.It is not neccessary to use all the tables.
|
SELECT Away team score FROM table WHERE Home team = geelong
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What did the team score when playing against home in geelong?.It is not neccessary to use all the tables.
|
SELECT Time FROM table WHERE Machine = honda 1000cc AND Rider(s) = bruce anstey
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What time did bruce anstey complete in a honda 1000cc?.It is not neccessary to use all the tables.
|
SELECT MAX Killed FROM table WHERE Incident No. = 14
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the highest number killed in incident #14?.It is not neccessary to use all the tables.
|
SELECT runner_up FROM table_name_92 WHERE tournament = "são paulo"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the name of the runner up in the Tournament of são paulo?It is not neccessary to use all the tables.
|
SELECT MIN(bronze) FROM table_name_72 WHERE silver = "13"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest bronze total that has a silver total of 13 medals?It is not neccessary to use all the tables.
|
SELECT Position FROM table WHERE Player = Williams, Bernie Bernie Williams
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what's the position where player is williams, bernie bernie williams.It is not neccessary to use all the tables.
|
SELECT result FROM table_19763199_3 WHERE artist = "Normativa Vigente"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the result for Normativa Vigente?It is not neccessary to use all the tables.
|
SELECT date FROM table_1566848_8 WHERE centerfold_model = "Kymberly Paige"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
When was the Kymberly Paige the Centerfold?It is not neccessary to use all the tables.
|
SELECT COUNT(points) FROM table_name_50 WHERE match < 14
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the number of points when the match is smaller than 14?It is not neccessary to use all the tables.
|
SELECT Original air date FROM table WHERE Title = "Commercial/Coach DMV"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the original air date of the episode titled "Commercial/Coach DMV"? .It is not neccessary to use all the tables.
|
SELECT place FROM table_name_89 WHERE player = "greg norman"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Greg Norman's place?It is not neccessary to use all the tables.
|
SELECT name FROM table_name_17 WHERE pick__number < 5 AND overall = 284
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the name of the player with a pick # less than 5 and an overall of 284?It is not neccessary to use all the tables.
|
SELECT COUNT(winning_driver) FROM table_10706879_3 WHERE name = "Kraco Twin 125 (R2)"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many winning drivers in the kraco twin 125 (r2) race were there?It is not neccessary to use all the tables.
|
SELECT AVG(crowd) FROM table_name_29 WHERE away_team = "hawthorn"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the average crowd to watch Hawthorn as the away team?It is not neccessary to use all the tables.
|
SELECT engine FROM table_name_76 WHERE year < 1977
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the engine for year less than 1977It is not neccessary to use all the tables.
|
SELECT MAX Attendance FROM table WHERE Home = hispano
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the highest attendance for the Hispano team?.It is not neccessary to use all the tables.
|
SELECT appearances FROM table_name_75 WHERE goals < 30 AND name = "gary depalma"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many appearances did Gary Depalma make when he scored less than 30 goals?It is not neccessary to use all the tables.
|
SELECT COUNT(year) FROM table_12164707_1 WHERE mens_singles = "Peter Mikkelsen"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many years did Peter Mikkelsen win the Mens Singles?It is not neccessary to use all the tables.
|
SELECT frequency FROM table_2610582_7 WHERE callsign = "DXEC-FM"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What frequency is dxec-fm?It is not neccessary to use all the tables.
|
SELECT MAX Gross Debt in $Billions undeflated Treas. FROM table WHERE GDP $Billions OMB/BEA est.=MW.com = 10,980 AND End of Fiscal Year < 2003
|
CREATE TABLE INST, Here is a database schema( table schema);
|
For End of Fiscal Years before 2003 with a GDP $Billions OMB/BEA est.=MW.com of 10,980 what is the highest Gross Debt in $Billions undeflated Treas.?.It is not neccessary to use all the tables.
|
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 = "Compl kidney transplant" AND prescriptions.route = "REPLACE"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
count the number of patients whose diagnosis short title is complete kidney transplant and drug route is replace.It is not neccessary to use all the tables.
|
SELECT MIN(season) FROM table_20026849_1 WHERE winner = "Ashutosh Kaushik"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What season was won by Ashutosh Kaushik?It is not neccessary to use all the tables.
|
SELECT result FROM table_1342149_24 WHERE first_elected = 1920
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the result for first elected of 1920It is not neccessary to use all the tables.
|
SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the phone number of the man with the first name Timmothy and the last name Ward?It is not neccessary to use all the tables.
|
SELECT Week 6 FROM table WHERE Week 3 = 25 AND Week 7 = eliminated
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the week 6 when week 3 is 25 and week 7 is eliminated.It is not neccessary to use all the tables.
|
SELECT opposition FROM table_name_25 WHERE tally = "0-11"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the opposition when the tally was 0-11?It is not neccessary to use all the tables.
|
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location, LastAccessDate, UpVotes, DownVotes FROM Users WHERE (LOWER(Location) LIKE '%austria%' OR Location LIKE '%AT' OR LOWER(Location) LIKE 'dummy') AND NOT (LOWER(Location) LIKE '%dummy%') ORDER BY Location LIMIT 100
|
CREATE TABLE INST, Here is a database schema( table schema);
|
User List: Top N - Austria - with false positive exclusions.It is not neccessary to use all the tables.
|
SELECT Champions FROM table WHERE First driver(s) = Hiroki Yoshimoto ( 2005 )
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many champions were there when the first driver was hiroki yoshimoto ( 2005 )?.It is not neccessary to use all the tables.
|
SELECT Time FROM table WHERE Home team = southern
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What time is it for the southern home team?.It is not neccessary to use all the tables.
|
SELECT club FROM table_name_27 WHERE european_cup = "fiba european champion's cup" AND national_cup = "italian cup"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What Club has Fiba European Champion's Cup and an Italian Cup?It is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT patient.patienthealthsystemstayid) FROM patient WHERE patient.uniquepid = '018-41654' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how many times did patient 018-41654 attend the hospital in the last year?It is not neccessary to use all the tables.
|
SELECT origin, COUNT(*) FROM flight GROUP BY origin ORDER BY COUNT(*) DESC
|
CREATE TABLE INST, Here is a database schema( table schema);
|
For each origin, how many flights came from there Show bar chart, I want to show from high to low by the the total number .It is not neccessary to use all the tables.
|
SELECT Away team score FROM table WHERE Home team = fitzroy
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the score of the away team with the home team Fitzroy?.It is not neccessary to use all the tables.
|
SELECT COUNT Interview FROM table WHERE State = indiana AND Average < 8.3
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the total interview score a contestant from Indiana with an average smaller than 8.3 has?.It is not neccessary to use all the tables.
|
SELECT 1999 FROM table WHERE 1991 = a AND 1997 = 1r
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the 1999 for an A 1991, and a 1r 1997?.It is not neccessary to use all the tables.
|
SELECT Away team score FROM table WHERE Home team score = 18.9 (117)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who played a home team that scored 18.9 (117)?.It is not neccessary to use all the tables.
|
SELECT Platelet count FROM table WHERE Prothrombin time = Unaffected AND Partial thromboplastin time = Unaffected
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What are the statuses of the platelet counts for the conditions where the prothrombin time and partial thromboblastin time is unaffected? .It is not neccessary to use all the tables.
|
SELECT AVG Largest component, fractional share FROM table WHERE N, Laakso-Taagepera = 1.98 AND N, Golosov > 1.82
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the average Largest Component, Fractional Share, when N, Laakso-Taagepera is 1.98, and when N, Golosov is greater than 1.82?.It is not neccessary to use all the tables.
|
SELECT location__all_in_nagano__ FROM table_name_18 WHERE name = "sakakita bs"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which location includes Sakakita BS?It is not neccessary to use all the tables.
|
SELECT AVG Finish FROM table WHERE Start > 3 AND Engine = honda AND Year = 2011
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the average finish that has a start greater than 3, with honda as the engine, and 2011 as the year?.It is not neccessary to use all the tables.
|
SELECT MIN(money_list_rank) FROM table_24330912_1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest overall money list rank?It is not neccessary to use all the tables.
|
SELECT 7:00 FROM table WHERE 7:30 = movies
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What 7:00 has 7:30 movies?.It is not neccessary to use all the tables.
|
SELECT internet_explorer FROM table_name_91 WHERE chrome = "29.07%"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What internet explorer has 29.07% for the chrome?It is not neccessary to use all the tables.
|
SELECT date FROM table_name_83 WHERE surface = "hard" AND tournament = "usa f5, brownsville"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the date with a hard surface and tournament of usa f5 brownsvilleIt is not neccessary to use all the tables.
|
SELECT November FROM table WHERE Year > 1988 AND October = prinzzess
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is in November after 1988 when Prinzzess is in October?.It is not neccessary to use all the tables.
|
SELECT 1994 FROM table WHERE 1997 = qf AND 1995 = 3r
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the 1994 finish associated with a 1995 finish of 3R and 1997 of QF?.It is not neccessary to use all the tables.
|
SELECT MAX(founded) FROM table_27599216_6 WHERE team = "Dinos"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the year founded for the team Dinos?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.