sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Opponent FROM table WHERE Result = –
CREATE TABLE INST, Here is a database schema( table schema);
What Opponent has a Result of –?.It is not neccessary to use all the tables.
SELECT MIN(floors) FROM table_name_39 WHERE name = "900 north michigan" AND year < 1989
CREATE TABLE INST, Here is a database schema( table schema);
Name of 900 north michigan and a Year smaller than 1989 involves what lowest floors?It is not neccessary to use all the tables.
SELECT Years FROM table WHERE Name = asashio
CREATE TABLE INST, Here is a database schema( table schema);
What are asashio's years?.It is not neccessary to use all the tables.
SELECT song FROM table_name_52 WHERE points < 53 AND place > 8 AND draw > 1
CREATE TABLE INST, Here is a database schema( table schema);
Which Song has Points smaller than 53 and a Place larger than 8 and a Draw larger than 1?It is not neccessary to use all the tables.
SELECT MIN Term Limited FROM table WHERE Residence = Coshocton
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest term limit for the senator who resides in Coshocton? .It is not neccessary to use all the tables.
SELECT Draft FROM table WHERE Pick = 46
CREATE TABLE INST, Here is a database schema( table schema);
In which year was the Pick #46?.It is not neccessary to use all the tables.
SELECT "2001" FROM table_68544 WHERE "Total" > '1' AND "2009" = '8'
CREATE TABLE INST, Here is a database schema( table schema);
What is the year 2001 with a total larger than 1, and 2009 with 8?It is not neccessary to use all the tables.
SELECT disc_number FROM table_name_19 WHERE track_number = "02" AND release_date = "7 september 2004"
CREATE TABLE INST, Here is a database schema( table schema);
What kind of Disc number has a Track number of 02 on 7 september 2004?It is not neccessary to use all the tables.
SELECT Wins FROM table WHERE Draws = 8
CREATE TABLE INST, Here is a database schema( table schema);
How many wins happened with 8 draws?.It is not neccessary to use all the tables.
SELECT SUM(pos) FROM table_name_41 WHERE make = "chevrolet" AND driver = "jack sprague" AND car__number < 2
CREATE TABLE INST, Here is a database schema( table schema);
Which Pos has a Make of chevrolet and a Driver of jack sprague and a Car # smaller than 2?It is not neccessary to use all the tables.
SELECT "Round" FROM table_4967 WHERE "Player" = 'jamie cooke'
CREATE TABLE INST, Here is a database schema( table schema);
What round did Jamie Cooke play in?It is not neccessary to use all the tables.
SELECT mountain_peak FROM table_name_29 WHERE mountain_range = "spanish peaks"
CREATE TABLE INST, Here is a database schema( table schema);
Which mountain peak has spanish peaks?It is not neccessary to use all the tables.
SELECT result FROM table_name_60 WHERE competition = "algarve cup" AND date = "2006-03-13"
CREATE TABLE INST, Here is a database schema( table schema);
On 2006-03-13 in the algarve cup, who won?It is not neccessary to use all the tables.
SELECT Points classification FROM table WHERE Trofeo Fast Team = metauro mobili-pinarello AND Stage = 6
CREATE TABLE INST, Here is a database schema( table schema);
Which Points classification has a Trofeo Fast Team of metauro mobili-pinarello, and a Stage of 6?.It is not neccessary to use all the tables.
SELECT COUNT(goal) FROM table_name_81 WHERE date = "15 november 1989"
CREATE TABLE INST, Here is a database schema( table schema);
How many total goals were made at the game on 15 November 1989?It is not neccessary to use all the tables.
SELECT submitting_country FROM table_12842068_1 WHERE original_title = "Miehen työ"
CREATE TABLE INST, Here is a database schema( table schema);
What country submitted miehen työ?It is not neccessary to use all the tables.
SELECT MIN(goals_for) FROM table_name_35 WHERE goals_against = 75 AND drawn < 11
CREATE TABLE INST, Here is a database schema( table schema);
What is the fewest goals for when goals against is 75 and drawn is smaller than 11?It is not neccessary to use all the tables.
SELECT MIN("08-09 I/O best") FROM table_26422
CREATE TABLE INST, Here is a database schema( table schema);
What is the least 08-09 i/o best?It is not neccessary to use all the tables.
SELECT Safari FROM table WHERE Firefox = 30.82%
CREATE TABLE INST, Here is a database schema( table schema);
What percentage of users were using Safari during the period in which 30.82% were using Firefox?.It is not neccessary to use all the tables.
SELECT tv_station FROM table_name_45 WHERE episodes > 10 AND romaji_title = "tantei gakuen q"
CREATE TABLE INST, Here is a database schema( table schema);
Which TV station has romaji title of tantei gakuen q and episodes larger than 10?It is not neccessary to use all the tables.
SELECT year FROM table_name_79 WHERE competition_description = "u.s. championships" AND rank_final < 3 AND apparatus = "all-around"
CREATE TABLE INST, Here is a database schema( table schema);
What is Year when Competition Description is "U.S. Championships" when Rank-Final is less than 3 and when Apparatus is "All-Around"?It is not neccessary to use all the tables.
SELECT SUM(games) FROM table_name_80 WHERE rank < 4 AND rebounds < 275 AND team = "bruesa gbc"
CREATE TABLE INST, Here is a database schema( table schema);
Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4?It is not neccessary to use all the tables.
SELECT COUNT Release date FROM table WHERE Country = canada
CREATE TABLE INST, Here is a database schema( table schema);
How many release dates has Canada had?.It is not neccessary to use all the tables.
SELECT visiting_team FROM table_name_41 WHERE date = "september 15"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the visiting team that played on September 15?It is not neccessary to use all the tables.
SELECT SUM ERP W FROM table WHERE Call sign = k222al
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the erp w of the k222al call sign?.It is not neccessary to use all the tables.
SELECT player FROM table_name_48 WHERE school_club_team_country = "st. mary's"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player for St. Mary's team?It is not neccessary to use all the tables.
SELECT Kickoff FROM table WHERE NFL.com Recap = recap AND Week < 17 AND Game Site = arrowhead stadium
CREATE TABLE INST, Here is a database schema( table schema);
What is the kickoff that has a NFL.com recap, is played before week 17, and is played at arrowhead stadium?.It is not neccessary to use all the tables.
SELECT Sets– FROM table WHERE Points– < 1418 AND Sets+ < 41 AND Team = ushuaïa ibiza voley
CREATE TABLE INST, Here is a database schema( table schema);
What is the Sets- for Team ushuaïa ibiza voley when the Points- were less than 1418 and the Sets+ were less than 41?.It is not neccessary to use all the tables.
SELECT SUM(laps) FROM table_name_5 WHERE grid < 28 AND time = "retirement" AND bike = "ducati 1098 f08"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the laps with a grid less than 28 retirement time and a ducati 1098 f08 bikes?It is not neccessary to use all the tables.
SELECT Played FROM table WHERE Lost > 2 AND Team = américa
CREATE TABLE INST, Here is a database schema( table schema);
Which Played has a Lost larger than 2, and a Team of américa?.It is not neccessary to use all the tables.
SELECT Superlative FROM table WHERE Record Set = 12 nominations
CREATE TABLE INST, Here is a database schema( table schema);
What Superlative had a record set of 12 nominations?.It is not neccessary to use all the tables.
SELECT System FROM table WHERE Name = mess
CREATE TABLE INST, Here is a database schema( table schema);
Which system is named mess?.It is not neccessary to use all the tables.
SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
List the most common type of Status across cities.It is not neccessary to use all the tables.
SELECT Party FROM table WHERE Term start = 5 august 1999
CREATE TABLE INST, Here is a database schema( table schema);
Which party had a term start of 5 august 1999?.It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'NESLANG' AND course.number = 499 AND instructor.name LIKE '%Judith Lynch-sauer%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id
CREATE TABLE INST, Here is a database schema( table schema);
Has Judith Lynch-sauer ever taught the course NESLANG 499 ?It is not neccessary to use all the tables.
SELECT name, LOCATION, number_of_platforms FROM station
CREATE TABLE INST, Here is a database schema( table schema);
Show the name location and number of platforms for all stations.It is not neccessary to use all the tables.
SELECT MAX(year_started) FROM table_name_38 WHERE current_car = "arctic sun" AND number_of_cars < 1
CREATE TABLE INST, Here is a database schema( table schema);
Which Year started is the highest one that has a Current car of arctic sun and a Number of cars smaller than 1?It is not neccessary to use all the tables.
SELECT launch_date FROM table_18161217_2 WHERE cospar_id = "2008-033A"
CREATE TABLE INST, Here is a database schema( table schema);
What was the launch date the satellite with cospar ID is 2008-033A?It is not neccessary to use all the tables.
SELECT digital_channel FROM table_2857352_3 WHERE virtual_channel = "23.2"
CREATE TABLE INST, Here is a database schema( table schema);
What digital channel corresponds to virtual channel 23.2?It is not neccessary to use all the tables.
SELECT 2008 FROM table_name_22 WHERE tournament = "shanghai"
CREATE TABLE INST, Here is a database schema( table schema);
What shows for 2008 at the Shanghai tournament?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Winner = Edward Shaw
CREATE TABLE INST, Here is a database schema( table schema);
When edward shaw is the winner what is the date?.It is not neccessary to use all the tables.
SELECT opponent FROM table_22847880_2 WHERE record = "11-1"
CREATE TABLE INST, Here is a database schema( table schema);
Name the opponent for 11-1It is not neccessary to use all the tables.
SELECT province FROM table_name_63 WHERE airport = "luogang international airport"
CREATE TABLE INST, Here is a database schema( table schema);
Which province is Luogang International Airport located in?It is not neccessary to use all the tables.
SELECT date FROM table_name_80 WHERE venue = "lake oval"
CREATE TABLE INST, Here is a database schema( table schema);
What date was the game played at Lake Oval?It is not neccessary to use all the tables.
SELECT COUNT No. in series FROM table WHERE Canadian airdate = 11 February 2008
CREATE TABLE INST, Here is a database schema( table schema);
The canadian airdate of 11 february 2008 applied to what series number?.It is not neccessary to use all the tables.
SELECT T1.Title, T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID
CREATE TABLE INST, Here is a database schema( table schema);
Please show the titles of films and the types of market estimations.It is not neccessary to use all the tables.
SELECT album FROM table_name_68 WHERE label_and_cat_number = "full moon/warner 28628"
CREATE TABLE INST, Here is a database schema( table schema);
Which album has a label and cat# full moon/warner 28628?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Player = fred haas
CREATE TABLE INST, Here is a database schema( table schema);
Where is Fred Haas from?.It is not neccessary to use all the tables.
SELECT Res. FROM table WHERE Time = 5:00 AND Record = 14-4
CREATE TABLE INST, Here is a database schema( table schema);
What is the result when the time was 5:00 and a record of 14-4?.It is not neccessary to use all the tables.
SELECT MAX("Events") FROM table_7816 WHERE "Tournament" = 'masters tournament' AND "Top-25" < '4'
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest number of events with the Masters Tournament and less than 4 in the top-25?It is not neccessary to use all the tables.
SELECT In office FROM table WHERE Member = mark coulton
CREATE TABLE INST, Here is a database schema( table schema);
What is the office held by member Mark Coulton?.It is not neccessary to use all the tables.
SELECT Crowd FROM table WHERE Venue = glenferrie oval
CREATE TABLE INST, Here is a database schema( table schema);
How large of a crowd can the Glenferrie oval hold?.It is not neccessary to use all the tables.
SELECT original_air_date FROM table_24223834_3 WHERE us_viewers__in_millions_ = "1.023"
CREATE TABLE INST, Here is a database schema( table schema);
What date did the episode that had 1.023 million u.s. viewers originally air?It is not neccessary to use all the tables.
SELECT date FROM table_17001658_10 WHERE team = "Philadelphia"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the team Philadelphia?It is not neccessary to use all the tables.
SELECT venue FROM table_name_82 WHERE event = "4x400m relay" AND year > 2002 AND position = "4th"
CREATE TABLE INST, Here is a database schema( table schema);
Is there a Venus that's a year later than 2002 with an Event of 4x400m relay in 4th Position?It is not neccessary to use all the tables.
SELECT Move-only FROM table WHERE Developer = AiLive
CREATE TABLE INST, Here is a database schema( table schema);
For the game whose developer was Ailive, is it a Move-only release?.It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE Production code = 3T7458
CREATE TABLE INST, Here is a database schema( table schema);
When 3t7458 is the production code who are the writers?.It is not neccessary to use all the tables.
SELECT ACL Qualification FROM table WHERE Finals Qualification = dnq AND Minor Ladder Position = 5th
CREATE TABLE INST, Here is a database schema( table schema);
What's the ACL qualification when the minor ladder position is 5th and the finals qualifications were DNQ?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Location Attendance = Omni Coliseum 10,330
CREATE TABLE INST, Here is a database schema( table schema);
Name the date for omni coliseum 10,330.It is not neccessary to use all the tables.
SELECT MAX(money___) AS $__ FROM table_name_11 WHERE to_par < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Money ( $ ), when To Par is less than 2?It is not neccessary to use all the tables.
SELECT Team Name FROM table WHERE Losses = 6 AND Games > 18
CREATE TABLE INST, Here is a database schema( table schema);
Who is the team that has played more than 18 games and has 6 losses?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Away team score = 12.13 (85)
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the team with the Away score of 12.13 (85)?.It is not neccessary to use all the tables.
SELECT time FROM table_name_72 WHERE event = "adrenaline mma 3"
CREATE TABLE INST, Here is a database schema( table schema);
How long was the fight 'adrenaline mma 3'?It is not neccessary to use all the tables.
SELECT Height ft (m) FROM table WHERE Name = regions bank building
CREATE TABLE INST, Here is a database schema( table schema);
What is the height in ft and m of the regions bank building?.It is not neccessary to use all the tables.
SELECT Premiere FROM table WHERE Channel = Mega Channel
CREATE TABLE INST, Here is a database schema( table schema);
What is the premiere on the mega channel?.It is not neccessary to use all the tables.
SELECT client FROM table_name_36 WHERE gnu_linux = "no"
CREATE TABLE INST, Here is a database schema( table schema);
Which client had no GNU/Linux?It is not neccessary to use all the tables.
SELECT "Processor" FROM table_26584 WHERE "Model (list)" = 'X33x0'
CREATE TABLE INST, Here is a database schema( table schema);
what is the name of the processor for model x33x0?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE To par = 7 AND Country = england
CREATE TABLE INST, Here is a database schema( table schema);
Who was the player for England when the to par is 7?.It is not neccessary to use all the tables.
SELECT player FROM table_name_3 WHERE pick < 126 AND team = "houston oilers"
CREATE TABLE INST, Here is a database schema( table schema);
What player was picked earlier than 126 by the Houston Oilers?It is not neccessary to use all the tables.
SELECT party FROM table_1342249_5 WHERE district = "Arkansas 5"
CREATE TABLE INST, Here is a database schema( table schema);
What party did the incumbent from the Arkansas 5 district belong to?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM member WHERE Membership_card = 'Black'
CREATE TABLE INST, Here is a database schema( table schema);
How many members have the black membership card?It is not neccessary to use all the tables.
SELECT payment_method_code, COUNT(*) FROM Customer_Payments GROUP BY payment_method_code ORDER BY payment_method_code
CREATE TABLE INST, Here is a database schema( table schema);
List all payment methods and number of payments using each payment methods Plot them as bar chart, display names in ascending order please.It is not neccessary to use all the tables.
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-52327')) AND NOT vitalperiodic.heartrate IS NULL AND DATETIME(vitalperiodic.observationtime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') ORDER BY vitalperiodic.observationtime DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
when was last the heartrate of patient 030-52327 measured today?It is not neccessary to use all the tables.
SELECT date_released FROM table_1463383_1 WHERE green_communist = "8.9%"
CREATE TABLE INST, Here is a database schema( table schema);
When was there 8.9% Green-Communist?It is not neccessary to use all the tables.
SELECT SUM Attendance FROM table WHERE Date = november 29, 1953
CREATE TABLE INST, Here is a database schema( table schema);
What was the Attendance on November 29, 1953?.It is not neccessary to use all the tables.
SELECT SUM Bronze FROM table WHERE Country = malaysia AND Total < 2644
CREATE TABLE INST, Here is a database schema( table schema);
Which Bronze has a Country of malaysia, and a Total smaller than 2644?.It is not neccessary to use all the tables.
SELECT COUNT(original_air_date) FROM table_16617011_1 WHERE us_viewers__millions_ = "14.20"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number air date for 14.20 us viewersIt is not neccessary to use all the tables.
SELECT COUNT(top_25) FROM table_name_95 WHERE top_10 = 11
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of top-25s for the major that has 11 top-10s?It is not neccessary to use all the tables.
SELECT lundu__salako_ FROM table_name_65 WHERE tagalog = "pagkain"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Lundu (Salako) word for the Tagalog word pagkain?It is not neccessary to use all the tables.
SELECT MIN(total) FROM table_name_80 WHERE location = "boston, massachusetts"
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest episode of the series that is set in Boston Massachusetts?It is not neccessary to use all the tables.
SELECT SUM Pick # FROM table WHERE Name = anthony maddox
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the Pick # Anthony Maddox?.It is not neccessary to use all the tables.
SELECT COUNT Position FROM table WHERE Points = 30-8 AND Goals for > 25
CREATE TABLE INST, Here is a database schema( table schema);
How many positions have Points of 30-8 and more than 25 goals?.It is not neccessary to use all the tables.
SELECT MIN Ofsted number FROM table WHERE Intake = 60 AND Type = junior AND DCSF number < 3386
CREATE TABLE INST, Here is a database schema( table schema);
What is the junior type with an intake of 60 and a DCSF number less than 3386 with the smallest Ofsted number?.It is not neccessary to use all the tables.
SELECT COUNT(first_elected) FROM table_1342198_25 WHERE incumbent = "Morgan M. Moulder"
CREATE TABLE INST, Here is a database schema( table schema);
How many were first elected when the incumbent was Morgan M. Moulder?It is not neccessary to use all the tables.
SELECT AVG Crowd FROM table WHERE Home team score = 11.11 (77)
CREATE TABLE INST, Here is a database schema( table schema);
What was the average crowd size for a home team score of 11.11 (77)?.It is not neccessary to use all the tables.
SELECT COUNT Founded FROM table WHERE Nickname = mountain hawks
CREATE TABLE INST, Here is a database schema( table schema);
What is the number founded for the nickname mountain hawks?.It is not neccessary to use all the tables.
SELECT emissions_co2 FROM table_name_76 WHERE max_speed = "km/h (mph)" AND car_model = "panamera 4s"
CREATE TABLE INST, Here is a database schema( table schema);
What is the emissions CO2 with a max speed of km/h (mph) of the car model Panamera 4s?It is not neccessary to use all the tables.
SELECT DISTINCT aircraft_code FROM aircraft WHERE aircraft_code = 'M80'
CREATE TABLE INST, Here is a database schema( table schema);
what is the seating capacity of the aircraft M80It is not neccessary to use all the tables.
SELECT census_ranking FROM table_176524_2 WHERE official_name = "Perth"
CREATE TABLE INST, Here is a database schema( table schema);
What is the census ranking for the Perth parish?It is not neccessary to use all the tables.
SELECT game_site FROM table_13259034_2 WHERE date = "October 16, 1977"
CREATE TABLE INST, Here is a database schema( table schema);
Where did the teams play on October 16 1977?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 procedures.icd9_code = "12"
CREATE TABLE INST, Here is a database schema( table schema);
give me the number of patients whose procedure icd9 code is 12?It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_89 WHERE grid = 18
CREATE TABLE INST, Here is a database schema( table schema);
What was the time recorded for grid 18?It is not neccessary to use all the tables.
SELECT MIN(pick__number) FROM table_16441561_5 WHERE position = "LB"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the lowest picked LBIt is not neccessary to use all the tables.
SELECT SUM Overall FROM table WHERE Round < 4 AND College = tennessee AND Pick # > 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the total overall for the pick that went before round 4, who went to Tennessee for college, and was picked at a number bigger than 9?.It is not neccessary to use all the tables.
SELECT Capacity FROM table WHERE Opened < 1937 AND Region = champagne-ardenne
CREATE TABLE INST, Here is a database schema( table schema);
What capacity opened lessed than 1937 and is located in the region of champagne-ardenne?.It is not neccessary to use all the tables.
SELECT COUNT(round) FROM table_name_61 WHERE player = "travis hamonic"
CREATE TABLE INST, Here is a database schema( table schema);
What was the total rounds Travis Hamonic played?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Label = pacific jazz AND Label-Nr = st-20124
CREATE TABLE INST, Here is a database schema( table schema);
What is the song title on the Pacific Jazz label, and a Label-Nr of st-20124?.It is not neccessary to use all the tables.
SELECT MAX(district_wide) FROM table_2367847_2 WHERE other_programs_ & _adjustments = 1639
CREATE TABLE INST, Here is a database schema( table schema);
Name the most district wide for 1639 other programsIt is not neccessary to use all the tables.
SELECT AVG Tonnage FROM table WHERE Nationality = sweden AND Name of ship = siljan
CREATE TABLE INST, Here is a database schema( table schema);
What was the average tonnage for the Siljan ship from Sweden?.It is not neccessary to use all the tables.
SELECT EMP_HIREDATE, COUNT(EMP_HIREDATE) FROM EMPLOYEE AS T1 JOIN PROFESSOR AS T2 ON T1.EMP_NUM = T2.EMP_NUM WHERE T2.PROF_OFFICE = 'DRE 102' GROUP BY EMP_LNAME ORDER BY COUNT(EMP_HIREDATE) DESC
CREATE TABLE INST, Here is a database schema( table schema);
Show the number of professors who is in office DRE 102 hired in each weekday with a bar chart, I want to rank from high to low by the Y-axis.It is not neccessary to use all the tables.