sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
|---|---|---|
SELECT finish FROM table_name_58 WHERE year_s__won = "1962 , 1967"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Finish when Year(s) Won is "1962 1967"?It is not neccessary to use all the tables.
|
SELECT MIN(year) FROM table_name_47 WHERE player = "serena williams" AND sets > 2
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what's the earliest year that serena williams had more than 2 sets?It is not neccessary to use all the tables.
|
SELECT MAX(points) FROM table_name_96 WHERE entrant = "yardley-brm" AND year > 1971
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was Yardley-BRM's points high after 1971?It is not neccessary to use all the tables.
|
SELECT *, CAST(100.0 * (a.y2016 - a.y2015) / NULLIF(a.y2015, 0) AS FLOAT(18, 2)) AS growth FROM (SELECT t.TagName, COUNT(p.Id) AS postCount, SUM(CASE WHEN YEAR(p.CreationDate) = 2014 THEN 1 ELSE 0 END) AS y2014, SUM(CASE WHEN YEAR(p.CreationDate) = 2015 THEN 1 ELSE 0 END) AS y2015, SUM(CASE WHEN YEAR(p.CreationDate) = 2016 THEN 1 ELSE 0 END) AS y2016 FROM Posts AS p JOIN PostTags AS pTags ON pTags.PostId = p.Id JOIN Tags AS t ON pTags.TagId = t.Id WHERE YEAR(p.CreationDate) IN (2015, 2016, 2014) GROUP BY t.TagName) AS a WHERE a.y2014 >= '##Min2014##' AND 1.0 * a.y2016 >= 1.25 * a.y2015 AND a.postCount > '##MinQuestions##' ORDER BY growth DESC
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Trendy tags: 2015 to 2016 growth.It is not neccessary to use all the tables.
|
SELECT Position FROM table WHERE Affiliation = LDU Quito
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the position when the affiliation is ldu quito?.It is not neccessary to use all the tables.
|
SELECT Highest attendance FROM table WHERE Rank = 90 AND Venue name = infineon raceway
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Highest Attendance, when Rank is 90, and when Venue Name is Infineon Raceway?.It is not neccessary to use all the tables.
|
SELECT laps FROM table_name_34 WHERE time_retired = "+0.4865"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many laps have a +0.4865 time/retired?It is not neccessary to use all the tables.
|
SELECT successor FROM table_224794_3 WHERE district = "Kentucky 2nd"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the successor for the Kentucky 2nd district?It is not neccessary to use all the tables.
|
SELECT date FROM table_name_29 WHERE location_attendance = "td banknorth garden 18,624"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Date when Location Attendance is "TD Banknorth Garden 18624"?It is not neccessary to use all the tables.
|
SELECT college FROM table_name_58 WHERE cfl_team = "hamilton tiger-cats"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which college's cfl team is the hamilton tiger-cats?It is not neccessary to use all the tables.
|
SELECT arranger FROM table_name_19 WHERE composer = "imad shams eldeen" AND length = "4:03"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which arranger worked with composer Imad Shams Eldeen at 4:03?It is not neccessary to use all the tables.
|
SELECT Format FROM table WHERE Date = may 24, 2008
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Format has a Date of may 24, 2008?.It is not neccessary to use all the tables.
|
SELECT "Year (Ceremony)" FROM table_24790 WHERE "Result" = 'Nominee'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is every ceremony year for the result of nominee?It is not neccessary to use all the tables.
|
SELECT COUNT(directed_by) FROM table_12159115_2 WHERE us_viewers__millions_ = "11.34"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the total number of directors who've directed episodes seen by 11.34 million US viewers?It is not neccessary to use all the tables.
|
SELECT AVG Total FROM table WHERE Gold < 3 AND Silver < 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the average total for countries with under 3 golds and 0 silvers?.It is not neccessary to use all the tables.
|
SELECT Round FROM table WHERE Player = nick gillis
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What round was Nick Gillis?.It is not neccessary to use all the tables.
|
SELECT Place FROM table WHERE Country = united states AND To par = +1 AND Player = tim herron
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the place of plyaer Tim Herron from the United States with a to par of +1?.It is not neccessary to use all the tables.
|
SELECT COUNT(*) FROM table_204_36 WHERE "result" = 'w' AND "date" = 1941
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how many wins did georgetown achieve in 1941 ?It is not neccessary to use all the tables.
|
SELECT Power (kW) FROM table WHERE Frequency = 102.3mhz AND Location = baguio
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the power at Baguio where the frequency is 102.3mhz?.It is not neccessary to use all the tables.
|
SELECT "Score" FROM table_46067 WHERE "Away team" = 'chelsea'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the score for the away team Chelsea?It is not neccessary to use all the tables.
|
SELECT COUNT Round FROM table WHERE Position = wide receiver AND College = kent state
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the total number of round for wide receiver for kent state.It is not neccessary to use all the tables.
|
SELECT MAX 65 to 69 FROM table WHERE 35 to 39 = 1606
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the maximum 65-69 and 35-39 is 1606?.It is not neccessary to use all the tables.
|
SELECT Catalog FROM table WHERE Region = france
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Catalog number in the Region of France?.It is not neccessary to use all the tables.
|
SELECT round FROM table_name_4 WHERE circuit = "portland international raceway"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What round was the circuit portland international raceway?It is not neccessary to use all the tables.
|
SELECT Venue FROM table WHERE Score = 8-2
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the venue when the score was 8-2?.It is not neccessary to use all the tables.
|
SELECT crowd FROM table_name_41 WHERE date = "4 july 1981" AND away_team = "essendon"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the crowd size on 4 july 1981 and a Away team of essendon?It is not neccessary to use all the tables.
|
SELECT MIN Population 1.1.2008 FROM table WHERE Population per square km = 1.957 AND Population 1.1.2006 < 12.67
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the least population 1.1.2008 with population per square km of 1.957 and population 1.1.2006 less than 12.67.It is not neccessary to use all the tables.
|
SELECT Range FROM table WHERE Isolation < 2.35 AND Rank > 38 AND Elevation (ft) > 6,080 AND Peak Name = plott balsam
|
CREATE TABLE INST, Here is a database schema( table schema);
|
WHAT IS THE RANGE WITH ISOLATION SMALLER THAN 2.35, RANK LARGER THAN 38, ELEVATION GREATER THAN 6,080, AND NAMED PLOTT BALSAM?.It is not neccessary to use all the tables.
|
SELECT MAX(against) FROM table_name_85 WHERE lost < 20 AND draw > 2 AND favour < 11
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the highest Against where they lost less than 20 games tied more than 2 of them and they had Favour less than 11?It is not neccessary to use all the tables.
|
SELECT attendance FROM table_name_33 WHERE record = "6–8"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Record of 6–8 had what attendance?It is not neccessary to use all the tables.
|
SELECT rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Find the captain rank that has some captains in both Cutter and Armed schooner classes.It is not neccessary to use all the tables.
|
SELECT First elected FROM table WHERE Incumbent = Phil J. Welch
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In what year was Phil J. Welch first elected?.It is not neccessary to use all the tables.
|
SELECT bb___blind_bear FROM table_2603017_2 WHERE ba___running_bear = "MF - Mountain Falcon"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is bb - blind bear where ba - running bear is mf - mountain falcon?It is not neccessary to use all the tables.
|
SELECT Birth AS name FROM table_name_45 WHERE start_of_reign < 1986 AND name = "angelarios angelarij"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Angelarios Angelarij with a Start of Reign date before 1986 Birth Name?It is not neccessary to use all the tables.
|
SELECT Date FROM table WHERE Status = five nations AND Venue = twickenham , london AND Opposing Teams = ireland
|
CREATE TABLE INST, Here is a database schema( table schema);
|
When Status of five nations, and a Venue of twickenham , london, and a Opposing Teams of ireland are in?.It is not neccessary to use all the tables.
|
SELECT Score FROM table WHERE Result = hunter mariners def. castleford tigers
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the score for the match that had the result of Hunter Mariners def. Castleford Tigers?.It is not neccessary to use all the tables.
|
SELECT Producer FROM table WHERE Role = rizzette
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Producer has a Role of rizzette?.It is not neccessary to use all the tables.
|
SELECT MAX Year FROM table WHERE Association = american music awards AND Category = favorite rap/hip-hop new artist
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who won the most recent favorite rap/hip-hop new artist at the American music awards?.It is not neccessary to use all the tables.
|
SELECT MIN(crowd) FROM table_name_25 WHERE away_team = "st kilda"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the smallest crowd size for away team st kilda?It is not neccessary to use all the tables.
|
SELECT SUM Crowd FROM table WHERE Venue = junction oval
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many people attended Junction Oval?.It is not neccessary to use all the tables.
|
SELECT name FROM table_name_14 WHERE date = "cancelled"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What tour was cancelled?It is not neccessary to use all the tables.
|
SELECT MAX Points (Pts.) FROM table WHERE Team (Equipo) = orion AND Lost (PP) > 4
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the largest number of points for Orion with more than 4 losses?.It is not neccessary to use all the tables.
|
SELECT location FROM table_name_29 WHERE date = "october 16"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the location on October 16?It is not neccessary to use all the tables.
|
SELECT COUNT Engine FROM table WHERE Model Designation = 97G00
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many different engines are there for the model with model designation 97G00?.It is not neccessary to use all the tables.
|
SELECT MAX Drawn FROM table WHERE Points = 14 AND Games < 7
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the highest number of draws with 14 points and less than 7 games?.It is not neccessary to use all the tables.
|
SELECT Score FROM table WHERE Tournament = tampere , finland
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Score, when Tournament is "Tampere , Finland"?.It is not neccessary to use all the tables.
|
SELECT 2009 FROM table WHERE 2010 = 0 AND 2008 = 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What 2009 has a 0 in 2008 & 2010?.It is not neccessary to use all the tables.
|
SELECT "City" FROM table_36963 WHERE "Founded" = '1857'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What city was founded in 1857?It is not neccessary to use all the tables.
|
SELECT Name FROM table WHERE N = 28
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the name of the player when n is 28?.It is not neccessary to use all the tables.
|
SELECT Score FROM table WHERE Visitor = new jersey AND Date = february 27
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the score of the game on February 27 with New Jersey as the visitor team?.It is not neccessary to use all the tables.
|
SELECT Council FROM table WHERE 2007 result = no overall control (ind + snp)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What council has a 2007 result of no overall control (ind + snp)?.It is not neccessary to use all the tables.
|
SELECT AVG(2006) FROM table_name_47 WHERE 1970 < 9
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the percentage in 2006 that had less than 9% in 1970?It is not neccessary to use all the tables.
|
SELECT COUNT Year Location FROM table WHERE Womens Doubles = Jing Junhong Li Jiawei
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many year locations are there for the womens doubles in jing junhong li jiawei?.It is not neccessary to use all the tables.
|
SELECT Qual 2 FROM table WHERE Best = 1:20.772
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the time for the second qualification where the best time was 1:20.772?.It is not neccessary to use all the tables.
|
SELECT style FROM table_name_50 WHERE first_performance = "15 november 2007"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Style of the First Performance of Billy Elliot on 15 November 2007?It is not neccessary to use all the tables.
|
SELECT MIN(game) FROM table_24464253_1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the number of the first game?It is not neccessary to use all the tables.
|
SELECT home_team FROM table_name_75 WHERE date = "31 january 1951" AND away_team = "sheffield united"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the home team on 31 January 1951 when away team was Sheffield United?It is not neccessary to use all the tables.
|
SELECT SUM Year FROM table WHERE Film = klondike annie
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Year of the Film Klondike Annie?.It is not neccessary to use all the tables.
|
SELECT MAX(attendance) FROM table_name_14 WHERE away = "real juventud"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the highest attendance against Real Juventud?It is not neccessary to use all the tables.
|
SELECT Status FROM table WHERE Name = cadeby
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What status is shown for Cadeby?.It is not neccessary to use all the tables.
|
SELECT Most populous city/town FROM table WHERE County town = castlebar
|
CREATE TABLE INST, Here is a database schema( table schema);
|
County town of castlebar has the most populous city/town?.It is not neccessary to use all the tables.
|
SELECT customer_phone, customer_email FROM Customers WHERE customer_first_name = "Aniyah" AND customer_last_name = "Feest"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the phone and email for customer with first name Aniyah and last name Feest?It is not neccessary to use all the tables.
|
SELECT MAX Year FROM table WHERE Winners = hawthorn AND Season Result = preliminary finalist AND Crowd < 27,407
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the highest year than hawthorn won with a season result of preliminary finalist and a crowd smaller than 27,407?.It is not neccessary to use all the tables.
|
SELECT COUNT("club") FROM table_204_923 WHERE "league(s)" IS NULL
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how many clubs at most do n't have leagues ?It is not neccessary to use all the tables.
|
SELECT date FROM table_name_30 WHERE visitor = "anaheim"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the date of the Red Wings home game against Anaheim?It is not neccessary to use all the tables.
|
SELECT class FROM table_name_87 WHERE games↑ = 2 AND name = "ashton cobb"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Ashton Cobb's class in Game 2?It is not neccessary to use all the tables.
|
SELECT Away FROM table WHERE Date = 14 september 2008 AND Attendance > 1881
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Away has a Date of 14 september 2008, and an Attendance larger than 1881?.It is not neccessary to use all the tables.
|
SELECT Date FROM table WHERE Winner = new york giants AND Year > 2011
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What date did the new york giants win after 2011?.It is not neccessary to use all the tables.
|
SELECT Driver FROM table WHERE Grid = 11
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who drove the grid 11 car?.It is not neccessary to use all the tables.
|
SELECT qual FROM table_name_55 WHERE year = "1966"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is 1966's Qual rating?It is not neccessary to use all the tables.
|
SELECT player FROM table_23670057_1 WHERE no = 5
|
CREATE TABLE INST, Here is a database schema( table schema);
|
name the player for number 5It is not neccessary to use all the tables.
|
SELECT COUNT("Season") FROM table_4195 WHERE "Position" = '3rd'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many seasons are there for the 3rd position?It is not neccessary to use all the tables.
|
SELECT COUNT Original Airdate FROM table WHERE Episode # = 1.8
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many times did episode 1.8 air?.It is not neccessary to use all the tables.
|
SELECT R FROM table WHERE Total = 1 AND Position = FW
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the R when the total is 1 and the position is fw?.It is not neccessary to use all the tables.
|
SELECT Owner FROM table WHERE Seats = 84
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which owner has 84 seats?.It is not neccessary to use all the tables.
|
SELECT Population FROM table WHERE City = Gilroy
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the population if the city is Gilroy?.It is not neccessary to use all the tables.
|
SELECT COUNT Share FROM table WHERE Rank (Night) = 9
|
CREATE TABLE INST, Here is a database schema( table schema);
|
If the night rank is 9, what is the total share number?.It is not neccessary to use all the tables.
|
SELECT Type FROM table WHERE Location = St Ives, Cambridgeshire
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what are all the type where location is st ives, cambridgeshire.It is not neccessary to use all the tables.
|
SELECT opponent FROM table_name_92 WHERE team = "milwaukee braves"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which team opposed the Milwaukee Braves?It is not neccessary to use all the tables.
|
SELECT Date FROM table WHERE Catalog = xllp 369
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the date for XLLP 369?.It is not neccessary to use all the tables.
|
SELECT constructor FROM table_name_68 WHERE grid < 20 AND laps = 6
|
CREATE TABLE INST, Here is a database schema( table schema);
|
I want the constructor for grid less than 20 and Laps of 6It is not neccessary to use all the tables.
|
SELECT Cover FROM table WHERE Published = may 27, 2009 (hc) may 20, 2009 (tpb)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What cover has a published date of May 27, 2009 (hc) May 20, 2009 (tpb)?.It is not neccessary to use all the tables.
|
SELECT wins FROM table_name_70 WHERE matches = "4" AND success_rate = "25%"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the win for 4 matches with a success rate of 25%?It is not neccessary to use all the tables.
|
SELECT Year FROM table WHERE Competition = universiade
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In which year did he compete in the Universiade?.It is not neccessary to use all the tables.
|
SELECT builder FROM table_19872699_1 WHERE skipper = "Ken Read"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who build the boat where Ken Read was the skipper?It is not neccessary to use all the tables.
|
SELECT MAX Average FROM table WHERE Chinese title = 魚躍在花見
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the number of the average of the drama titled 魚躍在花見.It is not neccessary to use all the tables.
|
SELECT ParentId AS "Post Link", OwnerUserId AS "User Link", COUNT(*) AS "Number of Answers" FROM Posts WHERE ParentId > 0 AND OwnerUserId > 0 AND Score > 5 GROUP BY ParentId, OwnerUserId HAVING COUNT(*) >= 2 ORDER BY COUNT(*) DESC
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Questions with multiple answers by the same user.It is not neccessary to use all the tables.
|
SELECT Final score FROM table WHERE Date = november 22
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Final score on november 22?.It is not neccessary to use all the tables.
|
SELECT area_served FROM table_name_99 WHERE callsign = "5ddn"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which area served has a Callsign of 5ddn?It is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.long_title = "Implant of pulsation balloon"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
give me the number of patients whose insurance is private and procedure long title is implant of pulsation balloon?It is not neccessary to use all the tables.
|
SELECT Surface FROM table WHERE Tournament = manta, ecuador
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the surface when the tournament is manta, ecuador?.It is not neccessary to use all the tables.
|
SELECT Trainer FROM table WHERE Year = 2013
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the Trainer with the Year of 2013?.It is not neccessary to use all the tables.
|
SELECT MIN Overall attendance FROM table WHERE Overall goals scored = 19
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the minimum overall attendance where the goals scored were 19?.It is not neccessary to use all the tables.
|
SELECT Engine FROM table WHERE Chassis = porsche 718 AND Points = 0 AND Year < 1964
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the engine that saw a Chassis of porsche 718, and 0 points, prior to 1964?.It is not neccessary to use all the tables.
|
SELECT name FROM accounts ORDER BY name
|
CREATE TABLE INST, Here is a database schema( table schema);
|
List all customers’ names in the alphabetical order.It is not neccessary to use all the tables.
|
SELECT Outcome FROM table WHERE Date = 20 november 2011
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What Outcome happened on a Date that was 20 november 2011?.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 AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare AS FARE_0, fare AS FARE_1, fare_basis AS FARE_BASIS_0, fare_basis AS FARE_BASIS_1, fare_basis AS FARE_BASIS_2, flight, flight_fare AS FLIGHT_FARE_0, flight_fare AS FLIGHT_FARE_1 WHERE (((((((((flight.arrival_time < 41 OR flight.time_elapsed >= 60) AND flight.departure_time > flight.arrival_time) AND DATE_DAY_1.day_number = 6 AND DATE_DAY_1.month_number = 5 AND DATE_DAY_1.year = 1991 AND DAYS_1.day_name = DATE_DAY_1.day_name AND flight.flight_days = DAYS_1.days_code) AND DATE_DAY_0.day_number = 6 AND DATE_DAY_0.month_number = 5 AND DATE_DAY_0.year = 1991 AND DAYS_0.day_name = DATE_DAY_0.day_name AND FARE_BASIS_0.class_type = 'FIRST' AND FARE_BASIS_1.basis_days = DAYS_0.days_code AND FARE_0.fare_basis_code = FARE_BASIS_0.fare_basis_code AND FARE_0.fare_basis_code = FARE_BASIS_1.fare_basis_code AND FLIGHT_FARE_0.fare_id = FARE_0.fare_id AND flight.flight_id = FLIGHT_FARE_0.flight_id) OR ((DATE_DAY_1.day_number = 7 AND DATE_DAY_1.month_number = 5 AND DATE_DAY_1.year = 1991 AND DAYS_1.day_name = DATE_DAY_1.day_name AND flight.flight_days = DAYS_1.days_code AND NOT ((flight.arrival_time < 41 OR flight.time_elapsed >= 60) AND flight.departure_time > flight.arrival_time)) AND DATE_DAY_0.day_number = 7 AND DATE_DAY_0.month_number = 5 AND DATE_DAY_0.year = 1991 AND DAYS_0.day_name = DATE_DAY_0.day_name AND FARE_BASIS_0.class_type = 'FIRST' AND FARE_BASIS_1.basis_days = DAYS_0.days_code AND FARE_0.fare_basis_code = FARE_BASIS_0.fare_basis_code AND FARE_0.fare_basis_code = FARE_BASIS_1.fare_basis_code AND FLIGHT_FARE_0.fare_id = FARE_0.fare_id AND flight.flight_id = FLIGHT_FARE_0.flight_id)) AND FARE_BASIS_2.class_type = 'FIRST' AND FARE_1.fare_basis_code = FARE_BASIS_2.fare_basis_code AND FLIGHT_FARE_1.fare_id = FARE_1.fare_id AND flight.flight_id = FLIGHT_FARE_1.flight_id) AND flight.arrival_time < 1200) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.airline_code = 'UA'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what flights are available from DENVER to BALTIMORE FIRST class on UA arriving 5 7 before 1200It is not neccessary to use all the tables.
|
SELECT Perpetrator FROM table WHERE Location = bait al-aqari
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the perpetrator in Bait Al-Aqari?.It is not neccessary to use all the tables.
|
SELECT MAX(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 = 28253 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime 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') GROUP BY STRFTIME('%y-%m', chartevents.charttime)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
indicate the monthly maximum arterial bp mean of patient 28253 on the first hospital encounter.It is not neccessary to use all the tables.
|
SELECT "Lifespan" FROM table_69138 WHERE "Party" = 'republican' AND "Years" = '1953–1970'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the lifespan of the Representative from the Republican Party during the years of 1953 1970?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.