sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Singer(s) FROM table WHERE Ratings = 1.45m
CREATE TABLE INST, Here is a database schema( table schema);
Name the singer for 1.45m.It is not neccessary to use all the tables.
SELECT dpi FROM table_16409745_1 WHERE max_page_size = "216mm x 355mm"
CREATE TABLE INST, Here is a database schema( table schema);
What is the dpi for the scanner with a max page size of 216mm x 355mm?It is not neccessary to use all the tables.
SELECT High rebounds FROM table WHERE Team = @ charlotte
CREATE TABLE INST, Here is a database schema( table schema);
What are the high rebounds of team @ Charlotte?.It is not neccessary to use all the tables.
SELECT location FROM table_name_98 WHERE left = 1975 AND type = "private" AND founded = 1891
CREATE TABLE INST, Here is a database schema( table schema);
Where was the former private member that was founded in 1891 and left in 1975?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM game WHERE NOT id IN (SELECT game_id FROM injury_accident)
CREATE TABLE INST, Here is a database schema( table schema);
How many games are free of injury accidents?It is not neccessary to use all the tables.
SELECT date FROM table_name_24 WHERE rank__number = "5" AND opponent_number = "stanford"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the game played where the opponent was Stanford ranked #5?It is not neccessary to use all the tables.
SELECT COUNT Rank FROM table WHERE Project name = Pebble: E-Paper Watch for iPhone and Android
CREATE TABLE INST, Here is a database schema( table schema);
Project Name Pebble: E-Paper Watch for Iphone and Android was ranked how many times?.It is not neccessary to use all the tables.
SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AND Posts.CreationDate < '2018-10-01' AND Posts.CreationDate > '2018-09-01' GROUP BY TagName ORDER BY 1 DESC
CREATE TABLE INST, Here is a database schema( table schema);
Most popular StackOverflow tags in Sept 2018.It is not neccessary to use all the tables.
SELECT third FROM table_name_14 WHERE nation = "scotland"
CREATE TABLE INST, Here is a database schema( table schema);
Which Third has a Nation of scotland?It is not neccessary to use all the tables.
SELECT international_tourist_arrivals__2010_ FROM table_14752049_3 WHERE international_tourist_arrivals__2011_ = "8.1 million"
CREATE TABLE INST, Here is a database schema( table schema);
Name the international tourist arrivals for arrivals 2011 for 8.1 millionIt is not neccessary to use all the tables.
SELECT power_provided FROM table_174151_5 WHERE transfer_speed__mb_s_ = "300" AND max_cable_length__m_ = "10"
CREATE TABLE INST, Here is a database schema( table schema);
Name the power provided where transfer speed mb/s is 300 and max cable length of 10It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Attendance < 2248 AND Score = 2:0 AND Date = 21 september 2008
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team of the match on 21 September 2008 with an attendance less than 2248 and a 2:0 score?.It is not neccessary to use all the tables.
SELECT max(country) FROM sampledata15
CREATE TABLE INST, Here is a database schema( sampledata15);
Where do the US import the most food ?. It is not neccessary to use all the tables.
SELECT COUNT Total FROM table WHERE Rank = 5
CREATE TABLE INST, Here is a database schema( table schema);
How many different total points does the couple ranked at number 5 have?.It is not neccessary to use all the tables.
SELECT FCC info FROM table WHERE Call sign = W265AV
CREATE TABLE INST, Here is a database schema( table schema);
what's the fcc info with call sign being w265av.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Date = 19 Oct 2002
CREATE TABLE INST, Here is a database schema( table schema);
What was Northerly's result at the race on 19 Oct 2002?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Date = november 25, 1973
CREATE TABLE INST, Here is a database schema( table schema);
What were the results for november 25, 1973?.It is not neccessary to use all the tables.
SELECT COUNT(mlb_team) FROM table_18373863_2 WHERE fcsl_team = "Winter Pines"
CREATE TABLE INST, Here is a database schema( table schema);
When winter pines is the fcsl team how many mlb teams are there?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Season MVP < 1.0 AND Second Team < 1.0
CREATE TABLE INST, Here is a database schema( table schema);
who are all the players when season mvp is less than 1.0 and second team is less than 1.0.It is not neccessary to use all the tables.
SELECT AVG(wins) FROM table_name_18 WHERE f_laps > 1 AND points = "80"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Wins when F/Laps is greater than 1 and when Points is 80?It is not neccessary to use all the tables.
SELECT Obama% FROM table WHERE McCain% = 55.46%
CREATE TABLE INST, Here is a database schema( table schema);
What was Obama's percentage in those places where McCain's percentage was 55.46%?.It is not neccessary to use all the tables.
SELECT Uranium required 2006-08 FROM table WHERE Country = Russia
CREATE TABLE INST, Here is a database schema( table schema);
How much uranium did Russia use in 2006 to 2008?.It is not neccessary to use all the tables.
SELECT COUNT(position) FROM table_14038363_1 WHERE player = "Teodor Salparov"
CREATE TABLE INST, Here is a database schema( table schema);
How many position does Teodor Salparov play on?It is not neccessary to use all the tables.
SELECT overall FROM table_name_71 WHERE plyff = "(0-1)" AND away = "(1-1)"
CREATE TABLE INST, Here is a database schema( table schema);
Which Overall has a playoff record of (0-1) and an away record of (1-1)?It is not neccessary to use all the tables.
SELECT MAX(goals_against) FROM table_name_74 WHERE club = "pontevedra cf" AND played < 38
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Goals Against when Club is "Pontevedra CF" and when Played is less than 38?It is not neccessary to use all the tables.
SELECT COUNT(goals_for) FROM table_name_37 WHERE goals_against < 56 AND games_played > 7 AND wins < 6
CREATE TABLE INST, Here is a database schema( table schema);
How many goals for occurred when the goals against was less than 56 and games played was larger than 7 with less than 6 wins?It is not neccessary to use all the tables.
SELECT country FROM table_name_10 WHERE year > 2011
CREATE TABLE INST, Here is a database schema( table schema);
What country was the film made in that was made after 2011?It is not neccessary to use all the tables.
SELECT gdp__billion_us$_ FROM table_1307842_6 WHERE area__km²_ = 83871
CREATE TABLE INST, Here is a database schema( table schema);
What is the gdp of the country with an area of 83871 (km2)?It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Series = 5th place AND Season = 2006–07
CREATE TABLE INST, Here is a database schema( table schema);
What is the Round when the series shows 5th place, and a Season of 2006–07?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Week = 5
CREATE TABLE INST, Here is a database schema( table schema);
What was week 5's result?.It is not neccessary to use all the tables.
SELECT Film FROM table WHERE Year = 1996
CREATE TABLE INST, Here is a database schema( table schema);
What film was released in 1996?.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Away team = mutual team b
CREATE TABLE INST, Here is a database schema( table schema);
What was the time for the match with away team Mutual Team B?.It is not neccessary to use all the tables.
SELECT MAX Total FROM table WHERE Period = 9/21/1975 – 12/16/1984
CREATE TABLE INST, Here is a database schema( table schema);
How many consecutive starts for the linebacker who played from 9/21/1975 – 12/16/1984?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Award = bafta tv award
CREATE TABLE INST, Here is a database schema( table schema);
What was the result for the Bafta Tv award?.It is not neccessary to use all the tables.
SELECT COUNT(pl_gp) FROM table_name_90 WHERE reg_gp = 0 AND rd__number > 8 AND pick__number > 146
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum number of Pl GP when the Reg GP was 0 the Rd number was bigger than 8 and the pick number was bigger than 146?It is not neccessary to use all the tables.
SELECT COUNT First aired FROM table WHERE Performed by = Zachary Sanders
CREATE TABLE INST, Here is a database schema( table schema);
When zachary sanders is the performer how many first aired are there?.It is not neccessary to use all the tables.
SELECT 2006 FROM table_name_40 WHERE 2003 = "not held" AND 2012 = "a"
CREATE TABLE INST, Here is a database schema( table schema);
What was the value in 2006 when 2003 was not held and 2012 was A?It is not neccessary to use all the tables.
SELECT right_ascension___j2000__ FROM table_name_14 WHERE ngc_number < 6995 AND object_type = "diffuse nebula" AND declination___j2000__ = "°42′30″"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Right Ascension with a Diffuse Nebula Object Type has a °42′30″ Declination and a NGC less than 6995?It is not neccessary to use all the tables.
SELECT Theme Song(s) FROM table WHERE Japanese Title = 働きマン
CREATE TABLE INST, Here is a database schema( table schema);
What is the Theme Song of 働きマン?.It is not neccessary to use all the tables.
SELECT COUNT Category FROM table WHERE C_{low} = 35.5
CREATE TABLE INST, Here is a database schema( table schema);
In how many different categories is the value of C_{low} 35.5?.It is not neccessary to use all the tables.
SELECT Lost FROM table WHERE Points for = 539
CREATE TABLE INST, Here is a database schema( table schema);
How many losses does the club with 539 points for have?.It is not neccessary to use all the tables.
SELECT MIN Population millions FROM table WHERE Inhabitants per MEP < 414,538 AND Influence = 2.06 AND MEPs < 13
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest population in millions that has inhabitants per MEP less than 414,538, and an influence of 2.06, and MEPs less than 13?.It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_93 WHERE edition > 4 AND winner = "new york red bulls"
CREATE TABLE INST, Here is a database schema( table schema);
I want the sum of year for edition more than 4 and winners of new york red bullsIt is not neccessary to use all the tables.
SELECT COUNT(DISTINCT (business.name)) FROM business, review, user WHERE business.city = 'San Diego' AND review.business_id = business.business_id AND review.year = 2010 AND user.name = 'Christine' AND user.user_id = review.user_id
CREATE TABLE INST, Here is a database schema( table schema);
How many businesses in ' San Diego ' has Christine reviewed in 2010 ?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_94 WHERE away_team = "hereford united"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Attendance at the Hereford United Away game?It is not neccessary to use all the tables.
SELECT AVG(tonnage) FROM table_name_81 WHERE name_of_ship = "proletarij"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average tonnage of the ship named proletarij?It is not neccessary to use all the tables.
SELECT COUNT(byes) FROM table_name_31 WHERE losses > 0 AND against = 1526
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of byes with more than 0 losses and 1526 against?It is not neccessary to use all the tables.
SELECT MIN Live births FROM table WHERE Crude birth rate (per 1000) > 22.1 AND Crude death rate (per 1000) < 5.5 AND Average population (x 1000) = 2,401 AND Natural change > 45,272
CREATE TABLE INST, Here is a database schema( table schema);
what is the lowest number of live births when the crude birth rate (per 1000) is more than 22.1, the crude death rate (per 1000) is less than 5.5, the average population (x1000) is 2,401, and the natural change is more than 45,272?.It is not neccessary to use all the tables.
SELECT Headquarters FROM table WHERE Population (2011) = 3685681
CREATE TABLE INST, Here is a database schema( table schema);
If the 2011 population is 3685681, what is the name of the headquarters?.It is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE Playoffs = Conference Finals
CREATE TABLE INST, Here is a database schema( table schema);
Name the most year for conference finals.It is not neccessary to use all the tables.
SELECT Nominee FROM table WHERE Award = tony award
CREATE TABLE INST, Here is a database schema( table schema);
Who was the nominee having a Tony award?.It is not neccessary to use all the tables.
SELECT report FROM table_name_68 WHERE winning_team = "penske racing" AND pole_position = "rick mears"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Report of Winning Team Penske Racing and what was Rick Mears' Pole position?It is not neccessary to use all the tables.
SELECT score FROM table_name_9 WHERE home_team = "darlington"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score when Darlington is the home team?It is not neccessary to use all the tables.
SELECT date FROM table_name_20 WHERE centerfold_model = "krista kelly"
CREATE TABLE INST, Here is a database schema( table schema);
When has a Centerfold model of krista kelly?It is not neccessary to use all the tables.
SELECT SUM(population) FROM table_name_49 WHERE type = "vl" AND region > 3
CREATE TABLE INST, Here is a database schema( table schema);
How many people have a vl type in a region greater than 3?It is not neccessary to use all the tables.
SELECT School Colors FROM table WHERE Enrollment > 15,664 AND Founded = 1910 AND Location = bowling green
CREATE TABLE INST, Here is a database schema( table schema);
Which School Colors has an Enrollment larger than 15,664, and Founded of 1910, and a Location of bowling green?.It is not neccessary to use all the tables.
SELECT ad_freq FROM table_name_84 WHERE show_name = "american top 40"
CREATE TABLE INST, Here is a database schema( table schema);
How often are there ads during American Top 40?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Winner = arnfinn bergmann
CREATE TABLE INST, Here is a database schema( table schema);
The winner Arnfinn Bergmann has what under country?.It is not neccessary to use all the tables.
SELECT Companion(s) FROM table WHERE Author = dave stone
CREATE TABLE INST, Here is a database schema( table schema);
What is the companion for the author Dave Stone?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_18 WHERE surface = "hard" AND outcome = "winner" AND partnering = "jordan kerr"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Opponent partnering with Jordan Kerr on a hard surface that was the winner?It is not neccessary to use all the tables.
SELECT airport FROM table_name_44 WHERE country = "south africa" AND icao = "fajs"
CREATE TABLE INST, Here is a database schema( table schema);
Which airport is in South Africa and has a ICAO fajs?It is not neccessary to use all the tables.
SELECT Sail number FROM table WHERE Elapsed time d:hh:mm:ss = 2:22:30:42
CREATE TABLE INST, Here is a database schema( table schema);
What is the sail number of the yacht that had an elapsed time of 2:22:30:42?.It is not neccessary to use all the tables.
SELECT saka_era FROM table_name_31 WHERE sign_of_zodiac = "virgo"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE SAKA ERA OF VIRGO?It is not neccessary to use all the tables.
SELECT MIN 2500–3000ft FROM table WHERE Country = Scotland
CREATE TABLE INST, Here is a database schema( table schema);
Name the minimum for 2500-3000 ft for scotland.It is not neccessary to use all the tables.
SELECT builder FROM table_name_6 WHERE tc & stl_no__1883_84_ > 54 AND date_ordered = "november 1881"
CREATE TABLE INST, Here is a database schema( table schema);
Who built the order on November 1881 of more than 54 TC&StL no. (1883–84)?It is not neccessary to use all the tables.
SELECT COUNT(matches) FROM table_name_15 WHERE prize_money = "£1,000,000"
CREATE TABLE INST, Here is a database schema( table schema);
How many matches were there in the round with £1000000 in prize money?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team = st kilda
CREATE TABLE INST, Here is a database schema( table schema);
Where did st kilda play as the away team?.It is not neccessary to use all the tables.
SELECT Height FROM table WHERE 2012 club = asd roma
CREATE TABLE INST, Here is a database schema( table schema);
What is the height of the player with the 2012 club of asd roma?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = november 10, 1968
CREATE TABLE INST, Here is a database schema( table schema);
What was the record on the date of november 10, 1968?.It is not neccessary to use all the tables.
SELECT Score FROM table 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 Position FROM table WHERE College/junior/club team = Kitchener Rangers (OHA)
CREATE TABLE INST, Here is a database schema( table schema);
When kitchener rangers (oha) is the college, junior, or club team what is the position?.It is not neccessary to use all the tables.
SELECT median_family_income FROM table_name_12 WHERE median_household_income = "$43,125"
CREATE TABLE INST, Here is a database schema( table schema);
Which Median family income has a Median household income of $43,125?It is not neccessary to use all the tables.
SELECT COUNT(no_in_season) FROM table_24319661_3 WHERE us_viewers__million_ = "3.81"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes in the season had 3.81 million US viewers?It is not neccessary to use all the tables.
SELECT AVG(overall) FROM table_name_88 WHERE round > 7 AND pick > 13 AND name = "tony hall"
CREATE TABLE INST, Here is a database schema( table schema);
Which Overall has a Round larger than 7 a Pick larger than 13 and a Name of tony hall?It is not neccessary to use all the tables.
SELECT team_s_ FROM table_2012187_1 WHERE winnings = "$2,605,05"
CREATE TABLE INST, Here is a database schema( table schema);
which team(s) won $260505It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Winning skip = sherry middaugh
CREATE TABLE INST, Here is a database schema( table schema);
What location did Sherry Middaugh win in?.It is not neccessary to use all the tables.
SELECT bleeding_time FROM table_14006_1 WHERE condition = "Factor V deficiency"
CREATE TABLE INST, Here is a database schema( table schema);
what's the bleeding time with condition being factor v deficiencyIt is not neccessary to use all the tables.
SELECT bname, SUM(amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_ID = T2.branch_ID GROUP BY T1.bname ORDER BY SUM(amount)
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of the different bank branches, and what are their total loan amounts Show bar chart, and I want to sort by the Y-axis from low to high.It is not neccessary to use all the tables.
SELECT fuel FROM table_name_50 WHERE output = "ps (kw; hp) @6000 rpm"
CREATE TABLE INST, Here is a database schema( table schema);
Which Fuel has an Output of ps (kw; hp) @6000 rpm?It is not neccessary to use all the tables.
SELECT High assists FROM table WHERE Location Attendance = Delta Center 19,639
CREATE TABLE INST, Here is a database schema( table schema);
Name the high assists for delta center 19,639.It is not neccessary to use all the tables.
SELECT regional_page__number FROM table_287659_2 WHERE state_name = "CA/NV"
CREATE TABLE INST, Here is a database schema( table schema);
In Ca/Nv what are all of the regional page #s?It is not neccessary to use all the tables.
SELECT Finish FROM table WHERE Total = 288
CREATE TABLE INST, Here is a database schema( table schema);
Which Finish has a Total of 288?.It is not neccessary to use all the tables.
SELECT first_name, last_name FROM employees WHERE salary > (SELECT salary FROM employees WHERE employee_id = 163)
CREATE TABLE INST, Here is a database schema( table schema);
What is the full name ( first name and last name ) for those employees who gets more salary than the employee whose id is 163?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_13 WHERE 2006 = "a" AND 2011 = "1r"
CREATE TABLE INST, Here is a database schema( table schema);
What is the tournament with a 2006 value of A and a 2011 value of 1r?It is not neccessary to use all the tables.
SELECT candidates FROM table_1341586_26 WHERE district = "Missouri 3"
CREATE TABLE INST, Here is a database schema( table schema);
Which candidates are from the Missouri 3 district?It is not neccessary to use all the tables.
SELECT Para FROM table WHERE Sipaliwini = 0.1%
CREATE TABLE INST, Here is a database schema( table schema);
What is the para with a 0.1% sipaliwini?.It is not neccessary to use all the tables.
SELECT Power provided FROM table WHERE Transfer speed (MB/s) = 1250
CREATE TABLE INST, Here is a database schema( table schema);
Name the power provided for transfer speed mb/s is 1250.It is not neccessary to use all the tables.
SELECT league FROM table_name_66 WHERE goals = 12
CREATE TABLE INST, Here is a database schema( table schema);
Which league has 12 goals?It is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE Years for Jazz = 2011-present
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality of all Utah Jazz Players, that played 2011-present?.It is not neccessary to use all the tables.
SELECT MIN(09 AS _10_oi_2nd) FROM table_24990183_6
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest overall number of 09-10 oi 2nd?It is not neccessary to use all the tables.
SELECT Pinyin FROM table WHERE Uyghur ( Yenɡi Yezik̢ ) = Kɵkyar K̡irƣiz yezisi
CREATE TABLE INST, Here is a database schema( table schema);
Name the pinyin for kɵkyar k̡irƣiz yezisi.It is not neccessary to use all the tables.
SELECT MIN Attendance FROM table WHERE Loss = obermueller (1-2)
CREATE TABLE INST, Here is a database schema( table schema);
What would be the lowest Attendance that also showed a loss of Obermueller (1-2)?.It is not neccessary to use all the tables.
SELECT MAX ERP W FROM table WHERE Frequency MHz > 88.3 AND City of license = lewis, kansas
CREATE TABLE INST, Here is a database schema( table schema);
Which ERP W is the highest one that has a Frequency MHz larger than 88.3, and a City of license of lewis, kansas?.It is not neccessary to use all the tables.
SELECT COUNT(crowd) FROM table_name_73 WHERE home_team = "melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
What was the crowd attendance when the home team was Melbourne?It is not neccessary to use all the tables.
SELECT notes FROM table_name_16 WHERE country = "finland"
CREATE TABLE INST, Here is a database schema( table schema);
What are the Notes of the Country of finland?It is not neccessary to use all the tables.
SELECT MIN(total) FROM table_13606924_1 WHERE kerry__percentage = "16.71%"
CREATE TABLE INST, Here is a database schema( table schema);
what is the minimum total with kerry % being 16.71%It is not neccessary to use all the tables.
SELECT MIN(pick__number) FROM table_1473672_2 WHERE college_junior_club_team = "Medicine Hat Tigers (WCHL)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the pick# for the medicine hat tigers (wchl)?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Venue = arden street oval
CREATE TABLE INST, Here is a database schema( table schema);
Which Away team has a Venue of arden street oval?.It is not neccessary to use all the tables.
SELECT current_version FROM table_name_97 WHERE license = "gpl v2" AND name = "mupen64plus"
CREATE TABLE INST, Here is a database schema( table schema);
what is the current version of the name mupen64plus with gpl v2 license?It is not neccessary to use all the tables.
SELECT Share of votes FROM table WHERE Election = 2008 (1)
CREATE TABLE INST, Here is a database schema( table schema);
What is the share of votes in the 2008 (1) election?.It is not neccessary to use all the tables.