sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT delegate FROM table_1825751_14 WHERE pageant = "Elite Model Look" AND year > 1993.0
CREATE TABLE INST, Here is a database schema( table schema);
where pageant is elite model look and year is bigger than 1993.0 who is the delegate?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Interim head coach = gary darnell
CREATE TABLE INST, Here is a database schema( table schema);
What was the result under interim head coach, Gary Darnell?.It is not neccessary to use all the tables.
SELECT hangul FROM table_name_48 WHERE kana = "へいあんなんどう"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Hangul of the Province with a Kana of へいあんなんどう?It is not neccessary to use all the tables.
SELECT count(*) FROM sampledata15 WHERE origin = "3"
CREATE TABLE INST, Here is a database schema( sampledata15);
how many samples have unknown countries of origin?. It is not neccessary to use all the tables.
SELECT gross_revenue__1979_ FROM table_name_83 WHERE venue = "lyceum theatre"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Gross Revenue (1979) of the Venue lyceum theatre?It is not neccessary to use all the tables.
SELECT country FROM table_name_7 WHERE player = "bill nary"
CREATE TABLE INST, Here is a database schema( table schema);
what is the country when the player is bill nary?It is not neccessary to use all the tables.
SELECT COUNT High points FROM table WHERE Team = Heat
CREATE TABLE INST, Here is a database schema( table schema);
How many players has the highest points in the game against the Heat?.It is not neccessary to use all the tables.
SELECT Elected FROM table WHERE 1st member = thomas fanshawe
CREATE TABLE INST, Here is a database schema( table schema);
What Elected has a 1st member of thomas fanshawe?.It is not neccessary to use all the tables.
SELECT event FROM table_name_74 WHERE acts = "6 bands"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the event for 6 bandsIt is not neccessary to use all the tables.
SELECT COUNT(district) FROM table_1342292_2 WHERE candidates = "William B. Bankhead (D) 71.3% E. M. Reed (R) 28.7%"
CREATE TABLE INST, Here is a database schema( table schema);
how many dbeingtrict with candidates being william b. bankhead (d) 71.3% e. m. reed (r) 28.7%It is not neccessary to use all the tables.
SELECT russian FROM table_25008327_8 WHERE bulgarian = "пес, куче"
CREATE TABLE INST, Here is a database schema( table schema);
What is every value for Russian when value for Bulgarian is пес куче?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Record = 5-4-1
CREATE TABLE INST, Here is a database schema( table schema);
What is the score when the record is 5-4-1?.It is not neccessary to use all the tables.
SELECT PAL N FROM table WHERE PAL B,G,H = 4.43361875mhz
CREATE TABLE INST, Here is a database schema( table schema);
Which PAL has a PAL B, G, H of 4.43361875mhz?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Competition = paris marathon
CREATE TABLE INST, Here is a database schema( table schema);
Where did the Paris Marathon occur?.It is not neccessary to use all the tables.
SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'stroke' AND STRFTIME('%y', diagnosis.diagnosistime) <= '2103') AS t1) - (SELECT COUNT(DISTINCT t2.un...
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients who have been diagnosed with stroke and have not been back to the hospital within 2 months until 2103.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Home team = geelong
CREATE TABLE INST, Here is a database schema( table schema);
What was Geelong's score as the home team?.It is not neccessary to use all the tables.
SELECT SUM Sack FROM table WHERE TotalTK = 1 AND Asst. > 0
CREATE TABLE INST, Here is a database schema( table schema);
what is the total sack when totaltk is 1 and asst. is more than 0?.It is not neccessary to use all the tables.
SELECT Rank (Week) FROM table WHERE Share > 7 AND Rating/Share (18-49) = 2.3/7
CREATE TABLE INST, Here is a database schema( table schema);
What is the weekly rank for the episode with a share over 7 and a rating/share of 2.3/7?.It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_name_5 WHERE population > 93 OFFSET 378
CREATE TABLE INST, Here is a database schema( table schema);
Name the most rank for population more than 93378It is not neccessary to use all the tables.
SELECT opponent FROM table_name_63 WHERE score = "95-118"
CREATE TABLE INST, Here is a database schema( table schema);
Who did they play when the score was 95-118?It is not neccessary to use all the tables.
SELECT SUM Week FROM table WHERE Date = december 2, 2001
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Week, when Date is December 2, 2001?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Attendance = gund arena 20,562 AND Date = january 27
CREATE TABLE INST, Here is a database schema( table schema);
What is Score, when Attendance is Gund Arena 20,562, and when Date is January 27?.It is not neccessary to use all the tables.
SELECT "Name" FROM table_66982 WHERE "Area" = 'eketahuna'
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the name with area of eketahunaIt is not neccessary to use all the tables.
SELECT COUNT(division) FROM table_name_36 WHERE tms = 13 AND pos < 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the division in the season with 13 tms and pos smaller than 8?It is not neccessary to use all the tables.
SELECT first_name FROM customer WHERE NOT customer_id IN (SELECT customer_id FROM rental WHERE rental_date > '2005-08-23 02:06:01')
CREATE TABLE INST, Here is a database schema( table schema);
What are the first names of customers who have not rented any films after '2005-08-23 02:06:01'?It is not neccessary to use all the tables.
SELECT COUNT No. in season FROM table WHERE Title = "That's So Sonny"
CREATE TABLE INST, Here is a database schema( table schema);
how man episodes in the season were titled "that's so sonny"?.It is not neccessary to use all the tables.
SELECT AVG(total) FROM table_name_41 WHERE rank = "7" AND gold > 0
CREATE TABLE INST, Here is a database schema( table schema);
what is the total when the rank is 7 and gold is more than 0?It is not neccessary to use all the tables.
SELECT kalamazoo__azo_ FROM table_1637981_7 WHERE saginaw__mbs_ = "$481.39"
CREATE TABLE INST, Here is a database schema( table schema);
What is the fare to Kalamazoo during the time frame when Saginaw's was $481.39?It is not neccessary to use all the tables.
SELECT song_name, releasedate FROM song ORDER BY releasedate DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the song that was released in the most recent year?It is not neccessary to use all the tables.
SELECT challenge FROM table_24798489_2 WHERE episode_number = 28
CREATE TABLE INST, Here is a database schema( table schema);
What was the challenge for episode 28?It is not neccessary to use all the tables.
SELECT Host team FROM table WHERE Visiting team = baltimore ravens
CREATE TABLE INST, Here is a database schema( table schema);
Who hosted the visiting team Baltimore Ravens?.It is not neccessary to use all the tables.
SELECT MIN(events) FROM table_name_56 WHERE top_5 > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest value for Events when the value for Top-5 is greater than 1?It is not neccessary to use all the tables.
SELECT Colors FROM table WHERE School = John A. Logan College
CREATE TABLE INST, Here is a database schema( table schema);
If the school is John A. Logan College, what are the colors?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Home = chicago black hawks AND Date = march 28
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score of the Chicago Black Hawks Home game on March 28?.It is not neccessary to use all the tables.
SELECT Party FROM table WHERE District = Ohio 5
CREATE TABLE INST, Here is a database schema( table schema);
What party does the incumbent from the Ohio 5 district belong to? .It is not neccessary to use all the tables.
SELECT MIN Crowd FROM table WHERE Venue = mcg
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest crowd number at the venue MCG?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Competition = 2000 tiger cup AND Date = november 10, 2000
CREATE TABLE INST, Here is a database schema( table schema);
What venue did the 2000 tiger cup take place at on November 10, 2000?.It is not neccessary to use all the tables.
SELECT surface FROM table_22597626_17 WHERE opponents_in_the_final = "Fitzgerald Vilas"
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface for the opponents in the final with fitzgerald vilas?It is not neccessary to use all the tables.
SELECT year FROM table_name_59 WHERE class = "car" AND stages_won = "0"
CREATE TABLE INST, Here is a database schema( table schema);
What year did he compete in the car class and win 0 stages?It is not neccessary to use all the tables.
SELECT MAX("year") - MIN("year") FROM table_203_629
CREATE TABLE INST, Here is a database schema( table schema);
how long did they produce singles ?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE First Star = O. Pavelec
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game whose first star was O. Pavelec?.It is not neccessary to use all the tables.
SELECT Rider FROM table WHERE Laps = 22 AND Time/Retired = +19.435
CREATE TABLE INST, Here is a database schema( table schema);
Who is the rider with 22 laps and a +19.435 time/retired?.It is not neccessary to use all the tables.
SELECT Prefix FROM table WHERE Group = bromo
CREATE TABLE INST, Here is a database schema( table schema);
What prefix has Bromo as the group?.It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_25 WHERE formula = "grand prix"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest year with a formula of Grand Prix?It is not neccessary to use all the tables.
SELECT COUNT(total_points) FROM table_name_99 WHERE 1982 = "n/a" AND points_average > 34 AND 1984 > 37
CREATE TABLE INST, Here is a database schema( table schema);
What is the points total for the team with points average more than 34 1984 score more than 37 and N/A in 1982?It is not neccessary to use all the tables.
SELECT location FROM table_1176371_1 WHERE la_matches = 7 AND name_of_ground = "Ropery Lane"
CREATE TABLE INST, Here is a database schema( table schema);
Where is ropery lane and la matches 7 location?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Score = 74-66
CREATE TABLE INST, Here is a database schema( table schema);
What is the Opponent of the game with a Score of 74-66?.It is not neccessary to use all the tables.
SELECT area FROM table_name_83 WHERE _percentage_other = "–" AND _percentage_muslim = "95%"
CREATE TABLE INST, Here is a database schema( table schema);
What area has a % Other of – and a % Muslim of 95%?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Result = l 25-13
CREATE TABLE INST, Here is a database schema( table schema);
Which date has a Result of l 25-13?.It is not neccessary to use all the tables.
SELECT district FROM table_2668336_17 WHERE first_elected = "1807 1817"
CREATE TABLE INST, Here is a database schema( table schema);
First elected in 1807 1817 in what district?It is not neccessary to use all the tables.
SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS rank, UserId AS "user_link", COUNT(*) AS badges FROM Badges WHERE Name = 'Necromancer' AND Date < '##Date?2015-04-14##' GROUP BY UserId ORDER BY Badges DESC LIMIT 300
CREATE TABLE INST, Here is a database schema( table schema);
Users with most Necromancer badges at 2015-04-14.It is not neccessary to use all the tables.
SELECT AVG Year FROM table WHERE Day in Release = friday AND Day of Week > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the average year for releases on Friday and weeks larger than 2 days?.It is not neccessary to use all the tables.
SELECT MAX Goals For FROM table WHERE Team = cheadle town AND Drawn > 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Goals For, when Team is "Cheadle Town", and when Drawn is greater than 7?.It is not neccessary to use all the tables.
SELECT Kerry% FROM table WHERE County = Oneida
CREATE TABLE INST, Here is a database schema( table schema);
What percentage of the votes in Oneida did Kerry win?.It is not neccessary to use all the tables.
SELECT Platelet count FROM table WHERE Bleeding time = Unaffected AND Prothrombin time = Prolonged
CREATE TABLE INST, Here is a database schema( table schema);
When the bleeding time is unaffected and prothrombin time is prolonged, what are the platelet counts?.It is not neccessary to use all the tables.
SELECT MIN(points) FROM table_name_52 WHERE team = "mv agusta" AND rank = "13th" AND wins < 0
CREATE TABLE INST, Here is a database schema( table schema);
Name the least point for mv agusta and rank of 13th for wins less than 0It is not neccessary to use all the tables.
SELECT Software FROM table WHERE Version = 1.2.2.0
CREATE TABLE INST, Here is a database schema( table schema);
What is the software with version 1.2.2.0?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Attendance = 568
CREATE TABLE INST, Here is a database schema( table schema);
What home team played when there was an attendance of 568?.It is not neccessary to use all the tables.
SELECT height FROM table_name_34 WHERE stories > 22 AND built = "2009"
CREATE TABLE INST, Here is a database schema( table schema);
What is the height of the home with stories greater than 22 and built in 2009?It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Date = september 26-30, 2012
CREATE TABLE INST, Here is a database schema( table schema);
What is the Winner of the Event on September 26-30, 2012?.It is not neccessary to use all the tables.
SELECT COUNT High points FROM table WHERE Score = L 87–89 (OT)
CREATE TABLE INST, Here is a database schema( table schema);
How many entries are shown for high points when the score was l 87–89 (ot)?.It is not neccessary to use all the tables.
SELECT LOA (Metres) FROM table WHERE Corrected time d:hh:mm:ss = 4:03:13:38
CREATE TABLE INST, Here is a database schema( table schema);
How many LOA metres were there when the corrected time d:hh:mm:ss is 4:03:13:38?.It is not neccessary to use all the tables.
SELECT SUM Floors FROM table WHERE Street address = 01.0 10 light street
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE FLOOR NUMBERS WITH 01.0 10 light street?.It is not neccessary to use all the tables.
SELECT country FROM table_name_46 WHERE year_s__won = "1977"
CREATE TABLE INST, Here is a database schema( table schema);
What country won in 1977?It is not neccessary to use all the tables.
SELECT high_rebounds FROM table_11959669_3 WHERE date = "November 4"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the highest rebounds on November 4It is not neccessary to use all the tables.
SELECT Primary Conference FROM table WHERE IHSAA Football Class = a AND School = south decatur
CREATE TABLE INST, Here is a database schema( table schema);
What is the primary conference with a IHSAA Football Class of A, at South Decatur school?.It is not neccessary to use all the tables.
SELECT COUNT(urban), __percentage FROM table_16645_1 WHERE population__000_ = 14685
CREATE TABLE INST, Here is a database schema( table schema);
How many percentage figures are given for the urban population when the total population number is 14685?It is not neccessary to use all the tables.
SELECT Vote to Evict FROM table WHERE Vote to Save = 21.22%
CREATE TABLE INST, Here is a database schema( table schema);
Which Vote to Evict has a Vote to Save of 21.22%?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Week < 2
CREATE TABLE INST, Here is a database schema( table schema);
What was the outcome of the game that had a week number of less than 2?.It is not neccessary to use all the tables.
SELECT airdate FROM table_name_54 WHERE length = "30 minutes"
CREATE TABLE INST, Here is a database schema( table schema);
The length of 30 minutes aired on what date?It is not neccessary to use all the tables.
SELECT COUNT Per capita average annual renewable water resources m 3 FROM table WHERE Average annual rainfall (mm) = 650
CREATE TABLE INST, Here is a database schema( table schema);
Name the total water resources m3 for rainfall being 650.It is not neccessary to use all the tables.
SELECT MAX(play_off) FROM table_14460937_1 WHERE group_stage = 4
CREATE TABLE INST, Here is a database schema( table schema);
When the group stage has been 4 what is the largest playoff?It is not neccessary to use all the tables.
SELECT COUNT(contestant) FROM table_25461827_2 WHERE age = 18
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of contestants who are aged exactly 18?It is not neccessary to use all the tables.
SELECT Team 2 FROM table WHERE 1st leg = 3-1 AND 2nd leg = 4-1
CREATE TABLE INST, Here is a database schema( table schema);
What is Team 2 if the 1st Leg is 3-1 and the 2nd Leg is 4-1?.It is not neccessary to use all the tables.
SELECT MIN Games FROM table WHERE Goal Ratio = 0 AND Goals < 0
CREATE TABLE INST, Here is a database schema( table schema);
What lowest games have a Goal Ratio of 0, and Goals smaller than 0?.It is not neccessary to use all the tables.
SELECT republican_ticket FROM table_name_61 WHERE socialist_ticket = "frank r. crosswaith"
CREATE TABLE INST, Here is a database schema( table schema);
Who's the Republican ticket with a Socialist ticket of frank r. crosswaith?It is not neccessary to use all the tables.
SELECT score FROM table_name_52 WHERE record = "35-31"
CREATE TABLE INST, Here is a database schema( table schema);
The record of 35-31 has what score?It is not neccessary to use all the tables.
SELECT "title" FROM table_203_438 WHERE id = (SELECT id FROM table_203_438 WHERE "title" = 'monster') - 1
CREATE TABLE INST, Here is a database schema( table schema);
what film did damon produce right after monster ?It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_26 WHERE competition = "european championships" AND notes = "66.81 m"
CREATE TABLE INST, Here is a database schema( table schema);
Which Year has a Competition of european championships and Notes of 66.81 m?It is not neccessary to use all the tables.
SELECT Name, Nationality FROM HOST ORDER BY Age DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Show the name and the nationality of the oldest host.It is not neccessary to use all the tables.
SELECT mountain_peak FROM table_name_67 WHERE rank = 49
CREATE TABLE INST, Here is a database schema( table schema);
Name the mountain peak of 49 rankIt is not neccessary to use all the tables.
SELECT AVG(lost) FROM table_name_49 WHERE points > 108
CREATE TABLE INST, Here is a database schema( table schema);
What average lost has points greater than 108?It is not neccessary to use all the tables.
SELECT "Average" FROM table_40434 WHERE "Band" = 'f'
CREATE TABLE INST, Here is a database schema( table schema);
Which Average has a Band of f?It is not neccessary to use all the tables.
SELECT "Call sign" FROM table_51199 WHERE "ERP W" > '10'
CREATE TABLE INST, Here is a database schema( table schema);
What is the call sign for the translator with an ERP W larger than 10?It is not neccessary to use all the tables.
SELECT truck_details FROM trucks ORDER BY truck_licence_number
CREATE TABLE INST, Here is a database schema( table schema);
Show the details of all trucks in the order of their license number.It is not neccessary to use all the tables.
SELECT player FROM table_1013129_10 WHERE nhl_team = "San Jose Sharks" AND nationality = "United States"
CREATE TABLE INST, Here is a database schema( table schema);
NHL team player San Jose Sharks is United States nationally.It is not neccessary to use all the tables.
SELECT T1.marketing_region_name FROM marketing_regions AS T1 JOIN stores AS T2 ON T1.marketing_region_code = T2.marketing_region_code WHERE T2.store_name = "Rob Dinning"
CREATE TABLE INST, Here is a database schema( table schema);
Return the name of the marketing region the store Rob Dinning is located in.It is not neccessary to use all the tables.
SELECT replaced_by FROM table_27091128_3 WHERE outgoing_manager = "Hüsnü Özkara"
CREATE TABLE INST, Here is a database schema( table schema);
Who replaced the outgoing manager Hüsnü Özkara?It is not neccessary to use all the tables.
SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of the organization that has published the largest number of papers.It is not neccessary to use all the tables.
SELECT Length of game FROM table WHERE Home team = baltimore colts
CREATE TABLE INST, Here is a database schema( table schema);
What was the length of the game where the Baltimore Colts were at home?.It is not neccessary to use all the tables.
SELECT fate FROM table_1220125_4 WHERE commissioned = "11 April 1944"
CREATE TABLE INST, Here is a database schema( table schema);
What is the fate for 11 april 1944?It is not neccessary to use all the tables.
SELECT "Displacement cc" FROM table_60276 WHERE "Engine" = 'i6' AND "Year" = '1936'
CREATE TABLE INST, Here is a database schema( table schema);
What cc displacement has an i6 engine in 1936?It is not neccessary to use all the tables.
SELECT Try bonus FROM table WHERE Points for = 423
CREATE TABLE INST, Here is a database schema( table schema);
What's the try bonus that had 423 points?.It is not neccessary to use all the tables.
SELECT result FROM table_name_11 WHERE venue = "oakland"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result in oakland?It is not neccessary to use all the tables.
SELECT T3.ssn, T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MAX(hours) FROM projects)
CREATE TABLE INST, Here is a database schema( table schema);
Find the SSN and name of scientists who are assigned to the project with the longest hours.It is not neccessary to use all the tables.
SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 67005 AND DATETIME(admissions.dischtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.dischtime LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
when was patient 67005's first discharge from the hospital the last year?It is not neccessary to use all the tables.
SELECT COUNT Losses FROM table WHERE Games Played < 8 AND Wins < 3
CREATE TABLE INST, Here is a database schema( table schema);
How many losses occurred with less than 8 games played and less than 3 wins?.It is not neccessary to use all the tables.
SELECT "License" FROM table_23036 WHERE "Latest release date and version" = '2009-05-25 v 7.61'
CREATE TABLE INST, Here is a database schema( table schema);
Name the license for 2009-05-25 v 7.61It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = victoria park
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game played at Victoria Park?.It is not neccessary to use all the tables.
SELECT MIN Year FROM table WHERE Runner-up = guillermo vilas
CREATE TABLE INST, Here is a database schema( table schema);
When was the earliest year that Guillermo Vilas was the runner-up?.It is not neccessary to use all the tables.