sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT U.S. viewers (millions) FROM table WHERE Title = "Peopleing"
CREATE TABLE INST, Here is a database schema( table schema);
How many millions of people in the US watched the episode titled "Peopleing"?.It is not neccessary to use all the tables.
SELECT Nation FROM table WHERE Bronze < 5 AND Silver > 0
CREATE TABLE INST, Here is a database schema( table schema);
Bronze smaller than 5, and a Silver larger than 0 is which nation?.It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-19759')) AND medication.drugname IN ('ondansetron 2 mg/1 ml 2ml sdv inj', 'thiamine hcl 100 mg/ml ij soln', 'potassium chloride') AND STRFTIME('%y', medication.drugstarttime) >= '2105'
CREATE TABLE INST, Here is a database schema( table schema);
was potassium chloride, ondansetron 2 mg/1 ml 2ml sdv inj, or thiamine hcl 100 mg/ml ij soln prescribed for patient 016-19759 since 2105?It is not neccessary to use all the tables.
SELECT season FROM table_16331144_1 WHERE winning_mentor = "Ida Corr"
CREATE TABLE INST, Here is a database schema( table schema);
Which season did Ida Corr win?It is not neccessary to use all the tables.
SELECT MIN Converted FROM table WHERE Number = 19
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest converted value at number 19?.It is not neccessary to use all the tables.
SELECT Team #1 FROM table WHERE Team #2 = Chalkida
CREATE TABLE INST, Here is a database schema( table schema);
which team #1 played again chalkida.It is not neccessary to use all the tables.
SELECT time FROM table_name_56 WHERE name = "gemma spofforth"
CREATE TABLE INST, Here is a database schema( table schema);
Gemma Spofforth has what time?It is not neccessary to use all the tables.
SELECT year_location FROM table_28138035_20 WHERE womens_doubles = "Jing Junhong Li Jiawei"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the tour when jing junhong li jiawei played womens doubles?It is not neccessary to use all the tables.
SELECT season FROM table_name_63 WHERE year = "2005–06"
CREATE TABLE INST, Here is a database schema( table schema);
Which Season has a Year of 2005–06?It is not neccessary to use all the tables.
SELECT pronunciation_spelled_free FROM table_name_24 WHERE pronunciation_spelled_checked = "ɑ"
CREATE TABLE INST, Here is a database schema( table schema);
What is Pronunciation Spelled Free when Pronunciation Spelled Checked is "ɑ"?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = february 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the Record from February 10?.It is not neccessary to use all the tables.
SELECT * FROM table_test_26 WHERE left_main_coronary_artery_disease = 1 AND stenosis = 50
CREATE TABLE INST, Here is a database schema( table schema);
left main coronary artery disease with 50 % stenosisIt is not neccessary to use all the tables.
SELECT date FROM table_name_73 WHERE game < 4 AND score = "116-114"
CREATE TABLE INST, Here is a database schema( table schema);
What date has a game smaller than 4 and a score of 116-114?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Black Knights points = 54
CREATE TABLE INST, Here is a database schema( table schema);
Name the record for black knights points 54.It is not neccessary to use all the tables.
SELECT High rebounds FROM table WHERE Date = December 12
CREATE TABLE INST, Here is a database schema( table schema);
Who had the high rebounds record on December 12?.It is not neccessary to use all the tables.
SELECT COUNT(part_1) FROM table_1745843_10 WHERE verb_meaning = "to grow, to produce"
CREATE TABLE INST, Here is a database schema( table schema);
How many verbs mean to grow, to produceIt is not neccessary to use all the tables.
SELECT winner FROM table_name_82 WHERE name = "schimatari 1"
CREATE TABLE INST, Here is a database schema( table schema);
Name the winner for schimatari 1It is not neccessary to use all the tables.
SELECT AVG(demographic.age) FROM demographic WHERE demographic.diagnosis = "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA" AND demographic.days_stay = "5"
CREATE TABLE INST, Here is a database schema( table schema);
what is average age of patients whose primary disease is squamous cell carcinoma oral tongue/sda and days of hospital stay is 5?It is not neccessary to use all the tables.
SELECT event FROM table_name_18 WHERE medal = "gold" AND name = "duncan white"
CREATE TABLE INST, Here is a database schema( table schema);
Name Event of Medal of gold and a Name of duncan white?It is not neccessary to use all the tables.
SELECT party FROM table_1341884_45 WHERE incumbent = "Ray Roberts"
CREATE TABLE INST, Here is a database schema( table schema);
what is the political affiliation of ray robertsIt is not neccessary to use all the tables.
SELECT Score FROM table WHERE Decision = niittymaki AND Home = carolina
CREATE TABLE INST, Here is a database schema( table schema);
What was the score in the game where Carolina was the home team and Niittymaki received the decision?.It is not neccessary to use all the tables.
SELECT score FROM table_name_66 WHERE attendance = 275
CREATE TABLE INST, Here is a database schema( table schema);
Which score was associated with an attendance of 275?It is not neccessary to use all the tables.
SELECT Right ascension ( J2000 ) FROM table WHERE Object type = open cluster AND NGC number > 2547
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the right ascension for open cluster and NGC number more than 2547.It is not neccessary to use all the tables.
SELECT region_1 FROM table_15823956_1 WHERE series = "4"
CREATE TABLE INST, Here is a database schema( table schema);
What is the region 1 date for series 4It is not neccessary to use all the tables.
SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = "Elles"
CREATE TABLE INST, Here is a database schema( table schema);
How many languages have elles as the film title used in nomination?It is not neccessary to use all the tables.
SELECT "Chassis" FROM table_21883 WHERE "Average Speed (mph)" = '169.182'
CREATE TABLE INST, Here is a database schema( table schema);
When 169.182 is the average speed miles per hour what is the chassis?It is not neccessary to use all the tables.
SELECT population_under_1_year_old_censo_2007_hab_ FROM table_name_91 WHERE population_censo_2007_hab_ = "112.054*"
CREATE TABLE INST, Here is a database schema( table schema);
What is the under 1 year-old Censo 2007(hab) population with a population censo 2007(hab) of 112.054*?It is not neccessary to use all the tables.
SELECT pole_position FROM table_18095719_2 WHERE round = 7
CREATE TABLE INST, Here is a database schema( table schema);
Who had pole position in round 7?It is not neccessary to use all the tables.
SELECT COUNT(shader_model) FROM table_25839957_5 WHERE core_clock___mhz__ = "900"
CREATE TABLE INST, Here is a database schema( table schema);
How many shader models have a 900 core clock ( mhz )?It is not neccessary to use all the tables.
SELECT SS Winning Car FROM table WHERE Circuit = Road Atlanta AND B Winning Car = #35 Quantum Engineering #35 Honda CRX-Si
CREATE TABLE INST, Here is a database schema( table schema);
Name the ss winning car for road atlanta and #35 quantum engineering #35 honda crx-si.It is not neccessary to use all the tables.
SELECT player FROM table_name_32 WHERE rank < 2
CREATE TABLE INST, Here is a database schema( table schema);
Who's ranked less than 2?It is not neccessary to use all the tables.
SELECT canadian_chapters FROM table_28436909_4 WHERE founding_date = "1872-10-10"
CREATE TABLE INST, Here is a database schema( table schema);
When 1872-10-10 is the founding date what are the canadian chapters?It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Points Classification = damiano cunego
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner in the stage that Damiano Cunego led the points classification?.It is not neccessary to use all the tables.
SELECT COUNT(record) FROM table_17340355_6 WHERE high_rebounds = "Amar'e Stoudemire (11)"
CREATE TABLE INST, Here is a database schema( table schema);
What are the records of games where high rebounds is amar'e stoudemire (11)It is not neccessary to use all the tables.
SELECT COUNT Year of Most Recent Appearance FROM table WHERE Corps Name = suncoast sound AND Number of Finals Appearances > 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the year of most recent appearance of the Suncoast sound, who had more than 7 finals appearances?.It is not neccessary to use all the tables.
SELECT score FROM table_name_27 WHERE partner = "katie o'brien"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the final in which Melanie South played with partner Katie O'Brien?It is not neccessary to use all the tables.
SELECT COUNT(year) FROM table_1507806_1 WHERE winning_score = (76 - 73 - 79 - 72 = 300)
CREATE TABLE INST, Here is a database schema( table schema);
HOW MANY YEARS WAS IT FOR THE SCORE (76-73-79-72=300)?It is not neccessary to use all the tables.
SELECT MIN Assists FROM table WHERE Pims = 70 AND Goals < 19
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest number of assists with 70 Pims and less than 19 goals?.It is not neccessary to use all the tables.
SELECT "Record" FROM table_48836 WHERE "Location" = 'boston garden' AND "Date" = 'fri. nov. 9'
CREATE TABLE INST, Here is a database schema( table schema);
What is Record, when Location is 'Boston Garden', and when Date is 'Fri. Nov. 9'?It is not neccessary to use all the tables.
SELECT COUNT(qualifying) FROM table_15530244_5 WHERE race_3 = "3"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of qualifiying for race 3 being 3It is not neccessary to use all the tables.
SELECT T2.first_name, T2.last_name FROM addresses AS T1 JOIN students AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = "Wisconsin"
CREATE TABLE INST, Here is a database schema( table schema);
What are the first names and last names of students with address in Wisconsin state?It is not neccessary to use all the tables.
SELECT COUNT(votes) FROM table_name_4 WHERE artist = "sahlene" AND place > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of votes Sahlene with a place below 1 has?It is not neccessary to use all the tables.
SELECT visitor FROM table_name_66 WHERE date = "december 3"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the visitor on december 3?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Standing = T-10th
CREATE TABLE INST, Here is a database schema( table schema);
Name the year for t-10th.It is not neccessary to use all the tables.
SELECT COUNT(year_set) FROM table_name_24 WHERE long_course_short_course = "short course" AND time = "7:51.80"
CREATE TABLE INST, Here is a database schema( table schema);
What year did a short course have a time of 7:51.80?It is not neccessary to use all the tables.
SELECT "Attendance" FROM table_11090 WHERE "Home team" = 'a.f.c. totton'
CREATE TABLE INST, Here is a database schema( table schema);
How many people attended the game of a.f.c. totton?It is not neccessary to use all the tables.
SELECT Visitor FROM table WHERE Home = los angeles AND Game # = 19
CREATE TABLE INST, Here is a database schema( table schema);
Who is the visitor team of game 19 with Los Angeles as the home team?.It is not neccessary to use all the tables.
SELECT Plur. Pres. FROM table WHERE Past Part. = e AND Inf. Stem = e
CREATE TABLE INST, Here is a database schema( table schema);
What is the plural present that has a past participle of e and an infinitive stem of e?.It is not neccessary to use all the tables.
SELECT MIN(average) FROM table_name_26 WHERE team = "beijing guo'an" AND games > 240
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest average for Beijing Guo'an when they played more than 240 games?It is not neccessary to use all the tables.
SELECT competition FROM table_17594659_1 WHERE opposition = "Panathinaikos"
CREATE TABLE INST, Here is a database schema( table schema);
Name the competition of panathinaikosIt is not neccessary to use all the tables.
SELECT Result FROM table WHERE Field = bishop kearney field AND Date = august 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the result of the game at Bishop Kearney Field on August 2?.It is not neccessary to use all the tables.
SELECT Points classification FROM table WHERE Stage = 18b
CREATE TABLE INST, Here is a database schema( table schema);
Name the points classification for stage of 18b.It is not neccessary to use all the tables.
SELECT penalty FROM table_name_89 WHERE time = "29:17"
CREATE TABLE INST, Here is a database schema( table schema);
What was a penalty given for at time 29:17?It is not neccessary to use all the tables.
SELECT MIN(steals) FROM table_23346303_5 WHERE player = "Jasmine Wynne"
CREATE TABLE INST, Here is a database schema( table schema);
If the player is Jasmine Wynne what is the minimum number of steals?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Listed Owner(s) = Susan Bates
CREATE TABLE INST, Here is a database schema( table schema);
Name the team for susan bates.It is not neccessary to use all the tables.
SELECT series_premiere FROM table_name_25 WHERE tv_network_s_ = "acasa tv"
CREATE TABLE INST, Here is a database schema( table schema);
Which series premiered on Acasa TV?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE To par = +3 AND Player = ed sneed
CREATE TABLE INST, Here is a database schema( table schema);
What country is player ed sneed, who has a to par of +3, from?.It is not neccessary to use all the tables.
SELECT pick__number FROM table_name_8 WHERE position = "ol" AND player = "dominic picard"
CREATE TABLE INST, Here is a database schema( table schema);
What numbered pick was dominic picard ol selected?It is not neccessary to use all the tables.
SELECT agg FROM table_name_47 WHERE team_2 = "partizan"
CREATE TABLE INST, Here is a database schema( table schema);
When Partizan is Team 2, what is the Agg?It is not neccessary to use all the tables.
SELECT COUNT(date_of_appointment) FROM table_17085981_2 WHERE replaced_by = "Jürgen Kohler"
CREATE TABLE INST, Here is a database schema( table schema);
How many appointment dates were recorded when Jürgen Kohler was the replaced by?It is not neccessary to use all the tables.
SELECT COUNT("Week") FROM table_79512 WHERE "Date" = 'bye'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Week with a Date of Bye?It is not neccessary to use all the tables.
SELECT rank FROM table_name_14 WHERE goals > 4 AND scorer = "oh seok-jae"
CREATE TABLE INST, Here is a database schema( table schema);
Which Rank has Goals larger than 4 and a Scorer of oh seok-jae?It is not neccessary to use all the tables.
SELECT SUM(gold) FROM table_name_37 WHERE nation = "mongolia" AND total > 18
CREATE TABLE INST, Here is a database schema( table schema);
How much Gold has a Nation of mongolia and a Total larger than 18?It is not neccessary to use all the tables.
SELECT Kapampangan FROM table WHERE Malay = aku
CREATE TABLE INST, Here is a database schema( table schema);
What is the Kapampangan word for the Malay word aku?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Round = 4 AND School/Club Team = concordia
CREATE TABLE INST, Here is a database schema( table schema);
Which Position has a Round of 4, and a School/Club Team of concordia?.It is not neccessary to use all the tables.
SELECT title FROM table_name_97 WHERE director = "paul schneider"
CREATE TABLE INST, Here is a database schema( table schema);
What is the movie that Paul Schneider directed?It is not neccessary to use all the tables.
SELECT COUNT Tariff code FROM table WHERE BTs retail price (regulated) = 2.553p/min
CREATE TABLE INST, Here is a database schema( table schema);
How many tariff codes have a bts retail price of 2.553p/min?.It is not neccessary to use all the tables.
SELECT name, city FROM branch WHERE NOT branch_id IN (SELECT branch_id FROM membership_register_branch)
CREATE TABLE INST, Here is a database schema( table schema);
List the branch name and city without any registered members.It is not neccessary to use all the tables.
SELECT MAX Earnings( $ ) FROM table WHERE Player = jim colbert
CREATE TABLE INST, Here is a database schema( table schema);
What's the most jim colbert got paid?.It is not neccessary to use all the tables.
SELECT Runner-up FROM table WHERE No. = 2
CREATE TABLE INST, Here is a database schema( table schema);
Who are all runner-ups for No. 2?.It is not neccessary to use all the tables.
SELECT first FROM table_name_86 WHERE bats = "r" AND throws = "l" AND dob = "12 october 1977"
CREATE TABLE INST, Here is a database schema( table schema);
Which First has Bats of r and Throws of l and a DOB of 12 october 1977?It is not neccessary to use all the tables.
SELECT "Record" FROM table_37631 WHERE "Game" > '40' AND "Opponent" = 'new york rangers'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Record of the Game after 40 with New York Rangers as Opponent?It is not neccessary to use all the tables.
SELECT MIN(arabs) FROM table_26007767_1 WHERE metropolitan_ring = "Inner Ring 3"
CREATE TABLE INST, Here is a database schema( table schema);
What is the least arabs when the metropolitan ring is inner ring 3?It is not neccessary to use all the tables.
SELECT jockey FROM table_20626467_1 WHERE class = "Group 1" AND venue = "Randwick" AND distance = "1400m"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the jockey in group 1 at the 1400m distance at randwick?It is not neccessary to use all the tables.
SELECT MIN Average FROM table WHERE City = bergen, norway
CREATE TABLE INST, Here is a database schema( table schema);
What is the Average of bergen, norway?.It is not neccessary to use all the tables.
SELECT COUNT Position FROM table WHERE School = Spring High School
CREATE TABLE INST, Here is a database schema( table schema);
How many positions did the player from Spring High School play?.It is not neccessary to use all the tables.
SELECT * FROM Fires WHERE State = "TX" AND STAT_CAUSE_DESCR LIKE "Campfire"
CREATE TABLE INST, Here is a database schema( fires);
Show all fires caused by campfires in Texas.. It is not neccessary to use all the tables.
SELECT attendance FROM table_name_2 WHERE opponent = "pittsburgh steelers"
CREATE TABLE INST, Here is a database schema( table schema);
What is Attendance when Opponent is Pittsburgh Steelers?It is not neccessary to use all the tables.
SELECT gender FROM table_name_86 WHERE decile = 5 AND roll = 90
CREATE TABLE INST, Here is a database schema( table schema);
What is the Gender of students at a school with a Decile of 5 and a Roll of 90?It is not neccessary to use all the tables.
SELECT behind FROM table_name_72 WHERE day_2 = "3:42.162"
CREATE TABLE INST, Here is a database schema( table schema);
For the team with 3:42.162 on day 2 what was the behind?It is not neccessary to use all the tables.
SELECT MAX(frequency_mhz) FROM table_name_52 WHERE erp_w > 205 AND call_sign = "k230ap"
CREATE TABLE INST, Here is a database schema( table schema);
Which Frequency MHz that has a ERP W larger than 205 and a Call sign of k230ap?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Place = t5 AND Country = united states
CREATE TABLE INST, Here is a database schema( table schema);
What is To Par, when Place is "T5", and when Country is "United States"?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_29 WHERE tournament = "olympic games"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the Olympic Games held?It is not neccessary to use all the tables.
SELECT "Driver" FROM table_42130 WHERE "Date" = 'october 6'
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Driver, when the Date is October 6?It is not neccessary to use all the tables.
SELECT year FROM table_23284597_3 WHERE opponent_in_the_final = "Guillermo Cañas"
CREATE TABLE INST, Here is a database schema( table schema);
Name the year for guillermo cañasIt is not neccessary to use all the tables.
SELECT COUNT(second_national_tour_year_2) FROM table_19529639_3 WHERE original_west_end_cast = "Oliver Tompsett"
CREATE TABLE INST, Here is a database schema( table schema);
How many different actors from the Second national tour year 2 played the character played by Oliver Tompsett from the original West End cast?It is not neccessary to use all the tables.
SELECT Set 1 FROM table WHERE Score = 3–0 AND Set 3 = 15–12
CREATE TABLE INST, Here is a database schema( table schema);
What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–12?.It is not neccessary to use all the tables.
SELECT score FROM table_27715173_10 WHERE high_rebounds = "Tim Duncan (12)"
CREATE TABLE INST, Here is a database schema( table schema);
What was the team score when Tim Duncan (12) got the high rebounds?It is not neccessary to use all the tables.
SELECT category FROM table_name_6 WHERE nominee = "brian d'arcy james" AND result = "nominated"
CREATE TABLE INST, Here is a database schema( table schema);
What category was Brian D'arcy James nominated for?It is not neccessary to use all the tables.
SELECT AVG(total) FROM table_name_49 WHERE country = "united states" AND to_par = 9 AND player = "gay brewer"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average total of Gay Brewer from the United States with a to par of 9?It is not neccessary to use all the tables.
SELECT version FROM table_27329061_2 WHERE compatible_repository = "Xubuntu 10.04"
CREATE TABLE INST, Here is a database schema( table schema);
What is the version when the compatible reposityory is xubuntu 10.04It is not neccessary to use all the tables.
SELECT date_became_customer, COUNT(date_became_customer) FROM Customers WHERE customer_id BETWEEN 10 AND 20 ORDER BY COUNT(date_became_customer) DESC
CREATE TABLE INST, Here is a database schema( table schema);
A bar chart for what are the number of the dates when customers with ids between 10 and 20 became customers?, display by the y-axis in descending.It is not neccessary to use all the tables.
SELECT MAX(game) FROM table_name_6 WHERE date = "july 31"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest game that has July 31 as the date?It is not neccessary to use all the tables.
SELECT 2011 FROM table WHERE 2012 = 1r
CREATE TABLE INST, Here is a database schema( table schema);
What is 2011, when 2012 is "1R"?.It is not neccessary to use all the tables.
SELECT deaths_from_warfare FROM table_name_33 WHERE nation = "choctaw"
CREATE TABLE INST, Here is a database schema( table schema);
How many warfare deaths befell the choctaw nation?It is not neccessary to use all the tables.
SELECT "3 rd" FROM table_69758 WHERE "Season" < '4' AND "Lost" = '61'
CREATE TABLE INST, Here is a database schema( table schema);
Name the 3rd for season less than 4 and lost of 61It is not neccessary to use all the tables.
SELECT Enrollment FROM table WHERE Team Nickname = Comets
CREATE TABLE INST, Here is a database schema( table schema);
How many students are enrolled in the team nicknamed Comets?.It is not neccessary to use all the tables.
SELECT COUNT Seasons FROM table WHERE Years = 1976–1977
CREATE TABLE INST, Here is a database schema( table schema);
How many Seasons that has Years of 1976–1977?.It is not neccessary to use all the tables.
SELECT DisplayName, Reputation, Id AS "user_link" FROM Users WHERE UPPER(Location) LIKE '%ISRAEL%' ORDER BY 2 DESC
CREATE TABLE INST, Here is a database schema( table schema);
SELECT DisplayName, Reputation, Id FROM Users WHERE UPPER(Location) LIKE '%ISRAEL%' ORDER B.It is not neccessary to use all the tables.
SELECT Score in the final FROM table WHERE Date = march 22, 1993
CREATE TABLE INST, Here is a database schema( table schema);
What was the final score on March 22, 1993?.It is not neccessary to use all the tables.