sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT AVG Top-5 FROM table WHERE Tournament = u.s. open AND Cuts made > 10 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average Top-5, when Tournament is U.S. Open, and when Cuts Made is greater than 10?.It is not neccessary to use all the tables. |
SELECT AVG(margin) FROM table_name_3 WHERE round = "13. (h)" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average Margin that has a Round of 13. (h)?It is not neccessary to use all the tables. |
SELECT date FROM table_name_9 WHERE record = "46-31" | CREATE TABLE INST, Here is a database schema( table schema); | What was the date of the game when the record was 46-31?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Debut = age 18 v plymouth , 14 august 2012 AND Born = portsmouth | CREATE TABLE INST, Here is a database schema( table schema); | Who was the player with a debut of age 18 v plymouth , 14 august 2012, and born in Portsmouth?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Location = the pyramid | CREATE TABLE INST, Here is a database schema( table schema); | What date was the pyramid location?.It is not neccessary to use all the tables. |
SELECT player FROM table_name_60 WHERE events > 25 | CREATE TABLE INST, Here is a database schema( table schema); | Which player had more than 25 events?It is not neccessary to use all the tables. |
SELECT Imperative FROM table WHERE Past Habitual = गरिस् garis 'you did' | CREATE TABLE INST, Here is a database schema( table schema); | Name the imperative for गरिस् garis 'you did'.It is not neccessary to use all the tables. |
SELECT Queens FROM table WHERE Manhattan = 189,524 | CREATE TABLE INST, Here is a database schema( table schema); | Who got 189,524 votes?.It is not neccessary to use all the tables. |
SELECT Team 2 FROM table WHERE Agg. = 3-4 AND 2nd leg = 0-2 | CREATE TABLE INST, Here is a database schema( table schema); | Which team 2 had an aggregate score of 3-4 and a 2nd leg score of 0-2?.It is not neccessary to use all the tables. |
SELECT COUNT Episode Number FROM table WHERE Rating/Share (18-49) = 0.7/2 AND Rating = 2.1 | CREATE TABLE INST, Here is a database schema( table schema); | How many episodes had rating/share (18-49) of 0.7/2 and a rating of 2.1?.It is not neccessary to use all the tables. |
SELECT COUNT Score FROM table WHERE Record = 27-9 | CREATE TABLE INST, Here is a database schema( table schema); | How many scores are associated with a record of 27-9?.It is not neccessary to use all the tables. |
SELECT AVG(pct) FROM table_name_97 WHERE years = "1905" AND lost > 7 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average percent for the coach from 1905 and more than 7 losses?It is not neccessary to use all the tables. |
SELECT Catalog FROM table WHERE Format = ed remaster cd AND Label = village records AND Date = march 13, 2002 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Catalog when the format is ed remaster cd, and a Label of village records, and a Date of march 13, 2002?.It is not neccessary to use all the tables. |
SELECT barony FROM table_30120605_1 WHERE townland = "Mountcotton" | CREATE TABLE INST, Here is a database schema( table schema); | What is the barony of mountcotton?It is not neccessary to use all the tables. |
SELECT Valvetrain FROM table WHERE Model = diesel engines | CREATE TABLE INST, Here is a database schema( table schema); | What is the Valvetrain of the Diesel Engines Model?.It is not neccessary to use all the tables. |
SELECT Place FROM table WHERE Score = 66-74=140 | CREATE TABLE INST, Here is a database schema( table schema); | In what place did the golfer that scored 66-74=140 finish?.It is not neccessary to use all the tables. |
SELECT year FROM table_2308381_1 WHERE avg_start = "22.4" | CREATE TABLE INST, Here is a database schema( table schema); | Name the year for avg start being 22.4It is not neccessary to use all the tables. |
SELECT MAX Grid FROM table WHERE Rider = mika kallio | CREATE TABLE INST, Here is a database schema( table schema); | what is the grid when the rider is mika kallio?.It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Date = 7,8,10,11 feb 1908 | CREATE TABLE INST, Here is a database schema( table schema); | What was the venue for the dates 7,8,10,11 Feb 1908?.It is not neccessary to use all the tables. |
SELECT to_par FROM table_name_28 WHERE player = "phil mickelson" | CREATE TABLE INST, Here is a database schema( table schema); | What was Phil Mickelson's score to par?It is not neccessary to use all the tables. |
SELECT COUNT Successes FROM table WHERE Launches > 3 AND Country = russia AND Type = soyuz AND Rocket = soyuz-u | CREATE TABLE INST, Here is a database schema( table schema); | What is the number of successes for rockets that have more than 3 launches, were based in Russia, are type soyuz and a rocket type of soyuz-u?.It is not neccessary to use all the tables. |
SELECT passenger_load_factor___percentage_ FROM table_name_86 WHERE revenue__€m_ < 958.6 AND profit____loss__before_tax__€m_ = "1.1" | CREATE TABLE INST, Here is a database schema( table schema); | What Passenger Load Factor (%) that has a Revenue (€m) less than 958.6 and a Profit / (Loss) Before Tax (€m) of 1.1?It is not neccessary to use all the tables. |
SELECT Total FROM table WHERE Score points = 12 AND Rank points = 15 | CREATE TABLE INST, Here is a database schema( table schema); | What was the total when the score points was 12 and the rank points was 15?.It is not neccessary to use all the tables. |
SELECT outcome FROM table_name_75 WHERE opponent_in_the_final = "sylvia hanika" AND surface = "hard (i)" | CREATE TABLE INST, Here is a database schema( table schema); | What is the outcome of the match against Sylvia Hanika on a hard (i) surface?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.admityear < "2120" | CREATE TABLE INST, Here is a database schema( table schema); | count the number of patients whose marital status is divorced and admission year is less than 2120?It is not neccessary to use all the tables. |
SELECT SUM 2006 FROM table WHERE 2007 < 6.7 AND 2009 < 3.4 | CREATE TABLE INST, Here is a database schema( table schema); | What's the 2006 if there's less than 6.7 in 2007 and less than 3.4 in 2009?.It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE To par = +3 | CREATE TABLE INST, Here is a database schema( table schema); | What country has a +3 to par?.It is not neccessary to use all the tables. |
SELECT Year FROM table WHERE Position = 21st (q) | CREATE TABLE INST, Here is a database schema( table schema); | When did a Position of 21st (q) happen?.It is not neccessary to use all the tables. |
SELECT competition FROM table_name_36 WHERE result = "3-2" AND score = "2-1" | CREATE TABLE INST, Here is a database schema( table schema); | What is the competition type of the event with a result of 3-2 and a score of 2-1?It is not neccessary to use all the tables. |
SELECT Promotion FROM table WHERE Event = acid-fest | CREATE TABLE INST, Here is a database schema( table schema); | What is the promotion when the event was Acid-fest?.It is not neccessary to use all the tables. |
SELECT Total Points FROM table WHERE Assists = 7 | CREATE TABLE INST, Here is a database schema( table schema); | What was the total number of points when there were 7 assists?.It is not neccessary to use all the tables. |
SELECT to_par FROM table_name_56 WHERE finish = "t16" AND player = "julius boros" | CREATE TABLE INST, Here is a database schema( table schema); | What is the To Par when the finish was t16 and the player was Julius Boros?It is not neccessary to use all the tables. |
SELECT Event FROM table WHERE Record = 4:02.54 | CREATE TABLE INST, Here is a database schema( table schema); | Which Event has a Record of 4:02.54?.It is not neccessary to use all the tables. |
SELECT Company_name, COUNT(Company_name) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 OR T1.RAM_MiB > 32 GROUP BY Company_name ORDER BY COUNT(Company_name) | CREATE TABLE INST, Here is a database schema( table schema); | Compute the total number of chips of different company names for all the phones that were launched in year 2002 or have RAM size greater than 32, rank in ascending by the y-axis.It is not neccessary to use all the tables. |
SELECT january FROM table_name_7 WHERE points = 51 | CREATE TABLE INST, Here is a database schema( table schema); | what is the average for January with points of 51It is not neccessary to use all the tables. |
SELECT position FROM table_2679061_4 WHERE college_junior_club_team = "Regina Pats (WHL)" | CREATE TABLE INST, Here is a database schema( table schema); | What position is the player from the Regina Pats (WHL)?It is not neccessary to use all the tables. |
SELECT winning_driver FROM table_1140117_5 WHERE circuit = "Goodwood" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the winning driver for the goodwood circuit?It is not neccessary to use all the tables. |
SELECT Party FROM table WHERE Years in Senate = — AND Years in Assembly = 2012–present | CREATE TABLE INST, Here is a database schema( table schema); | Which Party has Years in Senate of —, and Years in Assembly of 2012–present?.It is not neccessary to use all the tables. |
SELECT Home team FROM table WHERE Away team = north melbourne | CREATE TABLE INST, Here is a database schema( table schema); | What home team played North Melbourne?.It is not neccessary to use all the tables. |
SELECT COUNT(wins) FROM table_name_61 WHERE ballarat_fl = "east point" AND against > 1000 | CREATE TABLE INST, Here is a database schema( table schema); | How many total wins does Ballarat FL of East point have when the against is greater than 1000?It is not neccessary to use all the tables. |
SELECT MAX(average) FROM table_24856090_1 WHERE hk_viewers = "1.97 million" | CREATE TABLE INST, Here is a database schema( table schema); | What is the largest average for the episode with 1.97 million Hong Kong viewers?It is not neccessary to use all the tables. |
SELECT COUNT(year) FROM table_name_78 WHERE baden = "freiburger fc" | CREATE TABLE INST, Here is a database schema( table schema); | What's the year that has a Baden Freiburger FC?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Goal = 16 | CREATE TABLE INST, Here is a database schema( table schema); | What was the score with a goal of 16?.It is not neccessary to use all the tables. |
SELECT COUNT Content FROM table WHERE Television service = R-LIGHT | CREATE TABLE INST, Here is a database schema( table schema); | How many times was something listed under content when the television was R-light?.It is not neccessary to use all the tables. |
SELECT "title" FROM table_203_325 WHERE "year" < (SELECT "year" FROM table_203_325 WHERE "title" = 'david & shlomo') ORDER BY "year" DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | what was the name of the title previous to david & shlomo ?It is not neccessary to use all the tables. |
SELECT result FROM table_name_15 WHERE extra = "4 x 100 m relay" AND year > 1971 | CREATE TABLE INST, Here is a database schema( table schema); | what is the result when extra is 4 x 100 m relay and the year is later than 1971?It is not neccessary to use all the tables. |
SELECT Home team FROM table WHERE Away team = hereford united | CREATE TABLE INST, Here is a database schema( table schema); | Who played against the away team hereford united?.It is not neccessary to use all the tables. |
SELECT MIN Services & cons truction b FROM table WHERE Manufac turing b > 10 AND 2008 GDP per capita (USD) a > 4,162 AND Median mo. salary (USD) a e = 1,301 AND 2010 Population (000) < 40117 | CREATE TABLE INST, Here is a database schema( table schema); | Manufac turing b larger than 10, and a 2008 GDP per capita (USD) a larger than 4,162, and a Median mo. salary (USD)of 1,301, and a 2010 Population (000) smaller than 40117 so what is the lowest services & construction b?.It is not neccessary to use all the tables. |
SELECT MIN FA Cup goals FROM table WHERE FA Cup apps = 2 AND Position = FW | CREATE TABLE INST, Here is a database schema( table schema); | Name the least fa cup goals with fa cup apps being 2 and fw .It is not neccessary to use all the tables. |
SELECT COUNT(tom_emmer__r_) FROM table_20032301_3 WHERE matt_entenza__dfl_ = "38%" | CREATE TABLE INST, Here is a database schema( table schema); | How many polls show different percentages for Tom Emmer and 38% for Matt Entenza?It is not neccessary to use all the tables. |
SELECT club FROM table_name_1 WHERE round = "group stage round 1 and 5" | CREATE TABLE INST, Here is a database schema( table schema); | Which club had round of group stage round 1 and 5?It is not neccessary to use all the tables. |
SELECT MAX Taper (in/ft) FROM table WHERE Size = 8 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest Taper (in/ft), when Size is 8?.It is not neccessary to use all the tables. |
SELECT result FROM table_26250176_1 WHERE week__number = "Top 12" | CREATE TABLE INST, Here is a database schema( table schema); | What was the results for top 12?It is not neccessary to use all the tables. |
SELECT record FROM table_name_32 WHERE game > 24 AND date = "december 19" | CREATE TABLE INST, Here is a database schema( table schema); | What is the record of the game with a game number greater than 24 on December 19?It is not neccessary to use all the tables. |
SELECT % of all immigrants 2007 FROM table WHERE % of all immigrants 2006 = 14.1% | CREATE TABLE INST, Here is a database schema( table schema); | What's the percentage of the immigrants in 2007 in the country with 14.1% of the immigrants in 2006?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Tie no = 1 | CREATE TABLE INST, Here is a database schema( table schema); | What was the score of having a tie of 1?.It is not neccessary to use all the tables. |
SELECT SUM(year) FROM table_name_6 WHERE position = "4th" | CREATE TABLE INST, Here is a database schema( table schema); | Which Year has a Position of 4th?It is not neccessary to use all the tables. |
SELECT MIN(number_of_seasons_in_top_division) FROM table_name_46 WHERE position_in_2012_13 = "001 1st" | CREATE TABLE INST, Here is a database schema( table schema); | Name the least number of seasons in top division with position in 2012-13 of 001 1stIt is not neccessary to use all the tables. |
SELECT SUM(points) FROM table_name_59 WHERE entrant = "christy" AND year < 1954 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total amount of points that Christy has in the years before 1954?It is not neccessary to use all the tables. |
SELECT date FROM table_name_28 WHERE home = "columbus" | CREATE TABLE INST, Here is a database schema( table schema); | What was the date of the Capitals game when Columbus was the home team?It is not neccessary to use all the tables. |
SELECT score FROM table_name_86 WHERE opponent_in_the_final = "jim courier" | CREATE TABLE INST, Here is a database schema( table schema); | What score has jim courier as the opponent in the final?It is not neccessary to use all the tables. |
SELECT event FROM table_name_51 WHERE total = "28" | CREATE TABLE INST, Here is a database schema( table schema); | Which event had a total of 28?It is not neccessary to use all the tables. |
SELECT Studio host FROM table WHERE Play-by-play = sean grande AND Year = 2004-05 | CREATE TABLE INST, Here is a database schema( table schema); | Play-by-play of sean grande, and a Year of 2004-05 had what studio host?.It is not neccessary to use all the tables. |
SELECT AVG(lost) FROM table_name_93 WHERE against < 25 AND played < 1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Lost with Against smaller than 25 and Played smaller than 1?It is not neccessary to use all the tables. |
SELECT COUNT("Year") FROM table_47434 WHERE "Category" = 'best actress in a revival' | CREATE TABLE INST, Here is a database schema( table schema); | How many years had the best actress in a Revival category?It is not neccessary to use all the tables. |
SELECT MIN(round) FROM table_name_3 WHERE player = "orlando pace" | CREATE TABLE INST, Here is a database schema( table schema); | What lowest round has orlando pace as the player?It is not neccessary to use all the tables. |
SELECT Title FROM table WHERE Label = columbia AND Standard number = codc-8760 | CREATE TABLE INST, Here is a database schema( table schema); | What Title has the Label of Columbia and Standard number of CODC-8760?.It is not neccessary to use all the tables. |
SELECT Attendance FROM table WHERE Tie no = 15 | CREATE TABLE INST, Here is a database schema( table schema); | Which Attendance has a Tie # of 15?.It is not neccessary to use all the tables. |
SELECT February FROM table | CREATE TABLE INST, Here is a database schema( table schema); | Name the february.It is not neccessary to use all the tables. |
SELECT COUNT("name") FROM table_203_760 WHERE "status" = 'foreign service officer' | CREATE TABLE INST, Here is a database schema( table schema); | what is the number of chiefs that are listed as foreign service officers ?It is not neccessary to use all the tables. |
SELECT Team_Name, School_ID FROM basketball_match | CREATE TABLE INST, Here is a database schema( table schema); | Return a bar chart about the distribution of Team_Name and School_ID .It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_34 WHERE january = 27 | CREATE TABLE INST, Here is a database schema( table schema); | Who were the opponents on January 27?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Hometown = houston, tx | CREATE TABLE INST, Here is a database schema( table schema); | Who is the player from Houston, TX?.It is not neccessary to use all the tables. |
SELECT semifinalists FROM table_name_6 WHERE tournament = "rome" | CREATE TABLE INST, Here is a database schema( table schema); | Who were the semifinalists in the Rome tournament?It is not neccessary to use all the tables. |
SELECT rank FROM table_name_42 WHERE worldwide_gross = "$914,691,118" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Rank of the Film with a Worldwide Gross of $914691118?It is not neccessary to use all the tables. |
SELECT country FROM table_name_94 WHERE to_par = "+4" AND score = 73 - 71 - 73 = 217 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Country of the Player with a To par of +4 and Score of 73-71-73=217?It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE First-Team Appearances = 7 | CREATE TABLE INST, Here is a database schema( table schema); | Which position has had 7 first-team appearances?.It is not neccessary to use all the tables. |
SELECT player FROM table_10015132_9 WHERE school_club_team = "Westchester High School" | CREATE TABLE INST, Here is a database schema( table schema); | Who are all of the players on the Westchester High School club team?It is not neccessary to use all the tables. |
SELECT final_score FROM table_24126518_2 WHERE location = "Exhibition Stadium" AND date = "September 10" | CREATE TABLE INST, Here is a database schema( table schema); | Name the final score for exhibition stadium for september 10It is not neccessary to use all the tables. |
SELECT College/junior/club team FROM table WHERE Round = 4 | CREATE TABLE INST, Here is a database schema( table schema); | Which College/junior/club team has a Round of 4?.It is not neccessary to use all the tables. |
SELECT MAX(total) FROM table_name_53 WHERE silver > 3 AND rank = "2" | CREATE TABLE INST, Here is a database schema( table schema); | What is the total when silver is more than 3, and rank is 2?It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE Institution = Barton College | CREATE TABLE INST, Here is a database schema( table schema); | What is the location of the institution barton college.It is not neccessary to use all the tables. |
SELECT place FROM table_name_4 WHERE player = "scott mccarron" | CREATE TABLE INST, Here is a database schema( table schema); | What place is Scott McCarron in?It is not neccessary to use all the tables. |
SELECT Color commentator(s) FROM table WHERE Play-by-play = al michaels AND Year > 2003 | CREATE TABLE INST, Here is a database schema( table schema); | Who was Al Michaels' color commentator in 2003?.It is not neccessary to use all the tables. |
SELECT Bowling FROM table WHERE Season = 1907 | CREATE TABLE INST, Here is a database schema( table schema); | What is the bowling score of season 1907?.It is not neccessary to use all the tables. |
SELECT COUNT(position) FROM table_24330803_1 WHERE points = "30" | CREATE TABLE INST, Here is a database schema( table schema); | How many positions were given when 30 points were won?It is not neccessary to use all the tables. |
SELECT SUM(number_of_bearers_2009) FROM table_name_3 WHERE rank > 1 AND type = "patronymic" AND etymology = "son of christian" AND number_of_bearers_1971 > 45.984 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of number of bearers in 2009 for a rank above 1 a type of patronymic an etymology meaning son of Christian and the number of bearers in 1971 greater than 45.984?It is not neccessary to use all the tables. |
SELECT incumbent FROM table_1341577_22 WHERE first_elected = 1974 | CREATE TABLE INST, Here is a database schema( table schema); | What is the incumbent for 1974?It is not neccessary to use all the tables. |
SELECT "ISBN UK" FROM table_46139 WHERE "Author" = 'dave martin' AND "ISBN US" = 'n/a' | CREATE TABLE INST, Here is a database schema( table schema); | What is ISBN UK, when Author is 'Dave Martin', and when ISBN US is 'N/A'?It is not neccessary to use all the tables. |
SELECT Constructor FROM table WHERE Rnd = 15 | CREATE TABLE INST, Here is a database schema( table schema); | What was the constructor for round 15?.It is not neccessary to use all the tables. |
SELECT AVG Silver FROM table WHERE Bronze = 22 | CREATE TABLE INST, Here is a database schema( table schema); | Bronze of 22 has what average silver?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Attendance = bye | CREATE TABLE INST, Here is a database schema( table schema); | On what date was the attendance a bye?.It is not neccessary to use all the tables. |
SELECT MIN(frequency_mhz) FROM table_name_24 WHERE call_sign = "k202ag" | CREATE TABLE INST, Here is a database schema( table schema); | Name the least frequency Mhz with call sign of k202agIt is not neccessary to use all the tables. |
SELECT 2002 FROM table_name_38 WHERE 2006 = "a" AND 2010 = "q1" | CREATE TABLE INST, Here is a database schema( table schema); | What is the 2002 result when 2006 is A and 2010 is Q1?It is not neccessary to use all the tables. |
SELECT "Deaths" FROM table_51515 WHERE "Name" = 'eseta' | CREATE TABLE INST, Here is a database schema( table schema); | How many deaths did eseta cause?It is not neccessary to use all the tables. |
SELECT date_opened FROM table_1817879_2 WHERE segment_description = "Red Line MOS-2 North" | CREATE TABLE INST, Here is a database schema( table schema); | What date of segment description red line mos-2 north open?It is not neccessary to use all the tables. |
SELECT place FROM table_name_53 WHERE player = "heath slocum" | CREATE TABLE INST, Here is a database schema( table schema); | what is the place for Heath Slocum?It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_77 WHERE opponent = "gan teik chai lin woon fui" | CREATE TABLE INST, Here is a database schema( table schema); | What tournament has an opponent gan teik chai lin woon fui?It is not neccessary to use all the tables. |
SELECT 2011 FROM table_name_8 WHERE 2005 = "4.2%" | CREATE TABLE INST, Here is a database schema( table schema); | What is listed for the 2011 that has a 2005 of 4.2%?It is not neccessary to use all the tables. |
SELECT engine_name FROM table_name_42 WHERE max_torque_at_rpm = "n·m ( lbf·ft ) @ 3,800" | CREATE TABLE INST, Here is a database schema( table schema); | What is the engine name that has a maximum torque at rpm of n·m ( lbf·ft ) @ 3800?It is not neccessary to use all the tables. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.