sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT tournament FROM table_name_86 WHERE 2010 = "not held"
CREATE TABLE INST, Here is a database schema( table schema);
What is the tournament when 2010 is not held?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM location, restaurant WHERE location.city_name = 'palo alto' AND restaurant.food_type = 'french' AND restaurant.id = location.restaurant_id
CREATE TABLE INST, Here is a database schema( table schema);
how many french restaurant are there in palo alto ?It is not neccessary to use all the tables.
SELECT State FROM table WHERE Member = gil duthie
CREATE TABLE INST, Here is a database schema( table schema);
What is State, when Member is "Gil Duthie"?.It is not neccessary to use all the tables.
SELECT intercontinental_cup_1999 FROM table_name_63 WHERE copa_conmebol_1999 = "runner-up"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Intercontinental Cup 1999 result for the team with a Copa Conmebol 1999 result of runner-up?It is not neccessary to use all the tables.
SELECT T2.customer_first_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2
CREATE TABLE INST, Here is a database schema( table schema);
Show first name and id for all customers with at least 2 accounts.It is not neccessary to use all the tables.
SELECT year FROM table_28848697_4 WHERE tied = 11
CREATE TABLE INST, Here is a database schema( table schema);
What is the year listed when tied is listed as 11?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Fastest Lap = Thierry Boutsen
CREATE TABLE INST, Here is a database schema( table schema);
What is the location of thierry boutsen?.It is not neccessary to use all the tables.
SELECT name, email FROM user_profiles WHERE followers > 1000
CREATE TABLE INST, Here is a database schema( table schema);
Find the name and email of the users who have more than 1000 followers.It is not neccessary to use all the tables.
SELECT Manufacturer FROM table WHERE Laps < 9 AND Rider = dani pedrosa
CREATE TABLE INST, Here is a database schema( table schema);
Who was the manufacturer for the car that dani pedrosa did less than 9 laps in?.It is not neccessary to use all the tables.
SELECT wins FROM table_name_20 WHERE class = "500cc" AND year = 1979
CREATE TABLE INST, Here is a database schema( table schema);
How many wins did the 500cc class have in 1979?It is not neccessary to use all the tables.
SELECT country FROM stadium GROUP BY country HAVING COUNT(*) <= 3
CREATE TABLE INST, Here is a database schema( table schema);
Which country has at most 3 stadiums listed?It is not neccessary to use all the tables.
SELECT Catalog number FROM table WHERE A-side = venus demilo
CREATE TABLE INST, Here is a database schema( table schema);
What is the catalog number of Venus Demilo's A-side?.It is not neccessary to use all the tables.
SELECT COUNT(original_australian_performer) FROM table_1901751_1 WHERE original_west_end_performer = "Jordan Dunne"
CREATE TABLE INST, Here is a database schema( table schema);
How many original Australian performers are there when the Original West End Performer is Jordan Dunne?It is not neccessary to use all the tables.
SELECT park_and_ride_lot FROM table_name_53 WHERE station_name = "temple square"
CREATE TABLE INST, Here is a database schema( table schema);
For the Temple Square station what is the park & ride lot name?It is not neccessary to use all the tables.
SELECT position FROM table_14911550_5 WHERE team = "Cerro Porteño"
CREATE TABLE INST, Here is a database schema( table schema);
In which position is the team Cerro Porteño?It is not neccessary to use all the tables.
SELECT MAX(model) FROM table_name_92 WHERE maximum_memory = "512 mb"
CREATE TABLE INST, Here is a database schema( table schema);
Which model has a maximum memory of 512 mb?It is not neccessary to use all the tables.
SELECT COUNT Chinese (Traditional) FROM table WHERE Album# = 6th
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of traditional chinese for album number 6th.It is not neccessary to use all the tables.
SELECT score FROM table_name_48 WHERE player = "jay haas"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of player jay haas?It is not neccessary to use all the tables.
SELECT COUNT(trademark) FROM table_12715053_1 WHERE molecular_target = "Minor Groove of DNA" AND clinical_status = "Phase I"
CREATE TABLE INST, Here is a database schema( table schema);
How many trademarks list a molecular target of minor groove of dna and a clinical status value of phase i?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Routine infant or child health check" AND lab.flag = "abnormal"
CREATE TABLE INST, Here is a database schema( table schema);
what number of patients came in for routine infant or child health check and their lab tests were abnormal.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team = essendon
CREATE TABLE INST, Here is a database schema( table schema);
Where did Essendon play as the away team?.It is not neccessary to use all the tables.
SELECT Pennant FROM table WHERE Builder = denny, dumbarton
CREATE TABLE INST, Here is a database schema( table schema);
What is the pennant with Denny, Dumbarton as the builder?.It is not neccessary to use all the tables.
SELECT Volume:Issue FROM table WHERE Artist = santana featuring the product g&b
CREATE TABLE INST, Here is a database schema( table schema);
shows for the artist Santana featuring the product g&b?.It is not neccessary to use all the tables.
SELECT COUNT(_percentage_2001) FROM table_name_32 WHERE seats_2001 = 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of % for 2001 if 2001 seats equals 7?It is not neccessary to use all the tables.
SELECT MAX Season no. FROM table WHERE Title = "Stray"
CREATE TABLE INST, Here is a database schema( table schema);
What episode number in the season is titled "stray"?.It is not neccessary to use all the tables.
SELECT High rebounds FROM table WHERE Team = Mount St. Mary's
CREATE TABLE INST, Here is a database schema( table schema);
Who is every high rebound when the team is Mount St. Mary's?.It is not neccessary to use all the tables.
SELECT built_as FROM table_name_28 WHERE ship = "dahlgren"
CREATE TABLE INST, Here is a database schema( table schema);
Where the ship is Dahlgren what is the build as?It is not neccessary to use all the tables.
SELECT Competition FROM table WHERE Score = 12.8 (80) - 8.7 (55)
CREATE TABLE INST, Here is a database schema( table schema);
In what competition was the score reported as 12.8 (80) - 8.7 (55)?.It is not neccessary to use all the tables.
SELECT COUNT Draw FROM table WHERE Televotes > 1761 AND Song = ils sont là AND Place < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Draw(s), when Televotes is greater than 1761, when Song is "Ils Sont Là", and when Place is less than 2?.It is not neccessary to use all the tables.
SELECT name_of_king FROM table_name_54 WHERE sno > 1 AND no_of_villages = 600
CREATE TABLE INST, Here is a database schema( table schema);
What king has an S. number over 1 and a number of villages of 600?It is not neccessary to use all the tables.
SELECT MIN Sydney FROM table WHERE WEEKLY RANK < 8 AND Brisbane > 252,000
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest value for Sydney, when WEEKLY RANK is less than 8, and when Brisbane is greater than 252,000?.It is not neccessary to use all the tables.
SELECT AVG(total) FROM table_name_83 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 DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.departure_time BETWEEN 1200 AND 1800
CREATE TABLE INST, Here is a database schema( table schema);
i want to travel from PHILADELPHIA to BOSTON on wednesday afternoonIt is not neccessary to use all the tables.
SELECT "Current champion(s)" FROM table_40106 WHERE "Championship" = 'necw heavyweight champion'
CREATE TABLE INST, Here is a database schema( table schema);
Who is the current champion in the NECW Heavyweight Championship?It is not neccessary to use all the tables.
SELECT Margin of victory FROM table WHERE Runner(s)-up = brad faxon
CREATE TABLE INST, Here is a database schema( table schema);
What was the margin of victory over Brad Faxon?.It is not neccessary to use all the tables.
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Which airline has most number of flights?It is not neccessary to use all the tables.
SELECT MLB Draft FROM table WHERE Position = Pitcher/Infielder
CREATE TABLE INST, Here is a database schema( table schema);
What MLB Drafts have the position pitcher/infielder? .It is not neccessary to use all the tables.
SELECT acl_qualification FROM table_name_11 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 score FROM table_name_1 WHERE place = "t4" AND player = "scott hoch"
CREATE TABLE INST, Here is a database schema( table schema);
What is Score when Place is "T4" and when Player is "Scott Hoch"?It is not neccessary to use all the tables.
SELECT Starring Actors FROM table WHERE Time Frame = Thursdays 22:00~22:54 2005-04-xx to 2005-06-xx
CREATE TABLE INST, Here is a database schema( table schema);
Who is the star of the program on Thursdays 22:00~22:54 2005-04-xx to 2005-06-xx?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Private" AND diagnoses.short_title = "Ac DVT/emb prox low ext"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients posses private insurance and are diagnosed with ac dvt/emb prox low ext?It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Time = 0:49
CREATE TABLE INST, Here is a database schema( table schema);
What event has a 0:49 time?.It is not neccessary to use all the tables.
SELECT MIN(al_ahly_wins) FROM table_name_29 WHERE draws = 0 AND el_zamalek_wins < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the fewest Al Ahly wins for El Zamalek wins of 0 and 0 draws?It is not neccessary to use all the tables.
SELECT score FROM table_name_61 WHERE record = "0-1"
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has a Record of 0-1?It is not neccessary to use all the tables.
SELECT Podiums FROM table WHERE Points = 144
CREATE TABLE INST, Here is a database schema( table schema);
What is the podium for 144 points?.It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_85 WHERE community_award = "jarrod harbrow"
CREATE TABLE INST, Here is a database schema( table schema);
Which Year has a Community Award of jarrod harbrow?It is not neccessary to use all the tables.
SELECT result FROM table_1342149_43 WHERE first_elected = "1942"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result in the election where the incumbent was first elected in 1942?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Home team score = 26.14 (170)
CREATE TABLE INST, Here is a database schema( table schema);
What team was the home team when the home team score was 26.14 (170)?.It is not neccessary to use all the tables.
SELECT old_english_day_name FROM table_2624098_1 WHERE modern_english_day_name = "Saturday"
CREATE TABLE INST, Here is a database schema( table schema);
what is the old English name of Saturday?It is not neccessary to use all the tables.
SELECT MAX Men's FROM table WHERE Junior's = 1 AND Total > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of men's championships of the university with 1 junior's and more than 2 total?.It is not neccessary to use all the tables.
SELECT try_bonus FROM table_name_51 WHERE lost = "13" AND drawn = "2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the try bonus when the loss is 13 and the draw is 2?It is not neccessary to use all the tables.
SELECT MAX(draws) FROM table_name_1 WHERE goals_against > 33 AND losses = 13 AND goals_for < 51
CREATE TABLE INST, Here is a database schema( table schema);
What is the most draws when goals against are more than 33, losses are 13 and goals for is less than 51?It is not neccessary to use all the tables.
SELECT title FROM table_23399481_4 WHERE us_viewers__in_millions_ = "1.10"
CREATE TABLE INST, Here is a database schema( table schema);
What are the titles of the episodes which had 1.10 million U.S. viewers?It is not neccessary to use all the tables.
SELECT club FROM table_20396710_1 WHERE "bonus_points" = "bonus_points"
CREATE TABLE INST, Here is a database schema( table schema);
which club is listed when bonus points is bonus pointsIt is not neccessary to use all the tables.
SELECT international_debut FROM table_28286776_50 WHERE player = "Rory Fallon Category:Articles with hCards"
CREATE TABLE INST, Here is a database schema( table schema);
When rory fallon category:articles with hcards is the player when is the international debut?It is not neccessary to use all the tables.
SELECT COUNT Vacator FROM table WHERE Date of successors formal installation = June 22, 1868
CREATE TABLE INST, Here is a database schema( table schema);
List the number of vacators when successors were formally installed on June 22, 1868..It is not neccessary to use all the tables.
SELECT AVG Floors FROM table WHERE Name = venetian tower
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of floors of the Venetian tower?.It is not neccessary to use all the tables.
SELECT Highest Score FROM table WHERE Matches = 5 AND Team = Worcestershire
CREATE TABLE INST, Here is a database schema( table schema);
If the team is Worcestershire and the Matched had were 5, what is the highest score?.It is not neccessary to use all the tables.
SELECT Date motor gear fitted FROM table WHERE LMS 1946 No. = 1901
CREATE TABLE INST, Here is a database schema( table schema);
When was the motor gear of the LMS 1946 no. 1901 model fitted?.It is not neccessary to use all the tables.
SELECT Destination FROM table WHERE Stopping pattern = [2777] mciver station platforms
CREATE TABLE INST, Here is a database schema( table schema);
Which Destination has a Stopping pattern of [2777] mciver station platforms?.It is not neccessary to use all the tables.
SELECT time FROM table_name_77 WHERE rank = 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the Time of the Player with a Rank of 2?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Round = 8
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player from round 8?.It is not neccessary to use all the tables.
SELECT played FROM table_name_62 WHERE points_against = "374"
CREATE TABLE INST, Here is a database schema( table schema);
What is Played when Points Against is "374"?It is not neccessary to use all the tables.
SELECT result FROM table_26375386_23 WHERE total = 12
CREATE TABLE INST, Here is a database schema( table schema);
What was the result for the total of 12?It is not neccessary to use all the tables.
SELECT away_team FROM table_name_74 WHERE home_team = "richmond"
CREATE TABLE INST, Here is a database schema( table schema);
I want to see the away team the has a home team of richmondIt is not neccessary to use all the tables.
SELECT date_successor_seated FROM table_225093_4 WHERE district = "Massachusetts 2nd"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date successor seated where Massachusetts 2nd is the district?It is not neccessary to use all the tables.
SELECT period__h_ FROM table_206217_2 WHERE eccentricity = "0.583085"
CREATE TABLE INST, Here is a database schema( table schema);
What is every value of period when eccentricity is 0.583085?It is not neccessary to use all the tables.
SELECT name FROM table_name_9 WHERE function = "explorator"
CREATE TABLE INST, Here is a database schema( table schema);
Who had a function of explorator?It is not neccessary to use all the tables.
SELECT Starring Actors FROM table WHERE Time Frame = Tuesday 22:00~22:54 8 April 2008 to 17 June 2008
CREATE TABLE INST, Here is a database schema( table schema);
Who were the starting actors in the time frame of tuesday 22:00~22:54 8 april 2008 to 17 june 2008?.It is not neccessary to use all the tables.
SELECT COUNT(rank) FROM table_name_26 WHERE transfer_fee___€_million_ > 13 AND year > 2008
CREATE TABLE INST, Here is a database schema( table schema);
What was the rank of a transfer fee larger than 13 million and after 2008?It is not neccessary to use all the tables.
SELECT Format FROM table WHERE Catalogue = wpcr13504
CREATE TABLE INST, Here is a database schema( table schema);
What format is catalogue WPCR13504 in?.It is not neccessary to use all the tables.
SELECT home_ground FROM table_name_15 WHERE nickname = "lions"
CREATE TABLE INST, Here is a database schema( table schema);
What's the home ground of the Lions?It is not neccessary to use all the tables.
SELECT COUNT Avg. Finish FROM table WHERE Avg. Start = 20.7
CREATE TABLE INST, Here is a database schema( table schema);
How many years did he have an average start of 20.7?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Crowd > 17,000
CREATE TABLE INST, Here is a database schema( table schema);
On what Date is the Crowd larger than 17,000?.It is not neccessary to use all the tables.
SELECT purse__$__ FROM table_11622896_1 WHERE location = "New York"
CREATE TABLE INST, Here is a database schema( table schema);
What is the purse value for the New York location?It is not neccessary to use all the tables.
SELECT friday_day_six FROM table_1277350_7 WHERE monday_day_two = "Isnin"
CREATE TABLE INST, Here is a database schema( table schema);
What is friday day six when monday day two is isnin?It is not neccessary to use all the tables.
SELECT MIN(first_elected) FROM table_1341897_42
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest year that a candidate was first elected?It is not neccessary to use all the tables.
SELECT "Directed by" FROM table_29489 WHERE "U.S. viewers (million)" = '5.86'
CREATE TABLE INST, Here is a database schema( table schema);
Name who directed when the viewers is 5.86It is not neccessary to use all the tables.
SELECT COUNT Pick FROM table WHERE Nationality = Canada AND Player = Larry Courville
CREATE TABLE INST, Here is a database schema( table schema);
How many picks have canada as the nationality and larry courville is the player?.It is not neccessary to use all the tables.
SELECT runner_s__up FROM table_name_27 WHERE winning_score = –15(66 - 67 - 70 - 70 = 273)
CREATE TABLE INST, Here is a database schema( table schema);
Who was the runner-up for the event that ended with a winning score of 15 (66-67-70-70=273)?It is not neccessary to use all the tables.
SELECT team FROM table_name_18 WHERE game = 49
CREATE TABLE INST, Here is a database schema( table schema);
Which team has a Game of 49?It is not neccessary to use all the tables.
SELECT circuit FROM table_name_38 WHERE winning_driver = "jim clark" AND year = "1962"
CREATE TABLE INST, Here is a database schema( table schema);
Which circuit did Jim Clark win in 1962?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Game = 18
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for game 18?.It is not neccessary to use all the tables.
SELECT Actual_Delivery_Date, COUNT(Actual_Delivery_Date) FROM Bookings ORDER BY Actual_Delivery_Date DESC
CREATE TABLE INST, Here is a database schema( table schema);
Can you draw the trend of the number of actual delivery date over the actual delivery date?, and order X-axis in descending order.It is not neccessary to use all the tables.
SELECT week FROM table_name_5 WHERE original_artist = "the police"
CREATE TABLE INST, Here is a database schema( table schema);
What week was the Original artist the police ?It is not neccessary to use all the tables.
SELECT Season episode FROM table WHERE U.S. viewers (in million) = 5.68
CREATE TABLE INST, Here is a database schema( table schema);
What was the episode number for the episode viewed by 5.68 million viewers?.It is not neccessary to use all the tables.
SELECT date FROM table_name_93 WHERE tie_no = "13"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was Tie #13 played?It is not neccessary to use all the tables.
SELECT Member FROM table WHERE State = nt
CREATE TABLE INST, Here is a database schema( table schema);
Which memeber has nt as the state?.It is not neccessary to use all the tables.
SELECT player FROM table_name_29 WHERE total < 285 AND to_par > 1
CREATE TABLE INST, Here is a database schema( table schema);
Total smaller than 285 and a To par larger than 1 belongs to what player?It is not neccessary to use all the tables.
SELECT score FROM table_name_78 WHERE place = "4"
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has a Place of 4?It is not neccessary to use all the tables.
SELECT SUM Place FROM table WHERE Song = "tavo spalvos"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of placings for the song "Tavo Spalvos"?.It is not neccessary to use all the tables.
SELECT COUNT(opponents) FROM table_16677874_2 WHERE game = 13
CREATE TABLE INST, Here is a database schema( table schema);
How many opponents did the team play in week 13?It is not neccessary to use all the tables.
SELECT COUNT(open_cup) FROM table_2365150_1 WHERE year = 1996
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of open cup for 1996It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home team score = 5.9 (39)
CREATE TABLE INST, Here is a database schema( table schema);
What date was the home team score 5.9 (39)?.It is not neccessary to use all the tables.
SELECT rank FROM table_name_35 WHERE goals > 10 AND scorer = "choi sang-kuk"
CREATE TABLE INST, Here is a database schema( table schema);
Which Rank has Goals larger than 10, and a Scorer of choi sang-kuk?It is not neccessary to use all the tables.
SELECT Time/Retired FROM table WHERE Grid = 14
CREATE TABLE INST, Here is a database schema( table schema);
What is the time/retired of the team with a grid of 14?.It is not neccessary to use all the tables.
SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "9271"
CREATE TABLE INST, Here is a database schema( table schema);
what is admission type of subject id 9271?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home team = portland AND Game = game 1
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the game 1 played at Portland?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM Ref_locations
CREATE TABLE INST, Here is a database schema( table schema);
Show the number of locations.It is not neccessary to use all the tables.
SELECT Still Open? FROM table WHERE Restaurant Name = locavore
CREATE TABLE INST, Here is a database schema( table schema);
is the restaurant locavore still open?.It is not neccessary to use all the tables.