sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT Countries sampled FROM table WHERE Year of publication = 2007 AND Ranking L.A. (2) = 7th
CREATE TABLE INST, Here is a database schema( table schema);
how many countries sampled with year of publication being 2007 and ranking l.a. (2) being 7th.It is not neccessary to use all the tables.
SELECT SUM(high_schools) FROM table_name_38 WHERE cemeteries = 8
CREATE TABLE INST, Here is a database schema( table schema);
How many High schools in the Region with 8 Cemeteries?It is not neccessary to use all the tables.
SELECT Chassis FROM table WHERE Points = 25
CREATE TABLE INST, Here is a database schema( table schema);
What is the chassis when there is 25 points?.It is not neccessary to use all the tables.
SELECT COUNT(writer) FROM table_10470082_3 WHERE us_air_date = "September 25, 1993"
CREATE TABLE INST, Here is a database schema( table schema);
How many writers had an US air date of september 25 1993?It is not neccessary to use all the tables.
SELECT AVG(price) FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average price for flights from Los Angeles to Honolulu.It is not neccessary to use all the tables.
SELECT 2012 FROM table WHERE 2011 = 28.9%
CREATE TABLE INST, Here is a database schema( table schema);
What is listed for the 2012 that has a 2011 of 28.9%?.It is not neccessary to use all the tables.
SELECT joint_music_award FROM table_name_32 WHERE total > 18 AND year > 2007
CREATE TABLE INST, Here is a database schema( table schema);
How many Joint Music Awards are there when the Total is larger than 18 in a Year after 2007?It is not neccessary to use all the tables.
SELECT original_title FROM table_name_66 WHERE result = "not nominated" AND year__ceremony_ = "2012 (85th)"
CREATE TABLE INST, Here is a database schema( table schema);
In the 2012 (85th) Ceremony what was the Original title of the film not nominated?It is not neccessary to use all the tables.
SELECT position FROM table_11803648_21 WHERE player = "Cody Ceci"
CREATE TABLE INST, Here is a database schema( table schema);
What position does Cody Ceci play?It is not neccessary to use all the tables.
SELECT fatalities FROM table_name_78 WHERE time = "12:38:46"
CREATE TABLE INST, Here is a database schema( table schema);
What number of Fatalties is associated with the Time of 12:38:46?It is not neccessary to use all the tables.
SELECT Theme FROM table WHERE Issue Price = $89.95
CREATE TABLE INST, Here is a database schema( table schema);
What is the Theme of the coin with an Issue Price of $89.95?.It is not neccessary to use all the tables.
SELECT MIN(rank) FROM table_name_60 WHERE name = "jeremiah massey" AND games < 20
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Rank when Name is Jeremiah Massey and when Games is less than 20?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Set 2 = 25–18
CREATE TABLE INST, Here is a database schema( table schema);
What is the overall score when the set 2 score is 25–18?.It is not neccessary to use all the tables.
SELECT MIN Int yards FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the least amount of int yards.It is not neccessary to use all the tables.
SELECT Res. FROM table WHERE Opponent = ryan scheepe
CREATE TABLE INST, Here is a database schema( table schema);
Which of the Res., has Ryan Scheepe as an opponent?.It is not neccessary to use all the tables.
SELECT MAX(asts) FROM table_name_38 WHERE pos = "f/c" AND rebs < 13
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of assists for players that are f/c and have under 13 rebounds?It is not neccessary to use all the tables.
SELECT location FROM table_25643046_1 WHERE origin_time = "14:07"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the quake that began at 14:07?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Date = 2003
CREATE TABLE INST, Here is a database schema( table schema);
What is the country associated with the date in 2003?.It is not neccessary to use all the tables.
SELECT Earned FROM table WHERE Rank = 5
CREATE TABLE INST, Here is a database schema( table schema);
What earned has 5 for the rank?.It is not neccessary to use all the tables.
SELECT SUM Jun 2014 FROM table WHERE Population 2006 < 1,344,000
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of Jun 2014 when the population 2006 was less than 1,344,000?.It is not neccessary to use all the tables.
SELECT series FROM table_name_66 WHERE title = "peck up your troubles"
CREATE TABLE INST, Here is a database schema( table schema);
From what series is Peck Up Your Troubles?It is not neccessary to use all the tables.
SELECT year_built FROM table_name_74 WHERE venue = "john m. belk arena"
CREATE TABLE INST, Here is a database schema( table schema);
What year was John m. Belk Arena built?It is not neccessary to use all the tables.
SELECT player FROM table_2781227_2 WHERE nhl_team = "Chicago Blackhawks"
CREATE TABLE INST, Here is a database schema( table schema);
What player belongs to the Chicago Blackhawks?It is not neccessary to use all the tables.
SELECT gdp_per_capita__us$_ FROM table_name_40 WHERE gdp__billion_us$_ = "80.955"
CREATE TABLE INST, Here is a database schema( table schema);
What is the per-capita GDP of the country with an overall GDP of 80.955?It is not neccessary to use all the tables.
SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_film = "Tingya"
CREATE TABLE INST, Here is a database schema( table schema);
Name the awardee for tingyaIt is not neccessary to use all the tables.
SELECT Conversion from Patent Application FROM table WHERE Maximum Term = 10 years AND PCT route available = Yes
CREATE TABLE INST, Here is a database schema( table schema);
When the PCT route available is yes and the maximum term is 10 years, what are the available conversions from patent applications?.It is not neccessary to use all the tables.
SELECT Owner FROM table WHERE Frequency = 00 99.3
CREATE TABLE INST, Here is a database schema( table schema);
What is the Owner of Frequency 00 99.3?.It is not neccessary to use all the tables.
SELECT № FROM table_27905664_1 WHERE us_viewers__million_ = "4.87"
CREATE TABLE INST, Here is a database schema( table schema);
What episode number had US viewership of 4.87 million?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.short_title = "Chronic kidney dis NOS" AND lab.fluid = "Cerebrospinal Fluid (CSF)"
CREATE TABLE INST, Here is a database schema( table schema);
look for the number of patients with the diagnosis of unspecified chronic kidney disease who have had csf lab test.It is not neccessary to use all the tables.
SELECT Skip FROM table WHERE Nation = germany
CREATE TABLE INST, Here is a database schema( table schema);
What was the Skip for Germany?.It is not neccessary to use all the tables.
SELECT COUNT(civil_liberties_2011) FROM table_name_70 WHERE political_rights_2010 < 3 AND political_rights_2011 < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of civil liberties 2011 values having 2010 political rights values under 3 and 2011 political rights values under 1?It is not neccessary to use all the tables.
SELECT administrative_county FROM table_14925084_1 WHERE area_1961__statute_acres_ = 422372
CREATE TABLE INST, Here is a database schema( table schema);
Name the administrative county being area of 422372It is not neccessary to use all the tables.
SELECT country FROM table_name_21 WHERE year_s__won = "1988"
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Country that has the Year(s) Won of 1988?It is not neccessary to use all the tables.
SELECT Equipment FROM table WHERE Points > 256 AND Position = 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the Equipment that has a Point bigger than 256, and a Position of 3?.It is not neccessary to use all the tables.
SELECT party FROM driver WHERE home_city = 'Hartford' AND age > 40
CREATE TABLE INST, Here is a database schema( table schema);
Show the party with drivers from Hartford and drivers older than 40.It is not neccessary to use all the tables.
SELECT MIN Field goals (4 points) FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the least number of field goals scored by a player? .It is not neccessary to use all the tables.
SELECT Population FROM table WHERE Market Income Per Capita = $17,362
CREATE TABLE INST, Here is a database schema( table schema);
What is the population in those place where the market income per capita is $17,362?.It is not neccessary to use all the tables.
SELECT event FROM table_name_93 WHERE winner = "joão barbosa"
CREATE TABLE INST, Here is a database schema( table schema);
João Barbosa was the winner of which event?It is not neccessary to use all the tables.
SELECT MIN Points FROM table WHERE Engine = mugen v8 AND Chassis = reynard 91d
CREATE TABLE INST, Here is a database schema( table schema);
What are the lowest points that have a Mugen V8 engine and a Reynard 91D chassis?.It is not neccessary to use all the tables.
SELECT title FROM table_name_79 WHERE year = "1991"
CREATE TABLE INST, Here is a database schema( table schema);
What is the title in 1991?It is not neccessary to use all the tables.
SELECT COUNT(nationality) FROM table_30083499_1 WHERE tournament = "2011 Apertura"
CREATE TABLE INST, Here is a database schema( table schema);
How many nationalities are there for the 2011 apertura?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT course.department, course.name, course.number, semester.semester) FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'department0' AND course.number BETWEEN 300 AND 300 + 100 AND semester.semester IN ('FA', 'WN') AND semester.semester_id = course_offering.semester AND semester.year = 2016
CREATE TABLE INST, Here is a database schema( table schema);
How many different classes at level 300 are there to take for the Fall and Winter ?It is not neccessary to use all the tables.
SELECT open_cup FROM table_1214035_1 WHERE year = 2002
CREATE TABLE INST, Here is a database schema( table schema);
What open cups where played in 2002It is not neccessary to use all the tables.
SELECT college FROM table_name_29 WHERE cfl_team = "calgary stampeders"
CREATE TABLE INST, Here is a database schema( table schema);
Which college did the Calgary Stampeders recruit from?It is not neccessary to use all the tables.
SELECT COUNT Viewers (m) FROM table WHERE Overall = 91/101
CREATE TABLE INST, Here is a database schema( table schema);
how many viewers (m) with overall being 91/101.It is not neccessary to use all the tables.
SELECT nationality FROM table_name_39 WHERE apps > 40 AND goals = 17
CREATE TABLE INST, Here is a database schema( table schema);
Where was the player born when the appearances were greater than 40 and made 17 goals?It is not neccessary to use all the tables.
SELECT points_against FROM table_name_92 WHERE try_bonus = "6" AND tries_against = "54"
CREATE TABLE INST, Here is a database schema( table schema);
How many points against does the club that has a try bonus of 6 and tries against of 54 have ?It is not neccessary to use all the tables.
SELECT position FROM table_name_38 WHERE school = "ohio state" AND points = "412"
CREATE TABLE INST, Here is a database schema( table schema);
What position does the winner from Ohio State with 412 points play?It is not neccessary to use all the tables.
SELECT country FROM table_name_58 WHERE player = "johnny miller"
CREATE TABLE INST, Here is a database schema( table schema);
Which country has the player Johnny Miller?It is not neccessary to use all the tables.
SELECT Home or Away FROM table WHERE Record = Biggest win
CREATE TABLE INST, Here is a database schema( table schema);
Is the biggest win recorded as home or away?.It is not neccessary to use all the tables.
SELECT romanised_name FROM table_2263674_1 WHERE chinese_name = "梁愛詩"
CREATE TABLE INST, Here is a database schema( table schema);
What's 梁愛詩's romanised name?It is not neccessary to use all the tables.
SELECT "contestant" FROM table_204_144 WHERE id = 1
CREATE TABLE INST, Here is a database schema( table schema);
who is the first person that is being represented ?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Hometown = fort lauderdale, florida
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of the player from Fort Lauderdale, Florida?.It is not neccessary to use all the tables.
SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'ondansetron 4 mg po tab-disperse')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY cost.patienthealthsystemstayid) AS t1
CREATE TABLE INST, Here is a database schema( table schema);
what is the average total hospital cost which involves ondansetron 4 mg po tab-disperse this year?It is not neccessary to use all the tables.
SELECT COUNT(party) FROM table_1805191_39 WHERE district = "Pennsylvania 1"
CREATE TABLE INST, Here is a database schema( table schema);
In the district of Pennsylvania 1 what is the total number of political parties?It is not neccessary to use all the tables.
SELECT AVG(lost) FROM table_name_86 WHERE against < 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number lost when the against value is less than 5?It is not neccessary to use all the tables.
SELECT COUNT Heat FROM table WHERE Country = british virgin islands
CREATE TABLE INST, Here is a database schema( table schema);
What's the total number of Heat recorded for the british virgin islands?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Player = olin dutra
CREATE TABLE INST, Here is a database schema( table schema);
What was Olin Dutra's score?.It is not neccessary to use all the tables.
SELECT frame_size FROM table_name_74 WHERE max_fps = 120 AND width = 2048 AND height = 1024
CREATE TABLE INST, Here is a database schema( table schema);
What frame size corresponds the selection with a max fps of 120 a width of 2048 and height of 1024?It is not neccessary to use all the tables.
SELECT SUM Number of electorates (2009) FROM table WHERE District = indore AND Reserved for ( SC / ST /None) = none AND Constituency number = 208
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of electorates (2009) for the Indore district, when reserved for (SC / ST /None) is none, and constituency number is 208?.It is not neccessary to use all the tables.
SELECT Loss FROM table WHERE Record = 14-19
CREATE TABLE INST, Here is a database schema( table schema);
Name the loss with record of 14-19.It is not neccessary to use all the tables.
SELECT name FROM useracct WHERE NOT u_id IN (SELECT u_id FROM review)
CREATE TABLE INST, Here is a database schema( table schema);
Find the names of users who did not leave any review.It is not neccessary to use all the tables.
SELECT Clean_Jerk FROM body_builder ORDER BY Total DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What are the clean and jerk score of the body builder with the highest total score?It is not neccessary to use all the tables.
SELECT african_spoonbill FROM table_20042805_2 WHERE ostrich = "Brown-hooded Kingfisher"
CREATE TABLE INST, Here is a database schema( table schema);
What is the African Spoonbill when the Ostrich is Brown-hooded Kingfisher?It is not neccessary to use all the tables.
SELECT 1st leg FROM table WHERE Team 1 = gambia
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1st leg result when team 1 is Gambia?.It is not neccessary to use all the tables.
SELECT Notes FROM table WHERE Rank < 3 AND Stadium = yuvileiny stadium (sumy)
CREATE TABLE INST, Here is a database schema( table schema);
What are the notes with a less than 3 rank at Yuvileiny Stadium (sumy)?.It is not neccessary to use all the tables.
SELECT Third Vice president FROM table WHERE Inaugurated = 15 march 1934
CREATE TABLE INST, Here is a database schema( table schema);
What is Third Vice President, when Inaugurated is "15 March 1934"?.It is not neccessary to use all the tables.
SELECT SUM Quantity FROM table WHERE Type = 2-4-2t
CREATE TABLE INST, Here is a database schema( table schema);
What is the Quantity of Type 2-4-2t?.It is not neccessary to use all the tables.
SELECT COUNT Player FROM table WHERE Years for Jazz = 2006-2007
CREATE TABLE INST, Here is a database schema( table schema);
How many players have played for Jazz during 2006-2007?.It is not neccessary to use all the tables.
SELECT COUNT(winning_driver) FROM table_16099880_5 WHERE race = "Chicagoland"
CREATE TABLE INST, Here is a database schema( table schema);
In what position did the winning driver finish at Chicagoland?It is not neccessary to use all the tables.
SELECT 1993 FROM table WHERE 1994 = 2r AND 1995 = 1r
CREATE TABLE INST, Here is a database schema( table schema);
What 1993 has 2r as a 1994, and 1r as a 1995?.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Original air date = March 19, 1998
CREATE TABLE INST, Here is a database schema( table schema);
Which tittles have an original air date of March 19, 1998.It is not neccessary to use all the tables.
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT outputevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM outputevents WHERE STRFTIME('%y', outputevents.charttime) <= '2100' GROUP BY outputevents.itemid) AS t1 WHERE t1.c1 <= 5)
CREATE TABLE INST, Here is a database schema( table schema);
retrieve the top five most common output events until 2100?It is not neccessary to use all the tables.
SELECT MAX(laps) FROM table_name_62 WHERE class = "oc" AND qual_pos = 7
CREATE TABLE INST, Here is a database schema( table schema);
What are the most laps for the Qual position of 7 in the OC class?It is not neccessary to use all the tables.
SELECT shareholder name FROM table WHERE A shares = 0
CREATE TABLE INST, Here is a database schema( table schema);
What shareholders have 0 A shares?.It is not neccessary to use all the tables.
SELECT year FROM table_name_95 WHERE laps = 200
CREATE TABLE INST, Here is a database schema( table schema);
Which year has 200 laps?It is not neccessary to use all the tables.
SELECT linke FROM table_name_99 WHERE state = "tyrol"
CREATE TABLE INST, Here is a database schema( table schema);
What percent did LINKE get in Tyrol?It is not neccessary to use all the tables.
SELECT AVG(week) FROM table_name_4 WHERE result = "w 17-14"
CREATE TABLE INST, Here is a database schema( table schema);
On what Week was the Result W 17-14?It is not neccessary to use all the tables.
SELECT Screening Completed FROM table WHERE Screening Started = 23 january 2006
CREATE TABLE INST, Here is a database schema( table schema);
Name the screening completed for screening started 23 january 2006.It is not neccessary to use all the tables.
SELECT MIN(indian_tamil) FROM table_24574438_1 WHERE population_density___km_2__ = 240
CREATE TABLE INST, Here is a database schema( table schema);
Name the least indian tamil for population density being 240It is not neccessary to use all the tables.
SELECT success FROM table_12078626_1 WHERE date_of_completion = "September 28, 2007"
CREATE TABLE INST, Here is a database schema( table schema);
what's the success where date of completion is september 28 2007It is not neccessary to use all the tables.
SELECT home_team FROM table_name_36 WHERE tie_no = "2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Home team of tie no 2?It is not neccessary to use all the tables.
SELECT COUNT(scores_by_each_individual_judge) FROM table_18278508_6 WHERE co_contestant__yaar_vs_pyaar_ = "Mukul Dev"
CREATE TABLE INST, Here is a database schema( table schema);
How many different combinations of scores by individual judges were given to the contestant competing against Mukul Dev?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Directed by = Bill Lawrence
CREATE TABLE INST, Here is a database schema( table schema);
What was the name of the episode that bill lawrence directed?.It is not neccessary to use all the tables.
SELECT "notes" FROM table_204_706 WHERE "year" = 2002 ORDER BY "notes" DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
how long was huang le 's longest jump in 2002 ?It is not neccessary to use all the tables.
SELECT MIN Points FROM table WHERE Drawn < 6 AND Played < 18
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of points of any team with less than 6 draws and less than 18 matches played?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Roll = 270
CREATE TABLE INST, Here is a database schema( table schema);
Which name has a Roll of 270?.It is not neccessary to use all the tables.
SELECT COUNT(obama_number) FROM table_20350118_1 WHERE obama_percentage = "27.8%"
CREATE TABLE INST, Here is a database schema( table schema);
How many different results were there for the number of votes fro Obama in the county where he got 27.8% of the votes?It is not neccessary to use all the tables.
SELECT COUNT(p.Id) FROM Posts AS p WHERE p.OwnerUserId = '##userId##'
CREATE TABLE INST, Here is a database schema( table schema);
Percentage of my answers that are accepted.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Year = 2009 AND Award = sopot international song festival
CREATE TABLE INST, Here is a database schema( table schema);
What result took pace in 2009 and had an award of sopot international song festival?.It is not neccessary to use all the tables.
SELECT us_air_date FROM table_18424435_5 WHERE canadian_viewers__million_ = "1.229"
CREATE TABLE INST, Here is a database schema( table schema);
Which air dates have 1.229 canadian viewers (millions)?It is not neccessary to use all the tables.
SELECT Users.DisplayName, COUNT(Posts.Id) FROM Users JOIN Posts ON Posts.OwnerUserId = Users.Id WHERE Posts.PostTypeId = 1 AND LOWER(Users.Location) LIKE '%juiz de fora%' GROUP BY Users.DisplayName ORDER BY 2 DESC
CREATE TABLE INST, Here is a database schema( table schema);
Top users asking by city.It is not neccessary to use all the tables.
SELECT Extra FROM table WHERE Tournament = world championships AND Result = 1st
CREATE TABLE INST, Here is a database schema( table schema);
What extra has world championships as the tournament, and 1st as the result?.It is not neccessary to use all the tables.
SELECT production_company FROM table_name_19 WHERE year = "2008-2009"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the production company that has a year of 2008-2009?It is not neccessary to use all the tables.
SELECT North America FROM table WHERE Title = phantom brave
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the north america for phantom brave.It is not neccessary to use all the tables.
SELECT MIN Played FROM table WHERE Drawn > 0 AND Percentage = 12.50% AND Lost < 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of matches played that has more than 0 draws, a percentage of 12.50%, and fewer than 3 losses?.It is not neccessary to use all the tables.
SELECT outcome FROM table_name_49 WHERE surface = "clay" AND date = "2 may 2009"
CREATE TABLE INST, Here is a database schema( table schema);
What was the outcome when the game was played on clay and on 2 May 2009?It is not neccessary to use all the tables.
SELECT nationality FROM table_1013129_11 WHERE player = "Shayne Wright"
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality of Shayne Wright?It is not neccessary to use all the tables.
SELECT college FROM table_name_6 WHERE round > 2 AND position = "guard"
CREATE TABLE INST, Here is a database schema( table schema);
Round larger than 2 and a Position of guard involves what college?It is not neccessary to use all the tables.
SELECT team_1 FROM table_name_34 WHERE team_2 = "toulouse fc (d1)"
CREATE TABLE INST, Here is a database schema( table schema);
What was team one name for the Team 2 of Toulouse Fc (d1)>?It is not neccessary to use all the tables.