sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT Units sold in the US FROM table WHERE Units sold in Japan = 346,000 | CREATE TABLE INST, Here is a database schema( table schema); | How many units were sold in the US of the game that sold 346,000 units in japan?.It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Position = forward AND Season = 2009-2010 | CREATE TABLE INST, Here is a database schema( table schema); | What is the name for the forward in the 2009-2010 season?.It is not neccessary to use all the tables. |
SELECT AVG Average FROM table WHERE English title = men in pain AND Finale < 33 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Average of Men in Pain with a Finale of less than 33?.It is not neccessary to use all the tables. |
SELECT set_3 FROM table_name_70 WHERE set_2 = "21–25" AND set_1 = "25–21" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Set 3 when the Set 2 is 21–25 and a Set 1 is 25–21?It is not neccessary to use all the tables. |
SELECT COUNT Season FROM table WHERE Wins > 0 AND Final Placing = 1st | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of seasons with more than 0 wins and a 1st final placing?.It is not neccessary to use all the tables. |
SELECT MIN(extra_points) FROM table_25517718_3 WHERE position = "Left halfback" | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest number of extra points for a left halfback?It is not neccessary to use all the tables. |
SELECT date FROM table_name_43 WHERE week = 16 | CREATE TABLE INST, Here is a database schema( table schema); | What was the Date of Week 16?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE New entries this round = 44 | CREATE TABLE INST, Here is a database schema( table schema); | What is the date for the row with a new entries this round of 44?.It is not neccessary to use all the tables. |
SELECT ottoman_sultan FROM table_24706337_1 WHERE treaty_at_the_end_of_the_war = "Treaty of Constantinople (1590)" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the Ottoman Sultan where the treaty at the end of the war was the Treaty of Constantinople (1590)?It is not neccessary to use all the tables. |
SELECT Dainty June FROM table WHERE Herbie = boyd gaines | CREATE TABLE INST, Here is a database schema( table schema); | Who was Dainty June when Boyd Gaines was Herbie?.It is not neccessary to use all the tables. |
SELECT COUNT(draw) FROM table_name_21 WHERE loss < 8 AND point > 30 AND goal_diff > 26 | CREATE TABLE INST, Here is a database schema( table schema); | How many total draws were there with a less than 8 loss more than 30 points and a goal diff larger than 26?It is not neccessary to use all the tables. |
SELECT Time/Retired FROM table WHERE Grid = 5 | CREATE TABLE INST, Here is a database schema( table schema); | What is the time/retired for grid 5?.It is not neccessary to use all the tables. |
SELECT COUNT Party FROM table WHERE Incumbent = Willis Alston | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of party for willis alston.It is not neccessary to use all the tables. |
SELECT Home FROM table WHERE Attendance > 17,250 AND Points = 14 | CREATE TABLE INST, Here is a database schema( table schema); | Which Home has an Attendance larger than 17,250, and Points of 14?.It is not neccessary to use all the tables. |
SELECT Rider FROM table WHERE Rank > 3 AND Speed = 119.838mph | CREATE TABLE INST, Here is a database schema( table schema); | Who has a Rank larger than 3 with a speed of 119.838mph?.It is not neccessary to use all the tables. |
SELECT county FROM table_name_2 WHERE chinese = "新竹" | CREATE TABLE INST, Here is a database schema( table schema); | Which County has a Chinese of 新竹?It is not neccessary to use all the tables. |
SELECT charge_type, charge_amount FROM Charges | CREATE TABLE INST, Here is a database schema( table schema); | How much does each charge type costs? List both charge type and amount.It is not neccessary to use all the tables. |
SELECT platform_s_ FROM table_name_80 WHERE genre = "rpg" | CREATE TABLE INST, Here is a database schema( table schema); | What's the platform of the genre RPG?It is not neccessary to use all the tables. |
SELECT Home Town FROM table WHERE Name = rob cunningham | CREATE TABLE INST, Here is a database schema( table schema); | What is the Home Town with a Name with rob cunningham?.It is not neccessary to use all the tables. |
SELECT COUNT Director(s) FROM table WHERE Original title = Мајки | CREATE TABLE INST, Here is a database schema( table schema); | how many directors for the film мајки.It is not neccessary to use all the tables. |
SELECT brooklyn FROM table_23837321_4 WHERE manhattan = "15.5_percentage" | CREATE TABLE INST, Here is a database schema( table schema); | what percentage is brooklyn when manhattan is 15.5%?It is not neccessary to use all the tables. |
SELECT most_recent_final FROM table_1463332_2 WHERE years__won_in_bold_ = "1979" | CREATE TABLE INST, Here is a database schema( table schema); | What is the most recent final result for the years (won in bold) 1979?It is not neccessary to use all the tables. |
SELECT Time FROM table WHERE Visiting team = Georgia | CREATE TABLE INST, Here is a database schema( table schema); | Name the time for georgia.It is not neccessary to use all the tables. |
SELECT "DVD title" FROM table_8583 WHERE "Aspect ratio" = '16:9' AND "Release date" = 'november 17, 2009' | CREATE TABLE INST, Here is a database schema( table schema); | What title was release November 17, 2009 in a 16:9 aspect ratio?It is not neccessary to use all the tables. |
SELECT game_site FROM table_name_79 WHERE week = 15 | CREATE TABLE INST, Here is a database schema( table schema); | What was the game site week 15?It is not neccessary to use all the tables. |
SELECT 2012 FROM table WHERE 2011 = qf AND 2010 = 3r | CREATE TABLE INST, Here is a database schema( table schema); | what is the 2012 performance when in 2011 is qf and 2010 is 3r?.It is not neccessary to use all the tables. |
SELECT date FROM table_name_95 WHERE year = 1975 AND winner = "oakland raiders" | CREATE TABLE INST, Here is a database schema( table schema); | What is the date where the winner was the Oakland Raiders in 1975?It is not neccessary to use all the tables. |
SELECT college_junior_club_team FROM table_name_12 WHERE nhl_team = "toronto maple leafs" AND nationality = "united states" | CREATE TABLE INST, Here is a database schema( table schema); | What College/junior/club had a player of United States nationality drafted by the Toronto Maple Leafs?It is not neccessary to use all the tables. |
SELECT school FROM table_name_43 WHERE size < 674 AND county = "19 dubois" AND mascot = "rangers" | CREATE TABLE INST, Here is a database schema( table schema); | What school has a size less than 674 has a county of 19 dubois and has the rangers as their mascot?It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Year > 2010 AND Tournament = world race walking cup | CREATE TABLE INST, Here is a database schema( table schema); | What is the result of the World Race Walking Cup tournament played before the year 2010?.It is not neccessary to use all the tables. |
SELECT role FROM table_name_38 WHERE year = 2005 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the role for 2005It is not neccessary to use all the tables. |
SELECT For shank type FROM table WHERE Storage case = red plastic box | CREATE TABLE INST, Here is a database schema( table schema); | What's the shank type of the buttonholer with red plastic box as storage case?.It is not neccessary to use all the tables. |
SELECT hanyu FROM table_name_59 WHERE area__km²_ = 19.3888 | CREATE TABLE INST, Here is a database schema( table schema); | Which Hanya has an area of 19.3888?It is not neccessary to use all the tables. |
SELECT COUNT(candidates) FROM table_1341718_14 WHERE district = "Illinois 18" | CREATE TABLE INST, Here is a database schema( table schema); | how many times was it the district illinois 18?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "24" AND procedures.icd9_code = "9920" | CREATE TABLE INST, Here is a database schema( table schema); | how many patients are below 24 years of age and with procedure icd9 code 9920?It is not neccessary to use all the tables. |
SELECT NHL team FROM table WHERE Player = Jeff Jacques | CREATE TABLE INST, Here is a database schema( table schema); | Name the nhl times for jeff jacques.It is not neccessary to use all the tables. |
SELECT COUNT(game) FROM table_27715173_10 WHERE date = "March 12" | CREATE TABLE INST, Here is a database schema( table schema); | How many games were held on March 12?It is not neccessary to use all the tables. |
SELECT MAX(time) FROM table_name_35 WHERE country = "spain" AND lane > 8 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the highest time for spain and lane larger than 8It is not neccessary to use all the tables. |
SELECT MAX(pick) FROM table_name_9 WHERE school_club_team = "arkansas" | CREATE TABLE INST, Here is a database schema( table schema); | What was the highest pick for a player from a school or club team of Arkansas?It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Score < 68 | CREATE TABLE INST, Here is a database schema( table schema); | What is the country of the player with a score less than 68?.It is not neccessary to use all the tables. |
SELECT result FROM table_name_57 WHERE date = "2000-05-23" | CREATE TABLE INST, Here is a database schema( table schema); | What is Result when Date is "2000-05-23"?It is not neccessary to use all the tables. |
SELECT MIN Rank FROM table WHERE Constituency = edinburgh northern and leith AND Swing to gain < 4.16 | CREATE TABLE INST, Here is a database schema( table schema); | what is the lowest rank when the constituency is edinburgh northern and leith and the swing to gain is less than 4.16?.It is not neccessary to use all the tables. |
SELECT record FROM table_name_75 WHERE date = "april 15" | CREATE TABLE INST, Here is a database schema( table schema); | What was the record after the April 15 game?It is not neccessary to use all the tables. |
SELECT venue FROM table_name_12 WHERE conv = "5 players on 20 points" | CREATE TABLE INST, Here is a database schema( table schema); | Name the venue that has conv of 5 players on 20 pointsIt is not neccessary to use all the tables. |
SELECT COUNT(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia' | CREATE TABLE INST, Here is a database schema( table schema); | How many cities are in Australia?It is not neccessary to use all the tables. |
SELECT AVG Grid FROM table WHERE Laps < 3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average grid for the competitiors who had laps smaller than 3?.It is not neccessary to use all the tables. |
SELECT release_date FROM table_name_5 WHERE location = "us" | CREATE TABLE INST, Here is a database schema( table schema); | What is the US release date?It is not neccessary to use all the tables. |
SELECT overall FROM table_name_48 WHERE nationality = "united states" AND player = "doug sproule" | CREATE TABLE INST, Here is a database schema( table schema); | What was the overall pick for Doug Sproule of the United States?It is not neccessary to use all the tables. |
SELECT COUNT(song) FROM table_19763199_5 WHERE artist = "Julia Bermejo" | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of song for julia bermejoIt is not neccessary to use all the tables. |
SELECT MAX(attendance) FROM table_name_83 WHERE home = "detroit" | CREATE TABLE INST, Here is a database schema( table schema); | What was the highest attendance at a Detroit home game?It is not neccessary to use all the tables. |
SELECT 2005 FROM table_name_73 WHERE 2013 = "1r" AND 2011 = "q2" | CREATE TABLE INST, Here is a database schema( table schema); | What is the 2005 value with 1r in 2013 and q2 in 2011?It is not neccessary to use all the tables. |
SELECT location FROM table_name_74 WHERE record = "12-4" | CREATE TABLE INST, Here is a database schema( table schema); | What was the location of the game when the record was 12-4?It is not neccessary to use all the tables. |
SELECT MIN Week FROM table WHERE Opponent = at san francisco 49ers | CREATE TABLE INST, Here is a database schema( table schema); | Opponent of at san francisco 49ers had what lowest week?.It is not neccessary to use all the tables. |
SELECT 1:00 pm FROM table WHERE 4:30 pm = local programs AND 7:30 am = the today show with katie couric & matt lauer | CREATE TABLE INST, Here is a database schema( table schema); | What 1:00 pm has a 4:30 pm of local programs, and a 7:30 am of the today show with katie couric & matt lauer?.It is not neccessary to use all the tables. |
SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID | CREATE TABLE INST, Here is a database schema( table schema); | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a bar chart about the distribution of job_id and the sum of department_id , and group by attribute job_id, and sort by the bar from low to high please.It is not neccessary t... |
SELECT player FROM table_name_5 WHERE pba_team = "red bull thunder" | CREATE TABLE INST, Here is a database schema( table schema); | Which player has a PBA team of Red Bull Thunder?It is not neccessary to use all the tables. |
SELECT class FROM table_name_13 WHERE race = "budweiser grand prix of miami" AND length = "3 hours" | CREATE TABLE INST, Here is a database schema( table schema); | What is the class of the Budweiser Grand Prix of Miami race with a length of 3 hours?It is not neccessary to use all the tables. |
SELECT COUNT Episode Number FROM table WHERE Guest Host = Pamela Anderson | CREATE TABLE INST, Here is a database schema( table schema); | What episode did Pamela Anderson guest host..It is not neccessary to use all the tables. |
SELECT score FROM table_27537518_4 WHERE game = 1 | CREATE TABLE INST, Here is a database schema( table schema); | What was the score for game #1?It is not neccessary to use all the tables. |
SELECT MAX Goal FROM table WHERE From = 1979 | CREATE TABLE INST, Here is a database schema( table schema); | What is the maximum goal after 1979?.It is not neccessary to use all the tables. |
SELECT October FROM table WHERE Record = 0-2-2 | CREATE TABLE INST, Here is a database schema( table schema); | What October has 0-2-2 as the record?.It is not neccessary to use all the tables. |
SELECT final_episode FROM table_name_72 WHERE episodes_credited = 187 | CREATE TABLE INST, Here is a database schema( table schema); | What was the final episode credited of 187?It is not neccessary to use all the tables. |
SELECT telugu_తెలుగు FROM table_name_68 WHERE tamil_தமிழ் = "pūrāṭam பூராடம்" | CREATE TABLE INST, Here is a database schema( table schema); | Which Telugu తెలుగు has a Tamil தமிழ் of pūrāṭam பூராடம்?It is not neccessary to use all the tables. |
SELECT Height FROM table WHERE Last School/College = Columbia River HS | CREATE TABLE INST, Here is a database schema( table schema); | what is the height of columbia river hs?.It is not neccessary to use all the tables. |
SELECT Title FROM table WHERE Production code = 6.18 | CREATE TABLE INST, Here is a database schema( table schema); | If the production code is 6.18, what was the episode title?.It is not neccessary to use all the tables. |
SELECT Season FROM table WHERE Position = 2nd | CREATE TABLE INST, Here is a database schema( table schema); | What season was there a 2nd place finish?.It is not neccessary to use all the tables. |
SELECT AVG(gold) FROM table_name_19 WHERE total < 4 AND nation = "brazil" AND bronze > 1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4?It is not neccessary to use all the tables. |
SELECT MIN Viewers (m) FROM table WHERE Share > 13 | CREATE TABLE INST, Here is a database schema( table schema); | what is the lowest viewers (m) when the share is more than 13?.It is not neccessary to use all the tables. |
SELECT pick__number FROM table_24540893_6 WHERE school = "Western Ontario" AND position = "OL" | CREATE TABLE INST, Here is a database schema( table schema); | What numbered pick attended western ontario and is an OL?It is not neccessary to use all the tables. |
SELECT No. in season FROM table WHERE Written by = fiona kelly AND Title = "solitary confinement" | CREATE TABLE INST, Here is a database schema( table schema); | What season was the episode "Solitary Confinement", written by Fiona Kelly?.It is not neccessary to use all the tables. |
SELECT result FROM table_1342013_34 WHERE district = "Ohio 2" | CREATE TABLE INST, Here is a database schema( table schema); | what's the result for district ohio 2It is not neccessary to use all the tables. |
SELECT MAX(b_score) FROM table_name_4 WHERE a_score < 6.5 | CREATE TABLE INST, Here is a database schema( table schema); | What is the greatest B score when the A score was less than 6.5?It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Previous team (League) = kingston frontenacs ( ohl ) AND Player = anthony stewart category:articles with hcards | CREATE TABLE INST, Here is a database schema( table schema); | What is Country, when Previous Team (League) is "Kingston Frontenacs ( OHL )", and when Player is "Anthony Stewart Category:Articles with hCards"?.It is not neccessary to use all the tables. |
SELECT township FROM table_name_20 WHERE land___sqmi__ > 36.112 AND geo_id > 3801985060 AND latitude = 46.062384 | CREATE TABLE INST, Here is a database schema( table schema); | what is the township when the land (sqmi) is more than 36.112 the geo id is higher than 3801985060 and the latitude is 46.062384?It is not neccessary to use all the tables. |
SELECT MAX(year) FROM table_name_19 WHERE venue = "athens, greece" | CREATE TABLE INST, Here is a database schema( table schema); | What year is the event in athens greece?It is not neccessary to use all the tables. |
SELECT MAX Election Year FROM table WHERE Speaker = R. Muthiah | CREATE TABLE INST, Here is a database schema( table schema); | If the speaker is R. Muthiah, what is the election year maximum?.It is not neccessary to use all the tables. |
SELECT Away team FROM table WHERE Away team score = 4.15 (39) | CREATE TABLE INST, Here is a database schema( table schema); | Which away team scored 4.15 (39)?.It is not neccessary to use all the tables. |
SELECT Redskins (Score) FROM table WHERE Opponent (Score) = Tennessee Titans 27 | CREATE TABLE INST, Here is a database schema( table schema); | what is redskins (score) against tennessee titans 27.It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE Year = 1994 AND Country = yemen | CREATE TABLE INST, Here is a database schema( table schema); | What is the location for Yemen in 1994?.It is not neccessary to use all the tables. |
SELECT Time slot (EST) FROM table WHERE Episode = "The Way We Weren't" | CREATE TABLE INST, Here is a database schema( table schema); | What time slot is the episode "the way we weren't" in.It is not neccessary to use all the tables. |
SELECT Height in Ft. FROM table WHERE Position = guard AND School/Club Team/Country = north carolina-charlotte | CREATE TABLE INST, Here is a database schema( table schema); | Name the height in feet for the guard from north carolina-charlotte.It is not neccessary to use all the tables. |
SELECT SUM(year) FROM table_name_6 WHERE accolade = "50 best albums of the year" AND rank = "#3" | CREATE TABLE INST, Here is a database schema( table schema); | How many years have an accolade of 50 best albums of the year with #3 as the rank?It is not neccessary to use all the tables. |
SELECT MIN(pick) FROM table_name_3 WHERE team = "san diego chargers" | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest number pick from san diego chargers?It is not neccessary to use all the tables. |
SELECT AVG(points) FROM table_name_61 WHERE pct__percentage > 0.685 | CREATE TABLE INST, Here is a database schema( table schema); | When the percent is larger than 0.685 what is the average number of points scored?It is not neccessary to use all the tables. |
SELECT SUM(drawn) FROM table_name_32 WHERE games > 6 | CREATE TABLE INST, Here is a database schema( table schema); | How many Drawn has a Games larger than 6?It is not neccessary to use all the tables. |
SELECT Written by FROM table WHERE Original air date = August 10, 2012 | CREATE TABLE INST, Here is a database schema( table schema); | Who were the authors of the episode first broadcast on August 10, 2012?.It is not neccessary to use all the tables. |
SELECT AVG(december) FROM table_name_49 WHERE points = 38 AND record = "18–6–2" | CREATE TABLE INST, Here is a database schema( table schema); | Which December has Points of 38 and a Record of 18–6–2?It is not neccessary to use all the tables. |
SELECT season FROM table_name_68 WHERE south = "esc holzkirchen" AND west = "esv buchloe" AND north = "ehc bayreuth" | CREATE TABLE INST, Here is a database schema( table schema); | What season has esc holzkirchen south esv buchloe west and ehc bayreuth north?It is not neccessary to use all the tables. |
SELECT "Country" FROM table_69575 WHERE "Finish" = 't4' | CREATE TABLE INST, Here is a database schema( table schema); | Which country has a finish of t4?It is not neccessary to use all the tables. |
SELECT Attendance FROM table WHERE Date = october 31, 1965 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Attendance with a Date that is october 31, 1965?.It is not neccessary to use all the tables. |
SELECT * FROM Tags WHERE TagName = 'domain-driven-design' | CREATE TABLE INST, Here is a database schema( table schema); | Get Posts by Tags (searching ddd synonimous).It is not neccessary to use all the tables. |
SELECT COUNT Network TV Run Time FROM table WHERE Episode # = 53 | CREATE TABLE INST, Here is a database schema( table schema); | How many runtimes does episode 53 have?.It is not neccessary to use all the tables. |
SELECT Home team score FROM table WHERE Venue = mcg | CREATE TABLE INST, Here is a database schema( table schema); | What was the score for the home team who plays their matches at the mcg venue?.It is not neccessary to use all the tables. |
SELECT demographic.diagnosis, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.name = "Orville Ford" | CREATE TABLE INST, Here is a database schema( table schema); | what is primary disease and procedure short title of subject name orville ford?It is not neccessary to use all the tables. |
SELECT COUNT(per) AS centage FROM table_177766_1 WHERE rank = 51 | CREATE TABLE INST, Here is a database schema( table schema); | This constellation with a ranking of 51 has how many percentages on record?It is not neccessary to use all the tables. |
SELECT Year Opened FROM table WHERE Location = west mifflin, pennsylvania | CREATE TABLE INST, Here is a database schema( table schema); | Which year opened is located in west mifflin, pennsylvania?.It is not neccessary to use all the tables. |
SELECT "Round" FROM table_35866 WHERE "Record" = '5-0' | CREATE TABLE INST, Here is a database schema( table schema); | Which round has the record of 5-0?It is not neccessary to use all the tables. |
SELECT name FROM table_name_77 WHERE cerclis_id = "prd980512362" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the site with a CERCLIS ID of prd980512362?It is not neccessary to use all the tables. |
SELECT MAX(pick) FROM table_name_20 WHERE position = "tight end" | CREATE TABLE INST, Here is a database schema( table schema); | what is the highest pick for the position tight end?It is not neccessary to use all the tables. |
SELECT 2001 FROM table_name_74 WHERE 1994 = "a" AND tournament = "monte carlo masters" | CREATE TABLE INST, Here is a database schema( table schema); | What is 2001 when 1994 is "A" and when Tournament is "Monte Carlo Masters"?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.