sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT director, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY director
CREATE TABLE INST, Here is a database schema( table schema);
Please visualize a bar chart, that the X-axis is the director and the Y-axis is thier corresponding lowest rating among all movies.It is not neccessary to use all the tables.
SELECT AVG Share FROM table WHERE Viewers (millions) > 7.82 AND Rank (Timeslot) = 3 AND Rank (Week) = 54
CREATE TABLE INST, Here is a database schema( table schema);
What is the average share for episodes with over 7.82 viewers, ranks of 3 and a weekly rank of 54?.It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Cup Apps = 6 AND Cup Goals = 5
CREATE TABLE INST, Here is a database schema( table schema);
What season saw 6 cup apps and 5 cup goals?.It is not neccessary to use all the tables.
SELECT week_2 FROM table_name_99 WHERE week_4 = "miranda jordan"
CREATE TABLE INST, Here is a database schema( table schema);
What was the week 2 prior to the when Miranda Jordan was the week 4?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_76 WHERE away_team = "fitzroy"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team when Fitzroy was the away team?It is not neccessary to use all the tables.
SELECT label FROM table_name_94 WHERE format = "compact disc" AND region = "united kingdom"
CREATE TABLE INST, Here is a database schema( table schema);
What label is formatted as compact disc and has United Kingdom as its region?It is not neccessary to use all the tables.
SELECT year__ceremony_ FROM table_name_26 WHERE category = "best actress" AND actor_actress = "sigourney weaver"
CREATE TABLE INST, Here is a database schema( table schema);
What is the year when sigourney weaver was nominated for best actress?It is not neccessary to use all the tables.
SELECT region FROM table_name_77 WHERE catalog_number = "3 12046 2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Region of the release with Catalog number 3 12046 2?It is not neccessary to use all the tables.
SELECT year_s__won FROM table_name_25 WHERE player = "tom lehman"
CREATE TABLE INST, Here is a database schema( table schema);
What years did Tom Lehman win?It is not neccessary to use all the tables.
SELECT l2_cache FROM table_27277284_27 WHERE order_part_number = "AMQL64DAM22GG"
CREATE TABLE INST, Here is a database schema( table schema);
What are the L2 cache specifications of part number amql64dam22gg?It is not neccessary to use all the tables.
SELECT "Result" FROM table_76640 WHERE "Competition" = 'friendly match'
CREATE TABLE INST, Here is a database schema( table schema);
What was the result for a friendly match?It is not neccessary to use all the tables.
SELECT AVG Apps FROM table WHERE Team = kairat AND Level > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Apps for the team Kairat with level larger than 1?.It is not neccessary to use all the tables.
SELECT series FROM table_name_52 WHERE home = "minnesota" AND date = "april 17"
CREATE TABLE INST, Here is a database schema( table schema);
What was the series score on april 17 with minnesota at home?It is not neccessary to use all the tables.
SELECT date FROM table_16729076_1 WHERE opponent = "Chicago Bears"
CREATE TABLE INST, Here is a database schema( table schema);
what date is the opponent is chicago bears?It is not neccessary to use all the tables.
SELECT pole_position FROM table_24547593_1 WHERE circuit = "Knockhill"
CREATE TABLE INST, Here is a database schema( table schema);
Who was in the pole position for knockhill?It is not neccessary to use all the tables.
SELECT ACC_Regular_Season, All_Games_Percent FROM basketball_match ORDER BY All_Games_Percent DESC
CREATE TABLE INST, Here is a database schema( table schema);
Create a bar chart showing all_games_percent across acc regular season, sort in descending by the Y.It is not neccessary to use all the tables.
SELECT notes FROM table_name_96 WHERE year = 2010
CREATE TABLE INST, Here is a database schema( table schema);
What is Notes when Year is "2010"?It is not neccessary to use all the tables.
SELECT MIN(position) FROM table_name_37 WHERE points = "32-6" AND goals_against < 59 AND played > 38
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest position with 32-6 points and less then 59 goals when there are more than 38 played?It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_67 WHERE total_score = "274" AND country = "united states"
CREATE TABLE INST, Here is a database schema( table schema);
When the United States had a total score of 274 what was the average year?It is not neccessary to use all the tables.
SELECT AVG(heat) FROM table_name_99 WHERE time = "2:23.95"
CREATE TABLE INST, Here is a database schema( table schema);
What is the heat number of the athlete who finished in 2:23.95?It is not neccessary to use all the tables.
SELECT Fastest Lap FROM table WHERE Grand Prix = Belgian Grand Prix
CREATE TABLE INST, Here is a database schema( table schema);
Who had the fastest lap in the Belgian Grand Prix?.It is not neccessary to use all the tables.
SELECT viewers__millions_ FROM table_23397386_2 WHERE airdate = "March 28, 2010"
CREATE TABLE INST, Here is a database schema( table schema);
How many million viewers watched the episode that aired on March 28 2010?It is not neccessary to use all the tables.
SELECT player FROM table_name_83 WHERE position = "guard/forward"
CREATE TABLE INST, Here is a database schema( table schema);
What player had the position guard/forward?It is not neccessary to use all the tables.
SELECT ranking FROM table_name_95 WHERE nationality = "spain" AND goals = 26
CREATE TABLE INST, Here is a database schema( table schema);
What ranking has the nationality of spain and the goals of 26?It is not neccessary to use all the tables.
SELECT AVG Wins FROM table WHERE Teams = lions AND Percent > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the average wins when teams is lions and the percent is more than 0?.It is not neccessary to use all the tables.
SELECT Grand Finalist FROM table WHERE Winners = Collingwood
CREATE TABLE INST, Here is a database schema( table schema);
what's the grand finalist where winners is collingwood.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Entities = emsa
CREATE TABLE INST, Here is a database schema( table schema);
Which Country has Entities of emsa?.It is not neccessary to use all the tables.
SELECT score FROM table_name_51 WHERE date = "december 2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score on December 2?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Nominee = brent spiner
CREATE TABLE INST, Here is a database schema( table schema);
What is the result for Brent Spiner?.It is not neccessary to use all the tables.
SELECT AVG(density__per_km²_) FROM table_name_40 WHERE no_munic = 53
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Density of 53 No. munic.?It is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE Result = ½–½ AND Black = kramnik AND Opening = e05 catalan opening AND Moves > 38
CREATE TABLE INST, Here is a database schema( table schema);
What year had a black of Kramnik, opening of E05 Catalan Opening, moves greater than 38, and a result of ½–½?.It is not neccessary to use all the tables.
SELECT MAX Pop. (2010) FROM table WHERE Latitude = 48.853051 AND Water (sqmi) < 0.9590000000000001
CREATE TABLE INST, Here is a database schema( table schema);
What was the population fo the township with a Latitude of 48.853051, and a Water (sqmi) smaller than 0.9590000000000001?.It is not neccessary to use all the tables.
SELECT date FROM table_name_9 WHERE opponent = "renato ferreira"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date for renato ferreira?It is not neccessary to use all the tables.
SELECT california__san_francisco_ FROM table_16105186_2 WHERE alaska___juneau__ = "80 g/mi (50 g/km)" AND southeast__atlanta_ = "250 g/mi (155 g/km)"
CREATE TABLE INST, Here is a database schema( table schema);
What was the emission rating in California for the vehicle that was rated 80 g/mi (50 g/km) in Alaska and 250 g/mi (155 g/km) in the Southeast ?It is not neccessary to use all the tables.
SELECT Bronze FROM table WHERE Year = 2002
CREATE TABLE INST, Here is a database schema( table schema);
Who won bronze in 2002?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Pick < 33 AND Player = darrell arthur
CREATE TABLE INST, Here is a database schema( table schema);
WHAT POSITION HAS A PICK SMALLER THAN 33, AND PLAYER BEING DARRELL ARTHUR?.It is not neccessary to use all the tables.
SELECT District FROM table WHERE Incumbent = Albert Rains
CREATE TABLE INST, Here is a database schema( table schema);
What district is incumbent albert rains from?.It is not neccessary to use all the tables.
SELECT record FROM table_name_10 WHERE score = "118–105"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Record of the game with a Score of 118 105?It is not neccessary to use all the tables.
SELECT 2nd Party FROM table WHERE 1st Party = conservative AND 1st Member = charles moody AND Election = 1851 by-election
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2nd party for a conservative 1st party with a 1st member Charles Moody in the election of 1851 by-election?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_90 WHERE outcome = "winner" AND score = "4-6 6-3 10-5"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the tournament for outcome of winner and score of 4-6 6-3 10-5It is not neccessary to use all the tables.
SELECT method FROM table_name_87 WHERE round = 1 AND event = "ufc 20"
CREATE TABLE INST, Here is a database schema( table schema);
What was the method in round 1 of the UFC 20 event?It is not neccessary to use all the tables.
SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.admission_location = "TRSF WITHIN THIS FACILITY"
CREATE TABLE INST, Here is a database schema( table schema);
calculate the average age of unmarried patients admitted to trsf within this facilityIt is not neccessary to use all the tables.
SELECT Winnings FROM table WHERE Driver = Dale Jarrett
CREATE TABLE INST, Here is a database schema( table schema);
How much did Dale Jarrett win?.It is not neccessary to use all the tables.
SELECT date FROM table_name_19 WHERE away_team = "essendon"
CREATE TABLE INST, Here is a database schema( table schema);
On what date does Essendon play as the away team?It is not neccessary to use all the tables.
SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id GROUP BY t1.organization_name ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of organization that has the greatest number of contact individuals?It is not neccessary to use all the tables.
SELECT date FROM table_name_40 WHERE record = "31–19–9"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game when the Canadiens had a record of 31–19–9?It is not neccessary to use all the tables.
SELECT MIN Position FROM table WHERE Played > 9 AND Points < 11 AND Drawn < 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Position has a Played larger than 9, and a Points smaller than 11, and a Drawn smaller than 0?.It is not neccessary to use all the tables.
SELECT result FROM table_name_1 WHERE goal > 6 AND score = "1–0" AND competition = "friendly" AND date = "may 31, 1998"
CREATE TABLE INST, Here is a database schema( table schema);
Which Result has a Goal larger than 6 and a Score of 1–0 and a Competition of friendly and a Date of may 31 1998?It is not neccessary to use all the tables.
SELECT denomination FROM table_22043925_1 WHERE school = "Seymour College"
CREATE TABLE INST, Here is a database schema( table schema);
What is every denomination for the school Seymour college?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE End Date = June 25
CREATE TABLE INST, Here is a database schema( table schema);
Where was the season that ended on June 25 located?.It is not neccessary to use all the tables.
SELECT COUNT(series_sorted) FROM table_1620397_2 WHERE released = "April 2010"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of series sorted for when released is april 2010It is not neccessary to use all the tables.
SELECT year__ceremony_ FROM table_name_46 WHERE film_title_used_in_nomination = "labyrinth"
CREATE TABLE INST, Here is a database schema( table schema);
In what Year was Labyrinth nominated?It is not neccessary to use all the tables.
SELECT COUNT Season FROM table WHERE Emperor's Cup = 3rd round AND Div. = j1 AND Tms. > 18
CREATE TABLE INST, Here is a database schema( table schema);
How many seasons did the Div J1 have the Emperor's cup in the 3rd round with Tms of more than 18?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Interstitial emphysema and related conditions" AND lab.flag = "abnormal"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients whose diagnoses long title is interstitial emphysema and related conditions and lab test abnormal status is abnormal?It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Head Coach = jonas kazlauskas AND Europe = champions cup group stage
CREATE TABLE INST, Here is a database schema( table schema);
WHAT SEASON HAD COACH JONAS KAZLAUSKAS AT champions cup group stage?.It is not neccessary to use all the tables.
SELECT season FROM table_name_2 WHERE home = "2-3"
CREATE TABLE INST, Here is a database schema( table schema);
Which season had a home 2-3?It is not neccessary to use all the tables.
SELECT MAX Attendance FROM table WHERE Date = january 15
CREATE TABLE INST, Here is a database schema( table schema);
On January 15, what was the most in attendance?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE State/country = NSW AND Yacht type = Open 66
CREATE TABLE INST, Here is a database schema( table schema);
What is the ranking for NSW open 66 racing boat. .It is not neccessary to use all the tables.
SELECT COUNT(to_par) FROM table_name_99 WHERE player = "laurie ayton"
CREATE TABLE INST, Here is a database schema( table schema);
What is the to total number of par with laurie ayton?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Attendance = 47,971
CREATE TABLE INST, Here is a database schema( table schema);
What was the result when the attendance was 47,971?.It is not neccessary to use all the tables.
SELECT MIN("Laps") FROM table_5147 WHERE "Time/Retired" = '+38.426'
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of laps with a time/retired of +38.426?It is not neccessary to use all the tables.
SELECT MAX(silver) FROM table_name_55 WHERE rank = 9 AND nation = "germany" AND gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest silver that has 9 as the rank germany as the nation with a gold less than 0?It is not neccessary to use all the tables.
SELECT SUM Took office FROM table WHERE Left office = incumbent
CREATE TABLE INST, Here is a database schema( table schema);
What is the Took Office Date of the Presidency that Left Office Incumbent?.It is not neccessary to use all the tables.
SELECT MAX("Administrative Panel") FROM table_43278 WHERE "Cultural and Educational Panel" = '2' AND "Industrial and Commercial Panel" > '4'
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest administrative panel with a cultural and educational panel of 2 plus an industrial and commercial panel larger than 4?It is not neccessary to use all the tables.
SELECT COUNT Rd # FROM table WHERE Reg GP = 0 AND Pick # = 150
CREATE TABLE INST, Here is a database schema( table schema);
What is the rd number where the reg GP is 0 and the pick is 150?.It is not neccessary to use all the tables.
SELECT COUNT(scoring_average) FROM table_13026799_3 WHERE money_list_rank = "174"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of scoring average for money list rank of 174It is not neccessary to use all the tables.
SELECT Number FROM table WHERE Acquisition via = Far Eastern
CREATE TABLE INST, Here is a database schema( table schema);
Name the number when acquisition via far eastern.It is not neccessary to use all the tables.
SELECT operator FROM table_name_89 WHERE region = "yorkshire"
CREATE TABLE INST, Here is a database schema( table schema);
What was the operator of the ensemble from Yorkshire?It is not neccessary to use all the tables.
SELECT position FROM table_name_21 WHERE season > 2000 AND level = "tier 3"
CREATE TABLE INST, Here is a database schema( table schema);
What Position has a Season larger than 2000 with a Level of Tier 3?It is not neccessary to use all the tables.
SELECT name FROM table_name_6 WHERE total = 22
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the person with a total of 22?It is not neccessary to use all the tables.
SELECT SUM Accidentally Achieved FROM table WHERE Orbital regime = medium earth AND Successes > 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of medium earth orbital regime, accidentally achieved and successes greater than 3?.It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_47 WHERE venue = "windy hill"
CREATE TABLE INST, Here is a database schema( table schema);
What team has Windy Hill as their home venueIt is not neccessary to use all the tables.
SELECT rider FROM table_name_17 WHERE time = "1:54.26.6"
CREATE TABLE INST, Here is a database schema( table schema);
Which rider had a time of 1:54.26.6?It is not neccessary to use all the tables.
SELECT mens_singles FROM table_15001681_1 WHERE womens_singles = "Daniela Kressig"
CREATE TABLE INST, Here is a database schema( table schema);
In 2004 where the womens singles is daniela kressig who is the mens singlesIt is not neccessary to use all the tables.
SELECT MIN February FROM table WHERE Opponent = boston bruins
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest day that had a game against the Boston Bruins?.It is not neccessary to use all the tables.
SELECT COUNT Losses FROM table WHERE Wins = 12 AND Goal Difference < -14
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of losses for entries that have 12 wins and a goal difference smaller than -14?.It is not neccessary to use all the tables.
SELECT COUNT Outgoing manager FROM table WHERE Team = Villarreal B
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of outgoing manager for villarreal b.It is not neccessary to use all the tables.
SELECT "Chassis" FROM table_70396 WHERE "Points" = '0' AND "Entrant" = 'automobiles gonfaronnaises sportives'
CREATE TABLE INST, Here is a database schema( table schema);
Which chassis used by the entrant Automobiles Gonfaronnaises Sportives scored 0 points?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Loss = gott (2-7)
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game that had a loss of Gott (2-7)?.It is not neccessary to use all the tables.
SELECT MAX Round FROM table WHERE Player = ken irvin
CREATE TABLE INST, Here is a database schema( table schema);
What round was Ken Irvin drafted?.It is not neccessary to use all the tables.
SELECT arranger_s_ FROM table_name_8 WHERE lyricist_s_ = "sirapatara kalayapanid"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the arranger for the song that had a lyricist of Sirapatara Kalayapanid?It is not neccessary to use all the tables.
SELECT Release date FROM table WHERE Album# = 2nd
CREATE TABLE INST, Here is a database schema( table schema);
Name the release date for album # 2nd.It is not neccessary to use all the tables.
SELECT Third Place FROM table WHERE Winner = Karina Bacchi
CREATE TABLE INST, Here is a database schema( table schema);
Who finished in third place when the winner was Karina Bacchi? .It is not neccessary to use all the tables.
SELECT season FROM table_name_98 WHERE goals = "1"
CREATE TABLE INST, Here is a database schema( table schema);
What season had a goal of 1?It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_75 WHERE points = 4
CREATE TABLE INST, Here is a database schema( table schema);
what is the least year for 4 points?It is not neccessary to use all the tables.
SELECT COUNT(snare_pad) FROM table_2889300_6 WHERE drumset_name = "TD-15K"
CREATE TABLE INST, Here is a database schema( table schema);
for the drumset name td-15k how many snare pads areIt is not neccessary to use all the tables.
SELECT SUM(points) FROM table_name_66 WHERE against < 24 AND played < 20
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Points when the against is less than 24 and played is less than 20?It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_37 WHERE time = 10.56
CREATE TABLE INST, Here is a database schema( table schema);
What is the most recent year with a time of 10.56?It is not neccessary to use all the tables.
SELECT AVG Points FROM table WHERE Team = newman/haas racing AND Laps < 40
CREATE TABLE INST, Here is a database schema( table schema);
How many points for Newman/Haas Racing with fewer than 40 laps?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Decision = parent AND Visitor = philadelphia AND Date = january 27
CREATE TABLE INST, Here is a database schema( table schema);
Decision of parent, and a Visitor of Philadelphia, and a Date of January 27 had what score?.It is not neccessary to use all the tables.
SELECT Leading scorer FROM table WHERE Record = 9–6
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the leading scorer when the record was 9–6?.It is not neccessary to use all the tables.
SELECT COUNT(stage__winner_) FROM table_19115414_4 WHERE team_classification = "Team Columbia"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of stage winners for team columbiaIt is not neccessary to use all the tables.
SELECT country FROM table_name_28 WHERE to_par = "+2"
CREATE TABLE INST, Here is a database schema( table schema);
Name the country with +2 to parIt is not neccessary to use all the tables.
SELECT Location FROM table WHERE Record = 2-1
CREATE TABLE INST, Here is a database schema( table schema);
Name the location for 2-1 record.It is not neccessary to use all the tables.
SELECT current_code FROM table_name_20 WHERE type = "club trophy" AND years = "1867 only"
CREATE TABLE INST, Here is a database schema( table schema);
What is the current code for the club trophy in 1867 only?It is not neccessary to use all the tables.
SELECT Height FROM table WHERE Name = james stanton
CREATE TABLE INST, Here is a database schema( table schema);
How tall is player James Stanton?.It is not neccessary to use all the tables.
SELECT artist FROM table_name_7 WHERE draw > 4 AND points < 5
CREATE TABLE INST, Here is a database schema( table schema);
Which artist has a draw higher than 4 and fewer than 5 points?It is not neccessary to use all the tables.
SELECT wheel_arrangement FROM table_name_9 WHERE specification = "dl-700"
CREATE TABLE INST, Here is a database schema( table schema);
Which wheel arrangement had a Specification of dl-700?It is not neccessary to use all the tables.
SELECT country FROM table_18812411_3 WHERE r3 = 72 AND player = "Larry Mize"
CREATE TABLE INST, Here is a database schema( table schema);
What country had a r3 at 72, by Larry Mize?It is not neccessary to use all the tables.
SELECT COUNT Celebrity FROM table WHERE Famous for = Athlete
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of celebrity for athlete.It is not neccessary to use all the tables.