sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Outcome FROM table WHERE Venue = danish open AND Year = 1985
CREATE TABLE INST, Here is a database schema( table schema);
What was the Outcome of the Danish Open in 1985?.It is not neccessary to use all the tables.
SELECT T1.name, T2.Player_id FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID
CREATE TABLE INST, Here is a database schema( table schema);
Please show the names and the players of clubs.It is not neccessary to use all the tables.
SELECT Competition FROM table WHERE Score = 1-0 AND Location = alvor
CREATE TABLE INST, Here is a database schema( table schema);
WHich competition was held on Alvor with a score 1-0?.It is not neccessary to use all the tables.
SELECT AVG Snow (days/year) FROM table WHERE Sunshine (hrs/year) = 1 633 AND Storms (days/year) < 29
CREATE TABLE INST, Here is a database schema( table schema);
What is the amount of snow where the sunshine is 1 633, and storms are lower than 29?.It is not neccessary to use all the tables.
SELECT 2007–08 season FROM table WHERE Club = genoa c.f.c.
CREATE TABLE INST, Here is a database schema( table schema);
Which 2007–08 season has a Club of genoa c.f.c.?.It is not neccessary to use all the tables.
SELECT MIN(week) FROM table_name_53 WHERE result = "w 30-3" AND attendance < 62 OFFSET 795
CREATE TABLE INST, Here is a database schema( table schema);
What week ended in a result of w 30-3 and had an attendance less than 62795?It is not neccessary to use all the tables.
SELECT film FROM table_name_19 WHERE winner_nominee_s_ = "eddie murphy" AND result = "nominated"
CREATE TABLE INST, Here is a database schema( table schema);
Which film was Eddie Murphy nominated for?It is not neccessary to use all the tables.
SELECT catalog_number FROM table_11222744_3 WHERE title = "Super Callanetics"
CREATE TABLE INST, Here is a database schema( table schema);
What is the catalog number of the title called "super callanetics"?It is not neccessary to use all the tables.
SELECT "Coefficient" FROM table_74455 WHERE "Tournament" = '2010 Clausura'
CREATE TABLE INST, Here is a database schema( table schema);
the 2010 clausura tournament?It is not neccessary to use all the tables.
SELECT COUNT(course) FROM table_275162_1 WHERE location = "Carmel, Indiana"
CREATE TABLE INST, Here is a database schema( table schema);
How many courses are located in carmel indiana?It is not neccessary to use all the tables.
SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Fail" GROUP BY date_of_completion ORDER BY COUNT(date_of_completion)
CREATE TABLE INST, Here is a database schema( table schema);
Return the number of the completion date for all the tests that have 'Fail' result, and list Y in asc order.It is not neccessary to use all the tables.
SELECT Location Attendance FROM table WHERE Team = Utah Jazz
CREATE TABLE INST, Here is a database schema( table schema);
What location with it's corresponding attendance was the game against Utah Jazz?.It is not neccessary to use all the tables.
SELECT Regular Season Winner FROM table WHERE Tournament Winner = Arkansas-Pine Bluff
CREATE TABLE INST, Here is a database schema( table schema);
Who had the best regular season in the contest won by Arkansas-Pine Bluff?.It is not neccessary to use all the tables.
SELECT MAX(division) FROM table_name_25 WHERE playoffs = "quarter finals" AND regular_season = "5th"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Division when the playoffs were the quarter finals with a Regular Season of 5th?It is not neccessary to use all the tables.
SELECT MAX Crowd FROM table WHERE Away team score = 13.16 (94)
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest crowd with Away team score of 13.16 (94)?.It is not neccessary to use all the tables.
SELECT SUM(enrollment), affiliation FROM university WHERE founded > 1850 GROUP BY affiliation
CREATE TABLE INST, Here is a database schema( table schema);
Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.It is not neccessary to use all the tables.
SELECT Original title FROM table WHERE Film title used in nomination = street days
CREATE TABLE INST, Here is a database schema( table schema);
What was the original title for the film used in nomination of street days?.It is not neccessary to use all the tables.
SELECT MAX # Of Discs FROM table WHERE Season = The Complete 4th Series
CREATE TABLE INST, Here is a database schema( table schema);
How many discs for the complete 4th series?.It is not neccessary to use all the tables.
SELECT Chambering FROM table WHERE F bolt ( kgf ) = 8339
CREATE TABLE INST, Here is a database schema( table schema);
What is the chambering for the 8339 f bolt ( kgf )?.It is not neccessary to use all the tables.
SELECT Percentage FROM table WHERE Place < 5 AND Draw > 3 AND Song = "s teb"
CREATE TABLE INST, Here is a database schema( table schema);
What percentage has a less than 5 place, and a greater than 3 draw, and "S Teb" as the song?.It is not neccessary to use all the tables.
SELECT AVG(crowd) FROM table_name_39 WHERE away_team = "south melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
What is the size of the crowd for the game where the away team South Melbourne played?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = november 16
CREATE TABLE INST, Here is a database schema( table schema);
Which Record is on november 16?.It is not neccessary to use all the tables.
SELECT "Winner" FROM table_32624 WHERE "Stage" = '12'
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner of stage 12?It is not neccessary to use all the tables.
SELECT circuit FROM table_name_97 WHERE pole_position = "andré ribeiro"
CREATE TABLE INST, Here is a database schema( table schema);
Which Circuit has a Pole position of andré ribeiro?It is not neccessary to use all the tables.
SELECT AVG(pop_area__1_km²_) FROM table_name_84 WHERE no_p > 1 AND name = "albergaria-a-velha"
CREATE TABLE INST, Here is a database schema( table schema);
Which Pop/Area (1/km²) has a No P. larger than 1 and a Name of albergaria-a-velha?It is not neccessary to use all the tables.
SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(DEPARTMENT_ID) DESC
CREATE TABLE INST, Here is a database schema( table schema);
For those employees who was hired before 2002-06-21, a bar chart shows the distribution of hire_date and the average of department_id bin hire_date by weekday, and I want to sort Y in descending order.It is not neccessary to use all the tables.
SELECT High assists FROM table WHERE High points = mcwilliams-franklin (22)
CREATE TABLE INST, Here is a database schema( table schema);
What high assists have McWilliams-franklin (22) as the high points?.It is not neccessary to use all the tables.
SELECT Moving from FROM table WHERE Name = Kisnorbo
CREATE TABLE INST, Here is a database schema( table schema);
Where did Kisnorbo move from?.It is not neccessary to use all the tables.
SELECT COUNT Pick # FROM table WHERE Player = Brian Currie
CREATE TABLE INST, Here is a database schema( table schema);
How many times was player brian currie picked?.It is not neccessary to use all the tables.
SELECT COUNT(january_15_16) FROM table_25216791_3 WHERE august_21_22 = "155"
CREATE TABLE INST, Here is a database schema( table schema);
How many datas were recorded on January 15-16 if August 21-22 is 155?It is not neccessary to use all the tables.
SELECT score FROM table_name_47 WHERE result = "2–2" AND date = "04 dec 2005"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score that has a Result of 2–2 on 04 Dec 2005?It is not neccessary to use all the tables.
SELECT CFL Team FROM table WHERE Player = Brady Browne
CREATE TABLE INST, Here is a database schema( table schema);
What teak was Brady Browne drafted onto?.It is not neccessary to use all the tables.
SELECT COUNT("Seventh") FROM table_72845 WHERE "Sixth" = 'Interpol'
CREATE TABLE INST, Here is a database schema( table schema);
When Interpol is in 6th, who is in 7th?It is not neccessary to use all the tables.
SELECT 1 AS st_place_team FROM table_name_84 WHERE year > 1956
CREATE TABLE INST, Here is a database schema( table schema);
What team was in 1st plate in a year later than 1956?It is not neccessary to use all the tables.
SELECT built FROM table_1886270_1 WHERE withdrawn = "2/1939"
CREATE TABLE INST, Here is a database schema( table schema);
When 2/1939 is the withdrawn when was it built?It is not neccessary to use all the tables.
SELECT date FROM table_name_62 WHERE opponent_in_the_final = "gwinyai tongoona"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the opponent in the final Gwinyai Tongoona?It is not neccessary to use all the tables.
SELECT Torque FROM table WHERE Power = hp (kw; ps)@5800
CREATE TABLE INST, Here is a database schema( table schema);
What is the torque on the model with power of hp (kw; ps)@5800?.It is not neccessary to use all the tables.
SELECT byte_string FROM table_name_23 WHERE memory_map = "standard" AND decimal = "standard" AND floating_point = "standard" AND max_memory__kwords_ < 512
CREATE TABLE INST, Here is a database schema( table schema);
What is the value for the byte string when the memory map decimal and floating points are all standard and the max memory is smaller than 512?It is not neccessary to use all the tables.
SELECT AVG Ends FROM table WHERE Nat. = swe AND Transfer window = summer
CREATE TABLE INST, Here is a database schema( table schema);
What is the average end year of the player from swe and a summer transfer window?.It is not neccessary to use all the tables.
SELECT COUNT(term_expires) FROM table_name_52 WHERE province = "north western" AND name = "ken wright"
CREATE TABLE INST, Here is a database schema( table schema);
How many times did Ken Wright expired in North Western?It is not neccessary to use all the tables.
SELECT "name" FROM table_204_482 WHERE "name" IN ('andy hughes', 'john salako') ORDER BY "fee" DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
did andy hughes or john salako command the largest fee ?It is not neccessary to use all the tables.
SELECT Measurements (in cm) FROM table WHERE City = Sindelfingen
CREATE TABLE INST, Here is a database schema( table schema);
what measurement does the contestant from sindelfingen have?.It is not neccessary to use all the tables.
SELECT Outcome FROM table WHERE Round = 2R
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of round 2r?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Competition = commonwealth games
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of the commonwealth games?.It is not neccessary to use all the tables.
SELECT Jockey FROM table WHERE Winner = alke
CREATE TABLE INST, Here is a database schema( table schema);
What is Jockey, when Winner is Alke?.It is not neccessary to use all the tables.
SELECT award FROM table_name_77 WHERE year > 2008
CREATE TABLE INST, Here is a database schema( table schema);
What award was won after 2008?It is not neccessary to use all the tables.
SELECT SUM Year opened FROM table WHERE Material = steel AND Span feet = 1476
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Year opened when steel was the material with a Span feet of 1476?.It is not neccessary to use all the tables.
SELECT City/Location FROM table WHERE Round < 11 AND Circuit = streets of denver
CREATE TABLE INST, Here is a database schema( table schema);
For which location was the round smaller than 11 and the circuit streets of denver?.It is not neccessary to use all the tables.
SELECT match_report FROM table_name_29 WHERE opponents = "stirling albion" AND venue = "forthbank stadium"
CREATE TABLE INST, Here is a database schema( table schema);
What is the match report for the game played at forthbank stadium against stirling albion?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Opponent = twins AND Date = september 25
CREATE TABLE INST, Here is a database schema( table schema);
What was the home team's record when they played the Twins on September 25?.It is not neccessary to use all the tables.
SELECT date FROM table_2062148_4 WHERE venue = "Moonee Valley"
CREATE TABLE INST, Here is a database schema( table schema);
Name the date for moonee valleyIt is not neccessary to use all the tables.
SELECT date FROM table_name_25 WHERE record = "43.66 m"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the games that saw a record of 43.66 m?It is not neccessary to use all the tables.
SELECT displacement FROM table_name_95 WHERE year > 2002 AND power = "220kw (299hp) @ 4000"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Displacement that has Power of 220kw (299hp) @ 4000 and a year larger than 2002?It is not neccessary to use all the tables.
SELECT Studio, COUNT(*) FROM film GROUP BY Studio ORDER BY COUNT(*)
CREATE TABLE INST, Here is a database schema( table schema);
List the studios of each film and the number of films produced by that studio by a bar chart, and order from low to high by the Y.It is not neccessary to use all the tables.
SELECT AVG Attendance FROM table WHERE Home = chicago bears
CREATE TABLE INST, Here is a database schema( table schema);
What was the average attendance when Chicago Bears were the home team?.It is not neccessary to use all the tables.
SELECT COUNT(birth_2013) FROM table_25703_1 WHERE january_september_2013 = "Oryol Oblast"
CREATE TABLE INST, Here is a database schema( table schema);
How many figures for birth/2013 when January-September is Oryol Oblast?It is not neccessary to use all the tables.
SELECT COUNT Attendance FROM table WHERE Date = September 5
CREATE TABLE INST, Here is a database schema( table schema);
How many values for attendance on the date of September 5?.It is not neccessary to use all the tables.
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', prescriptions.startdate)) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25733 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'propofol' ORDER BY prescriptions.startdate D...
CREATE TABLE INST, Here is a database schema( table schema);
what number of hours has it been since the last time patient 25733 was prescribed propofol on this hospital visit?It is not neccessary to use all the tables.
SELECT Level FROM table WHERE Domestic Cup = quarterfinals
CREATE TABLE INST, Here is a database schema( table schema);
Which level is quarterfinals domestic cup?.It is not neccessary to use all the tables.
SELECT COUNT(year) FROM table_name_16 WHERE length = "4:00"
CREATE TABLE INST, Here is a database schema( table schema);
what year is 4:00 longIt is not neccessary to use all the tables.
SELECT republican_ticket FROM table_name_17 WHERE socialist_ticket = "louis waldman"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name on the Republican ticket when the Socialist ticket was louis waldman?It is not neccessary to use all the tables.
SELECT father FROM table_name_58 WHERE mother = "presendia huntington buell"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the father of the child whose mother is Presendia Huntington Buell?It is not neccessary to use all the tables.
SELECT Occupied territory FROM table WHERE Operational = May 1940 – January 1945
CREATE TABLE INST, Here is a database schema( table schema);
what's the occupied territory with operational period of may 1940 – january 1945.It is not neccessary to use all the tables.
SELECT Week FROM table WHERE Tournament = cincinnati
CREATE TABLE INST, Here is a database schema( table schema);
What week was the tournament at Cincinnati?.It is not neccessary to use all the tables.
SELECT DISTINCT course.name, course.number, program_course.workload FROM course, program_course WHERE course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND program_course.course_id = course.course_id AND program_course.workload < 3 ORDER BY program_course.workload
CREATE TABLE INST, Here is a database schema( table schema);
Show me easy 300 -level courses .It is not neccessary to use all the tables.
SELECT Formula FROM table WHERE Prefix = alkyl-
CREATE TABLE INST, Here is a database schema( table schema);
Which Formula has a Prefix of alkyl-?.It is not neccessary to use all the tables.
SELECT SUM(week) FROM table_name_70 WHERE attendance = "53,147"
CREATE TABLE INST, Here is a database schema( table schema);
What the total of Week with attendance of 53147It is not neccessary to use all the tables.
SELECT artist FROM table_name_18 WHERE album = "soul"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the artist of the album Soul?It is not neccessary to use all the tables.
SELECT points_for FROM table_name_62 WHERE tries_for = "40"
CREATE TABLE INST, Here is a database schema( table schema);
Name the points with tries for of 40It is not neccessary to use all the tables.
SELECT MIN No. in series FROM table WHERE Title = "Hunted"
CREATE TABLE INST, Here is a database schema( table schema);
What's the series number for the episode titled "Hunted"?.It is not neccessary to use all the tables.
SELECT SUM(amount) FROM payment
CREATE TABLE INST, Here is a database schema( table schema);
What is the total amount of all payments?It is not neccessary to use all the tables.
SELECT "Assists per game" FROM table_73583 WHERE "Points per game" = '7.7'
CREATE TABLE INST, Here is a database schema( table schema);
How may assists per game have 7.7 points per game?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Original Team = vancouver canucks AND Result = matched AND Player = ryan kesler
CREATE TABLE INST, Here is a database schema( table schema);
What date has Vancouver Canucks as the original team, Ryan Kesler as the player, and matched as the Result?.It is not neccessary to use all the tables.
SELECT Type FROM table WHERE Location = stanley
CREATE TABLE INST, Here is a database schema( table schema);
What type of Bridge is in Stanley?.It is not neccessary to use all the tables.
SELECT Gender FROM table WHERE Decile = 6 AND Roll < 179
CREATE TABLE INST, Here is a database schema( table schema);
What gender is allowed to attend the school that has a decile of 6 and a roll that is less than 179?.It is not neccessary to use all the tables.
SELECT COUNT(gold) FROM table_name_22 WHERE silver > 20 AND bronze = 135
CREATE TABLE INST, Here is a database schema( table schema);
What is the total amount of gold medals when there were more than 20 silvers and there were 135 bronze medals?It is not neccessary to use all the tables.
SELECT province FROM table_name_61 WHERE city = "hiroshima"
CREATE TABLE INST, Here is a database schema( table schema);
Which Province has a City of hiroshima?It is not neccessary to use all the tables.
SELECT model FROM table_name_98 WHERE specification = "dl-718"
CREATE TABLE INST, Here is a database schema( table schema);
Which model had a Specification of dl-718?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Game > 72 AND Record = 39-27-9
CREATE TABLE INST, Here is a database schema( table schema);
Who did the Rangers play in a game that was later than 72 when the team record was 39-27-9?.It is not neccessary to use all the tables.
SELECT MIN Average FROM table WHERE Matches = 13 AND Catches < 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest average for the player with 13 matches and fewer than 7 catches?.It is not neccessary to use all the tables.
SELECT score FROM table_name_84 WHERE player = "greg norman"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score for Greg NormanIt is not neccessary to use all the tables.
SELECT television FROM table_1672976_6 WHERE time = "9:00PM"
CREATE TABLE INST, Here is a database schema( table schema);
What station aired a game at 9:00pm?It is not neccessary to use all the tables.
SELECT Screen pixels FROM table WHERE Maker = amazon.com AND Weight = 221g (7.8oz)
CREATE TABLE INST, Here is a database schema( table schema);
For Amazon.com's device with a weight of 221g (7.8oz) how many screen pixels does the device have?.It is not neccessary to use all the tables.
SELECT Pick # FROM table WHERE Player = jason french
CREATE TABLE INST, Here is a database schema( table schema);
Which pick number was there for Jason French?.It is not neccessary to use all the tables.
SELECT "Place" FROM table_42815 WHERE "Score" = '73-73-65-73=284'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Place of the Player with a Score of 73-73-65-73=284?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Round = 1 AND Method = submission (rear-naked choke)
CREATE TABLE INST, Here is a database schema( table schema);
The match that went 1 round, and had a method of submission (rear-naked choke) had what record?.It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_38 WHERE home_team = "richmond"
CREATE TABLE INST, Here is a database schema( table schema);
What was Richmond's score as the home team?It is not neccessary to use all the tables.
SELECT result FROM table_name_6 WHERE first_elected = 1876 AND district = "south carolina 3"
CREATE TABLE INST, Here is a database schema( table schema);
Which Result has a First elected of 1876 and a District of south carolina 3?It is not neccessary to use all the tables.
SELECT AVG Byes FROM table WHERE Losses = 15 AND Against < 1874
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Byes for the losses of 15, and before 1874?.It is not neccessary to use all the tables.
SELECT Zone 2008 FROM table WHERE Services = greater anglia AND Station = cheshunt
CREATE TABLE INST, Here is a database schema( table schema);
Which Zone 2008 has Services of greater anglia, and a Station of cheshunt?.It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Margin of victory = 2 strokes AND Winning score = −14 (68-66-68=202)
CREATE TABLE INST, Here is a database schema( table schema);
Which Tournament has a Margin of victory of 2 strokes, and a Winning score of −14 (68-66-68=202)?.It is not neccessary to use all the tables.
SELECT week_2 FROM table_name_60 WHERE week_3 = "brittany alyse"
CREATE TABLE INST, Here is a database schema( table schema);
What was the week 2 prior to the when Brittany Alyse was week 3?It is not neccessary to use all the tables.
SELECT position FROM table_name_90 WHERE mls_team = "los angeles galaxy"
CREATE TABLE INST, Here is a database schema( table schema);
Which position is the MLS team Los Angeles Galaxy in?It is not neccessary to use all the tables.
SELECT saturday_saturnus___saturn_ FROM table_1277350_1 WHERE wednesday_mercurius__mercury_ = "Mercuridi"
CREATE TABLE INST, Here is a database schema( table schema);
what's the saturday saturnus ( saturn) with wednesday mercurius (mercury) being mercuridiIt is not neccessary to use all the tables.
SELECT Player FROM table WHERE CFL Team = Montreal Alouettes
CREATE TABLE INST, Here is a database schema( table schema);
What player is on the Montreal Alouettes CFl team?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_20 WHERE competition = "european cross country championships" AND notes = "junior men individual 6.595km"
CREATE TABLE INST, Here is a database schema( table schema);
What venue hsoted the european cross country championships with a notes of junior men individual 6.595km?It is not neccessary to use all the tables.
SELECT Melbourne FROM table WHERE Perth = no AND Adelaide = no AND Auckland = no AND Sydney = yes
CREATE TABLE INST, Here is a database schema( table schema);
Name the melbourne with perth, adelaide and auckland of no with sydney of yes.It is not neccessary to use all the tables.
SELECT Championship FROM table WHERE Winning score = 6 & 5
CREATE TABLE INST, Here is a database schema( table schema);
What Championship had a Winning score of 6 & 5?.It is not neccessary to use all the tables.
SELECT SUM(lane) FROM table_name_58 WHERE nationality = "iceland"
CREATE TABLE INST, Here is a database schema( table schema);
How many lanes have a Nationality of iceland?It is not neccessary to use all the tables.
SELECT vehicle FROM table_24620684_2 WHERE epa_rated_combined_fuel_economy = "102 mpg-e (33kW-hrs/100mi)"
CREATE TABLE INST, Here is a database schema( table schema);
When 102 mpg-e (33kw-hrs/100mi) is the epa rated combined fuel economy what is the vehicle type?It is not neccessary to use all the tables.