sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT tourism_receipts__2003___as__percentage_of_gdp_ FROM table_18524_6 WHERE country = "Colombia"
CREATE TABLE INST, Here is a database schema( table schema);
Name the tourism receipts 2003 for colombiaIt is not neccessary to use all the tables.
SELECT MIN(rank) FROM table_name_28 WHERE name = "jens kruppa" AND lane > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest rank of Jens Kruppa in a lane larger than 2?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Director = pen-ek ratanaruang
CREATE TABLE INST, Here is a database schema( table schema);
When was the film directed by Pen-Ek Ratanaruang released?.It is not neccessary to use all the tables.
SELECT T2.name FROM gymnast AS T1 JOIN people AS T2 ON T1.gymnast_id = T2.people_id ORDER BY T2.height
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of gymnasts, ordered by their heights ascending?It is not neccessary to use all the tables.
SELECT kinka_12 FROM table_name_35 WHERE kinka_pre_release = "no" AND kinka_developer = "yes"
CREATE TABLE INST, Here is a database schema( table schema);
What is the KINKA 1.2 when the pre-release is no and the developer is yes?It is not neccessary to use all the tables.
SELECT year FROM table_22654139_3 WHERE reporters = "Lesley Visser and Robin Roberts"
CREATE TABLE INST, Here is a database schema( table schema);
What is every year when the reporters were Lesley Visser and Robin Roberts?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Debut year > 1930 AND Goals < 95 AND Years at club = 1938 AND Games = 6
CREATE TABLE INST, Here is a database schema( table schema);
WhichPlayer has a Debut year larger than 1930, and Goals smaller than 95, and Years at club of 1938, and Games of 6?.It is not neccessary to use all the tables.
SELECT 2001–02 FROM table WHERE 2012–13 = yago
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2001-02 of the Yago 2012-13?.It is not neccessary to use all the tables.
SELECT grand_finalist FROM table_name_89 WHERE year > 1979 AND margin < 30 AND winners = "essendon"
CREATE TABLE INST, Here is a database schema( table schema);
What grand finalist had a year after 1979 a margin smaller than 30 and winners of essendon?It is not neccessary to use all the tables.
SELECT State FROM table WHERE Owner = wesson
CREATE TABLE INST, Here is a database schema( table schema);
What state is Wesson in?.It is not neccessary to use all the tables.
SELECT "Report" FROM table_24990 WHERE "Year" = '2010'
CREATE TABLE INST, Here is a database schema( table schema);
What was the report for 2010?It is not neccessary to use all the tables.
SELECT COUNT CFL Team FROM table WHERE College = York
CREATE TABLE INST, Here is a database schema( table schema);
How many CFL teams are from York college?.It is not neccessary to use all the tables.
SELECT COUNT Setting FROM table WHERE No. in series = 29
CREATE TABLE INST, Here is a database schema( table schema);
How many settings where there for episode 29 of the season?.It is not neccessary to use all the tables.
SELECT Start ( UTC ) FROM table WHERE Spacecraft = Shenzhou 7 EVA 1
CREATE TABLE INST, Here is a database schema( table schema);
If the spacecraft is the Shenzhou 7 Eva 1, what is the start (utc) date and time?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Opponent = @ la lakers AND Record = 8-6
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has an Opponent of @ la lakers, and a Record of 8-6?.It is not neccessary to use all the tables.
SELECT writer FROM table_25737761_3 WHERE director = "Colin Teague"
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode directed by colin teague?It is not neccessary to use all the tables.
SELECT Pole position FROM table WHERE Race = Detroit
CREATE TABLE INST, Here is a database schema( table schema);
Who had the pole position in Detroit?.It is not neccessary to use all the tables.
SELECT COUNT(popular_vote) FROM table_20246201_9 WHERE candidate = "Rick Perry"
CREATE TABLE INST, Here is a database schema( table schema);
How many different popular vote counts were there for the candidate Rick Perry?It is not neccessary to use all the tables.
SELECT year_s__won FROM table_name_6 WHERE to_par > 11
CREATE TABLE INST, Here is a database schema( table schema);
When was a game won with more than 11 to par?It is not neccessary to use all the tables.
SELECT MIN Silver FROM table WHERE Rank < 4 AND Bronze > 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the least number of Silvers with a ranking of less than 4 where the bronze number was larger than 9?.It is not neccessary to use all the tables.
SELECT SUM Rank FROM table WHERE Gold = 2 AND Total > 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of rank when gold is 2 and total is more than 4?.It is not neccessary to use all the tables.
SELECT Outcome FROM table WHERE Date = 12 september 2004
CREATE TABLE INST, Here is a database schema( table schema);
What is the Outcome of the match on 12 september 2004?.It is not neccessary to use all the tables.
SELECT COUNT Date FROM table WHERE Big Ten Team = #10 Purdue
CREATE TABLE INST, Here is a database schema( table schema);
How many dates have a big ten team of #10 purdue?.It is not neccessary to use all the tables.
SELECT original_us_tour_cast FROM table_name_75 WHERE original_broadway_cast = "kevin chamberlin"
CREATE TABLE INST, Here is a database schema( table schema);
What was the original US Tour cast when the original broadway was Kevin Chamberlin?It is not neccessary to use all the tables.
SELECT COUNT(laps) FROM table_name_32 WHERE driver = "antônio pizzonia"
CREATE TABLE INST, Here is a database schema( table schema);
How many laps did antônio pizzonia do?It is not neccessary to use all the tables.
SELECT COUNT Losing Hand FROM table WHERE Year = 2007
CREATE TABLE INST, Here is a database schema( table schema);
How many losing hands are there before 2007?.It is not neccessary to use all the tables.
SELECT MAX Played FROM table WHERE Team = fluminense
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest amount of plays for fluminense?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Date of designation = 2002-04-01
CREATE TABLE INST, Here is a database schema( table schema);
Name thenames for 2002-04-01.It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12454 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1)
CREATE TABLE INST, Here is a database schema( table schema);
had patient 12454 been diagnosed with any disease on their last hospital visit?It is not neccessary to use all the tables.
SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Name DESC
CREATE TABLE INST, Here is a database schema( table schema);
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and revenue , and group by attribute headquarter, and could you show from high to low by the X-axis please?It is not neccessary to use all the tables.
SELECT AVG(demographic.days_stay) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI"
CREATE TABLE INST, Here is a database schema( table schema);
what is the average days of hospital stay for the patients whose admission location is phys referral/normal deli?It is not neccessary to use all the tables.
SELECT SUM Electors FROM table WHERE Share of votes = 11,0%
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of electors when the share of votes was 11,0%?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_43 WHERE home_team = "richmond"
CREATE TABLE INST, Here is a database schema( table schema);
Where did Richmond play as the home team?It is not neccessary to use all the tables.
SELECT Reference FROM table WHERE Romaji title = Heartbreak Sniper
CREATE TABLE INST, Here is a database schema( table schema);
who is the reference when romaji title is heartbreak sniper?.It is not neccessary to use all the tables.
SELECT COUNT(high_rebounds) FROM table_13762472_5 WHERE record = "19-13"
CREATE TABLE INST, Here is a database schema( table schema);
How many people had the high rebound total when the team was 19-13?It is not neccessary to use all the tables.
SELECT season FROM table_16446652_1 WHERE president = "Jonny Leadbeater"
CREATE TABLE INST, Here is a database schema( table schema);
When was Jonny Leadbeater President?It is not neccessary to use all the tables.
SELECT MIN(area__acres__) FROM table_30120556_1 WHERE townland = "Derrynanool"
CREATE TABLE INST, Here is a database schema( table schema);
What is the fewest area in Derrynanool townland?It is not neccessary to use all the tables.
SELECT Issue Date(s) FROM table WHERE Artist = jennifer lopez
CREATE TABLE INST, Here is a database schema( table schema);
What date did the song by jennifer lopez get issued?.It is not neccessary to use all the tables.
SELECT MIN Season # FROM table WHERE Arties disguises = Herr Ostropolyer, pastry chef
CREATE TABLE INST, Here is a database schema( table schema);
Name the season number for herr ostropolyer, pastry chef.It is not neccessary to use all the tables.
SELECT player FROM table_name_61 WHERE total = 294 AND year_s__won = "1955"
CREATE TABLE INST, Here is a database schema( table schema);
What is Player when Total is "294" and when Year(s) Won is "1955"?It is not neccessary to use all the tables.
SELECT result FROM table_name_73 WHERE competition = "friendly" AND date = "8 october 2009"
CREATE TABLE INST, Here is a database schema( table schema);
what is the result when the competition is friendly on 8 october 2009?It is not neccessary to use all the tables.
SELECT model FROM table_name_16 WHERE status = "operating" AND name = "thor's hammer"
CREATE TABLE INST, Here is a database schema( table schema);
What is the model for Thor's Hammer which is listed as operating?It is not neccessary to use all the tables.
SELECT census_ranking FROM table_171236_1 WHERE official_name = "Quispamsis"
CREATE TABLE INST, Here is a database schema( table schema);
With the official name Quispamsis what is the census ranking?It is not neccessary to use all the tables.
SELECT AVG Pts. FROM table WHERE Engine = alfa romeo v12 AND Year > 1983
CREATE TABLE INST, Here is a database schema( table schema);
What is the average pots of Alfa Romeo v12 after 1983?.It is not neccessary to use all the tables.
SELECT Aggregate FROM table WHERE Dances = 7 AND Known for = Singer
CREATE TABLE INST, Here is a database schema( table schema);
What was the aggregate for the celebrity who was known for being a singer and had 7 dances?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Money ( $ ) < 216
CREATE TABLE INST, Here is a database schema( table schema);
From which country is the player who made less than $216?.It is not neccessary to use all the tables.
SELECT party FROM table_25030512_24 WHERE first_elected = "1998"
CREATE TABLE INST, Here is a database schema( table schema);
Name the party for 1998 first electedIt is not neccessary to use all the tables.
SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
List the industry shared by the most companies.It is not neccessary to use all the tables.
SELECT Division Four FROM table WHERE Division Five = Godstone
CREATE TABLE INST, Here is a database schema( table schema);
When godstone is in division five who is in division four?.It is not neccessary to use all the tables.
SELECT theme FROM table_25468520_1 WHERE date_of_issue = "11 January 2010"
CREATE TABLE INST, Here is a database schema( table schema);
What is the theme when the date of issue is 11 january 2010?It is not neccessary to use all the tables.
SELECT Nominee FROM table WHERE Award Ceremony = tony award AND Category = best performance by a leading actor in a musical
CREATE TABLE INST, Here is a database schema( table schema);
Which Nominee has an Award Ceremony of tony award, and a Category of the best performance by a leading actor in a musical?.It is not neccessary to use all the tables.
SELECT name FROM table_name_69 WHERE location = "mcville"
CREATE TABLE INST, Here is a database schema( table schema);
What bridge is in Mcville?It is not neccessary to use all the tables.
SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = "APG"
CREATE TABLE INST, Here is a database schema( table schema);
What are flight numbers of flights departing from Airport "APG"?It is not neccessary to use all the tables.
SELECT COUNT Wildcats points FROM table WHERE Game = 11
CREATE TABLE INST, Here is a database schema( table schema);
How many times did the Wildcats play a game 11 regardless of points scored?.It is not neccessary to use all the tables.
SELECT date FROM table_name_75 WHERE surface = "clay" AND score = "0–6, 0–6"
CREATE TABLE INST, Here is a database schema( table schema);
Name the date for clay surface and score of 0–6 0–6It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Record = 47–39
CREATE TABLE INST, Here is a database schema( table schema);
What date was the game with a record of 47–39?.It is not neccessary to use all the tables.
SELECT Song FROM table WHERE Draw < 7 AND Points > 41 AND Language = german
CREATE TABLE INST, Here is a database schema( table schema);
Which Song has a Draw smaller than 7, and Points larger than 41, and a Language of german?.It is not neccessary to use all the tables.
SELECT SUM(season) FROM table_name_63 WHERE number_of_clubs = 8 AND runners_up = "shanghai"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the season with 8 clubs and shanghai as the runners-up?It is not neccessary to use all the tables.
SELECT SUM(silver) FROM table_name_19 WHERE total < "6" AND rank = "6" AND nation = "bulgaria"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Silver when the total is less than 6, the rank is 6 and the Bulgaria is the nation?It is not neccessary to use all the tables.
SELECT AVG(international) FROM table_name_78 WHERE domestic = 669 AND year < 2005
CREATE TABLE INST, Here is a database schema( table schema);
What is the number for the international with 669 domestic earlier than 2005?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Date = 13 february 1994
CREATE TABLE INST, Here is a database schema( table schema);
On what type of surface did they play on 13 February 1994?.It is not neccessary to use all the tables.
SELECT MIN(episode_no) FROM table_25721_3 WHERE airdate = "18 October 2012"
CREATE TABLE INST, Here is a database schema( table schema);
Which episode number aired on 18 october 2012?It is not neccessary to use all the tables.
SELECT viewers__in_millions_ FROM table_175980_2 WHERE season = "1st"
CREATE TABLE INST, Here is a database schema( table schema);
What are all values for viewers for 1st season?It is not neccessary to use all the tables.
SELECT Moving To FROM table WHERE Name = leon andreasen
CREATE TABLE INST, Here is a database schema( table schema);
What is Moving To, when Name is "Leon Andreasen"?.It is not neccessary to use all the tables.
SELECT MIN(points) FROM table_name_50 WHERE attendance = "1,500"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of points scored when there were 1500 in attendance?It is not neccessary to use all the tables.
SELECT city FROM table_name_92 WHERE gross_revenue__2011_ = "$739,578"
CREATE TABLE INST, Here is a database schema( table schema);
Which city had a gross revenue in 2011 of $739578?It is not neccessary to use all the tables.
SELECT representative FROM table_name_93 WHERE presentation_of_credentials = "september 8, 2005"
CREATE TABLE INST, Here is a database schema( table schema);
Which Representative has a Presentation of Credentials on september 8 2005?It is not neccessary to use all the tables.
SELECT MIN 4 Hoops, 2 Clubs FROM table WHERE Total = 38.25
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest 4 hoops, 2 clubs of the nation with a total of 38.25?.It is not neccessary to use all the tables.
SELECT Theme FROM table WHERE Mintage = 700
CREATE TABLE INST, Here is a database schema( table schema);
In the Endangered Wildlife Series from the Royal Canadian Mint numismatic coins printed in the 2000s, what theme had a mintage of 700?.It is not neccessary to use all the tables.
SELECT third FROM table_name_60 WHERE nation = "england"
CREATE TABLE INST, Here is a database schema( table schema);
Who came in third in England?It is not neccessary to use all the tables.
SELECT MIN Games FROM table WHERE Rank > 1 AND Name = luis scola
CREATE TABLE INST, Here is a database schema( table schema);
What is the least amount of games for Luis scola with a rank greater than 1?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Tournament = universiade AND Year = 1959
CREATE TABLE INST, Here is a database schema( table schema);
Where was the universiade held in 1959?.It is not neccessary to use all the tables.
SELECT model_number FROM table_1300080_1 WHERE printer_ports = "Three Parallel"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of the model with three parallel printer ports?It is not neccessary to use all the tables.
SELECT birthplace FROM table_name_86 WHERE real_name = "charles 'chuck' connors"
CREATE TABLE INST, Here is a database schema( table schema);
What Birthplace's Real Name is Charles 'Chuck' Connors?It is not neccessary to use all the tables.
SELECT COUNT Record FROM table WHERE High assists = Devin Harris (6)
CREATE TABLE INST, Here is a database schema( table schema);
How many record data were written when Devin Harris (6) was High Assists?.It is not neccessary to use all the tables.
SELECT record FROM table_name_7 WHERE result = "w" AND date = "january 2"
CREATE TABLE INST, Here is a database schema( table schema);
What record has w as the result with January 2 as the date?It is not neccessary to use all the tables.
SELECT Grand Slam FROM table WHERE Year = 1987 AND Round = first round AND Winner = ivan lendl
CREATE TABLE INST, Here is a database schema( table schema);
What is the grand slam in 1987, when round shows first round, and Ivan Lendl won?.It is not neccessary to use all the tables.
SELECT number_at_march FROM table_15608800_2 WHERE class = "J66"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number at march when class is j66It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Game site = shea stadium AND Week = 5
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Game site of shea stadium, and a Week of 5?.It is not neccessary to use all the tables.
SELECT MAX Grid FROM table WHERE Laps > 22
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum grid when the laps were greater than 22?.It is not neccessary to use all the tables.
SELECT MAX(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-94542')) AND intakeoutput.celllabel = 'outpu...
CREATE TABLE INST, Here is a database schema( table schema);
what is the yearly maximum amount of output (ml)-urethral catheter straight-tip 16 fr. that patient 015-94542 had until 1624 days ago?It is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE Manufacturer = ford AND Finish < 37
CREATE TABLE INST, Here is a database schema( table schema);
Smaller than 37, the highest year for Ford?.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Method = tko (punches)
CREATE TABLE INST, Here is a database schema( table schema);
At what Location was the match Method TKO (punches)?.It is not neccessary to use all the tables.
SELECT MAX Lost FROM table WHERE Drawn < 0
CREATE TABLE INST, Here is a database schema( table schema);
what is the most games lost when there were 0 draws?.It is not neccessary to use all the tables.
SELECT MAX Drawn FROM table WHERE Diff. < 186 AND Points < 12 AND Played < 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum number of draws when the diff is smaller than 186, points are fewer than 12 and games played fewer than 6?.It is not neccessary to use all the tables.
SELECT Men's doubles FROM table WHERE Year > 1999 AND Men's singles = kasper ipsen
CREATE TABLE INST, Here is a database schema( table schema);
After 1999, who played Men's Doubles when Kasper Ipsen played Men's Singles?.It is not neccessary to use all the tables.
SELECT MAX(basses) FROM table_2414_1
CREATE TABLE INST, Here is a database schema( table schema);
What is the biggest number of basses suggested in either one of the references?It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Score = 65-19
CREATE TABLE INST, Here is a database schema( table schema);
What is the Time with a Score that is 65-19?.It is not neccessary to use all the tables.
SELECT place FROM table_name_61 WHERE to_par = "–1"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Place of the Player with a To par of 1?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Country = australia
CREATE TABLE INST, Here is a database schema( table schema);
Which player is from Australia?.It is not neccessary to use all the tables.
SELECT pilot FROM table_name_89 WHERE record_description = "maximum load to m (ft)" AND date = "23 september 1961"
CREATE TABLE INST, Here is a database schema( table schema);
Record description of maximum load to m (ft) and a Date of 23 september 1961 is what pilot?It is not neccessary to use all the tables.
SELECT quantity_made FROM table_name_2 WHERE class = "p14"
CREATE TABLE INST, Here is a database schema( table schema);
How many CLASS P14 trains were made?It is not neccessary to use all the tables.
SELECT MIN(attendance) FROM table_name_7 WHERE date = "november 29, 1959"
CREATE TABLE INST, Here is a database schema( table schema);
Date of november 29 1959 had what lowest attendance?It is not neccessary to use all the tables.
SELECT MAX Score FROM table WHERE Place = t2 AND Player = steve flesch
CREATE TABLE INST, Here is a database schema( table schema);
What is T2 Place Player Steve Flesch's Score?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Player = Samir Nasri
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for the game in which Samir Nasri played?.It is not neccessary to use all the tables.
SELECT director FROM table_21146729_6 WHERE writer_s_ = "John W. Bloch"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the director when the writer(s) was John W. Bloch?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Attendance > 202
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team of the match with an attendance greater than 202?.It is not neccessary to use all the tables.
SELECT COUNT(maac) FROM table_21756039_1 WHERE ncaa_seed = "14th" AND overall = "20-10"
CREATE TABLE INST, Here is a database schema( table schema);
How many maac are there that have 14th as the ncaa and the overall is 20-10?It is not neccessary to use all the tables.
SELECT Period FROM table WHERE Matches = 0 0 AND Country = portugal
CREATE TABLE INST, Here is a database schema( table schema);
Name the period with matches of 0 0 of portugal.It is not neccessary to use all the tables.
SELECT payment_method_code, COUNT(*) FROM Customers GROUP BY payment_method_code
CREATE TABLE INST, Here is a database schema( table schema);
Bar graph to show the total number from different payment method codeIt is not neccessary to use all the tables.