sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT AVG Year FROM table WHERE Status = not free AND Civil Liberties < 7 AND Political Rights < 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the year average when not free was the status, and less than 7 was the civil liberties, and less than 6 political rights?.It is not neccessary to use all the tables.
SELECT MAX Drawn FROM table WHERE Position = 14 AND Goals For > 66
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest drawn number when 14 is the position, and goals for is more than 66?.It is not neccessary to use all the tables.
SELECT dutch FROM table_name_18 WHERE english = "one"
CREATE TABLE INST, Here is a database schema( table schema);
What is the dutch word for one?It is not neccessary to use all the tables.
SELECT Operates FROM table WHERE Terminus = downtown transit center AND Name = bayou blvd./12th avenue
CREATE TABLE INST, Here is a database schema( table schema);
Where does the Bayou Blvd./12th Avenue route that has a terminus at the downtown transit center operate?.It is not neccessary to use all the tables.
SELECT height FROM table_27515452_3 WHERE sizes = "33-24-35"
CREATE TABLE INST, Here is a database schema( table schema);
how tall is someone who is able to wear 33-24-35It is not neccessary to use all the tables.
SELECT commenced_operations FROM table_15637071_1 WHERE headquarters = "Angeles City"
CREATE TABLE INST, Here is a database schema( table schema);
Which year did the Angeles City based airline begin operations?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Home team score = 9.9 (63)
CREATE TABLE INST, Here is a database schema( table schema);
Where did a home team score 9.9 (63)?.It is not neccessary to use all the tables.
SELECT gross_revenue__2011_ FROM table_name_28 WHERE gross_revenue__1982_ = "$1,988,047"
CREATE TABLE INST, Here is a database schema( table schema);
What is the gross revenue in 2011 with a gross revenue in 1982 of $1988047?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Home team = geelong
CREATE TABLE INST, Here is a database schema( table schema);
What is the Away team score when they played Geelong as the Home team?.It is not neccessary to use all the tables.
SELECT nominee FROM table_name_16 WHERE award = "tony award"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the nominee having a Tony award?It is not neccessary to use all the tables.
SELECT COUNT(population__2011_) FROM table_189893_1 WHERE percentage__2006_ = "1.40%"
CREATE TABLE INST, Here is a database schema( table schema);
How many values for population(2011) correspond to a 1.40% in 2006?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Venue = princes park
CREATE TABLE INST, Here is a database schema( table schema);
What was the away teams score at Princes Park?.It is not neccessary to use all the tables.
SELECT "Date" FROM table_60954 WHERE "Meet" = 'world championships' AND "Nationality" = 'united states' AND "Time" = '1:46.68'
CREATE TABLE INST, Here is a database schema( table schema);
What is Date, when Meet is 'World Championships', when Nationality is 'United States', and when Time is '1:46.68'?It is not neccessary to use all the tables.
SELECT MAX("3rd throw") FROM table_21440 WHERE "Equation" = '6 × 9² + 6 × 9 + 6'
CREATE TABLE INST, Here is a database schema( table schema);
If the equation is 6 9 + 6 9 + 6, what is the 3rd throw?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM follows GROUP BY f1
CREATE TABLE INST, Here is a database schema( table schema);
Find the number of followers for each user.It is not neccessary to use all the tables.
SELECT condition FROM table_name_75 WHERE prothrombin_time = "unaffected" AND bleeding_time = "prolonged" AND partial_thromboplastin_time = "unaffected" AND platelet_count = "decreased or unaffected"
CREATE TABLE INST, Here is a database schema( table schema);
I want to know the condition with Prothrombin time of unaffected and bleeding time of prolonged with partial thromboplastin time of unaffected with platelet count of decreased or unaffectedIt is not neccessary to use all the tables.
SELECT urban_area FROM table_1940144_1 WHERE population_2011 = 5010
CREATE TABLE INST, Here is a database schema( table schema);
Which urban area has a 2011 population of 5010?It is not neccessary to use all the tables.
SELECT team FROM table_17102076_5 WHERE location_attendance = "ARCO Arena 13,685"
CREATE TABLE INST, Here is a database schema( table schema);
Name the team for arco arena 13685It is not neccessary to use all the tables.
SELECT Margin of victory FROM table WHERE Date = 15 jul 2007
CREATE TABLE INST, Here is a database schema( table schema);
What is the margin of victory of the tournament on 15 Jul 2007?.It is not neccessary to use all the tables.
SELECT loss FROM table_name_39 WHERE date = "june 12"
CREATE TABLE INST, Here is a database schema( table schema);
What Loss occured on the Date of June 12?It is not neccessary to use all the tables.
SELECT Lunar EVA dates FROM table WHERE Mission = apollo 12 AND Name = pete conrad
CREATE TABLE INST, Here is a database schema( table schema);
Pete Conrad was on the Apollo 12 mission but also had what Lunar EVA dates?.It is not neccessary to use all the tables.
SELECT first_couple FROM table_25664518_3 WHERE fourth_couple = "Sammy and Nat"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the first couple in the episode having a fourth couple of Sammy and Nat?It is not neccessary to use all the tables.
SELECT COUNT Current account balance (percent of GDP) FROM table WHERE GDP at constant prices growth rate (percent change) = 4.6
CREATE TABLE INST, Here is a database schema( table schema);
How many current account balances are associated with GDP at constant prices growth rates of 4.6?.It is not neccessary to use all the tables.
SELECT Nickname FROM table WHERE Joined = 1902 1
CREATE TABLE INST, Here is a database schema( table schema);
what is the nickname that joined 1902 1?.It is not neccessary to use all the tables.
SELECT MIN Viewers (in households) FROM table WHERE Finale = may 23, 1995 AND Episodes > 22
CREATE TABLE INST, Here is a database schema( table schema);
What is the minimum number of views that watched the show when there was more than 22 episodes and the finale was on May 23, 1995?.It is not neccessary to use all the tables.
SELECT COUNT(byes) FROM table_name_55 WHERE draws > 0
CREATE TABLE INST, Here is a database schema( table schema);
How many byes has a draw larger than 0?It is not neccessary to use all the tables.
SELECT elevator FROM table_name_77 WHERE elector = "pietro colonna"
CREATE TABLE INST, Here is a database schema( table schema);
What is the elevator when the elector is Pietro Colonna?It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Venue = windy hill
CREATE TABLE INST, Here is a database schema( table schema);
What team has Windy Hill as their home venue.It is not neccessary to use all the tables.
SELECT location FROM table_name_61 WHERE year = 2007
CREATE TABLE INST, Here is a database schema( table schema);
What is the location in 2007?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Home team = parkgate
CREATE TABLE INST, Here is a database schema( table schema);
What is the score when parkgate is at home?.It is not neccessary to use all the tables.
SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY All_Home
CREATE TABLE INST, Here is a database schema( table schema);
Find All_Home and Team_ID , and group by attribute ACC_Home, and visualize them by a bar chart, and display in asc by the x-axis.It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Date = january 8
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team on January 8?.It is not neccessary to use all the tables.
SELECT SUM Rank FROM table WHERE Municipality = winnipeg AND Area (km 2 ) > 464.01
CREATE TABLE INST, Here is a database schema( table schema);
What is the total Rank that has a Municipality of Winnipeg, an Area (KM 2) that's larger than 464.01?.It is not neccessary to use all the tables.
SELECT MIN(sno) FROM table_name_9 WHERE state = "jammu & kashmir" AND completion_schedule = "2016"
CREATE TABLE INST, Here is a database schema( table schema);
When the completion schedule is 2016 for the state of jammu & kashmir what is the smallest S.no.?It is not neccessary to use all the tables.
SELECT COUNT("Vote") FROM table_60023 WHERE "Seat" = 'house a' AND "Percentage" = '75.44%' AND "District" < '11'
CREATE TABLE INST, Here is a database schema( table schema);
How many votes have a Seat of house A, and a Percentage of 75.44%, and a District smaller than 11?It is not neccessary to use all the tables.
SELECT ICAO FROM table WHERE Airport = yangon international airport
CREATE TABLE INST, Here is a database schema( table schema);
What is the ICAO for the Yangon International Airport?.It is not neccessary to use all the tables.
SELECT GameID, SUM(Hours_Played) FROM Plays_Games GROUP BY GameID
CREATE TABLE INST, Here is a database schema( table schema);
Plot a scatter chart, gameid by sum hours played.It is not neccessary to use all the tables.
SELECT hometown FROM table_name_80 WHERE player = "thomas tyner"
CREATE TABLE INST, Here is a database schema( table schema);
What's the hometown of thomas tyner?It is not neccessary to use all the tables.
SELECT MIN(attendance) FROM table_name_96 WHERE leading_scorer = "tim duncan (24)" AND home = "spurs"
CREATE TABLE INST, Here is a database schema( table schema);
How many people attended the game where the leading scorer was Tim Duncan (24) and the home team was the Spurs?It is not neccessary to use all the tables.
SELECT AVG(laps) FROM table_name_87 WHERE grid > 2 AND time_retired = "accident" AND constructor = "ferrari"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average laps for a grid larger than 2 for a ferrari that got in an accident?It is not neccessary to use all the tables.
SELECT * FROM table_train_269 WHERE age >= 18
CREATE TABLE INST, Here is a database schema( table schema);
age 18 or olderIt is not neccessary to use all the tables.
SELECT score FROM table_name_64 WHERE date = "october 30"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score on October 30?It is not neccessary to use all the tables.
SELECT Rating FROM table WHERE Episode = "110"
CREATE TABLE INST, Here is a database schema( table schema);
What was the rating of episode titled "110"?.It is not neccessary to use all the tables.
SELECT l3_cache FROM table_name_84 WHERE part_number_s_ = "low power"
CREATE TABLE INST, Here is a database schema( table schema);
What's the L3 cache that has a low power part number?It is not neccessary to use all the tables.
SELECT "Name" FROM table_50396 WHERE "Overall" = '72'
CREATE TABLE INST, Here is a database schema( table schema);
Who had the overall pick of 72?It is not neccessary to use all the tables.
SELECT MAX("2nd throw") FROM table_72858 WHERE "Equation" = '(10 times 8) + 4'
CREATE TABLE INST, Here is a database schema( table schema);
If the equation is (10 times 8) + 4, what would be the 2nd throw?It is not neccessary to use all the tables.
SELECT SUM(number_in_class) FROM table_name_13 WHERE owner = "whitehaven coal"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number in class for the Whitehaven Coal?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_12 WHERE away_team = "bolton wanderers"
CREATE TABLE INST, Here is a database schema( table schema);
who is the home team when the away team is bolton wanderers?It is not neccessary to use all the tables.
SELECT Episodes FROM table WHERE Region 1 (US) = October 13, 2009
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes were released on DVD in the US on October 13, 2009?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM Dogs WHERE age < (SELECT AVG(age) FROM Dogs)
CREATE TABLE INST, Here is a database schema( table schema);
How many dogs have an age below the average?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Circuit = laguna seca raceway AND Class = gtx/gto
CREATE TABLE INST, Here is a database schema( table schema);
Which date was held at Laguna Seca Raceway, in class GTX/GTO?.It is not neccessary to use all the tables.
SELECT position FROM table_name_29 WHERE nfl_club = "pittsburgh steelers"
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of the pittsburgh steelers?It is not neccessary to use all the tables.
SELECT COUNT Region 4 FROM table WHERE Complete Series = The Complete Seventh Series
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of region 4 for the series of the complete seventh series?.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Week = 2
CREATE TABLE INST, Here is a database schema( table schema);
What time was the game in week 2?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Result = w 23-7
CREATE TABLE INST, Here is a database schema( table schema);
What was the Opponent in the game with a Result of W 23-7?.It is not neccessary to use all the tables.
SELECT college FROM table_name_8 WHERE team = "boston patriots"
CREATE TABLE INST, Here is a database schema( table schema);
Which college did the player who went to the Boston Patriots go to?It is not neccessary to use all the tables.
SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-158689')) AND lab.labname = 'mchc' AND DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', lab.labresulttime) = '11' ORDER BY lab.labresult DESC, lab.labresulttime DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
when was the last time that patient 006-158689 had maximum mchc value in 11/last year?It is not neccessary to use all the tables.
SELECT Name FROM team WHERE NOT Team_id IN (SELECT Team FROM match_season)
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of teams that do no have match season record?It is not neccessary to use all the tables.
SELECT Hydroxymatairesinol FROM table WHERE Sesamin = 62724
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of hydroxymatairesinol where sesamin is 62724?.It is not neccessary to use all the tables.
SELECT club FROM table_name_80 WHERE name = "hafiz abu sujad"
CREATE TABLE INST, Here is a database schema( table schema);
Which club is associated with Hafiz Abu Sujad?It is not neccessary to use all the tables.
SELECT date FROM table_name_34 WHERE game = 3
CREATE TABLE INST, Here is a database schema( table schema);
What date was game number 3?It is not neccessary to use all the tables.
SELECT SUM(weight) FROM table_name_22 WHERE home_town = "minnetonka, mn"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total combined weight of players from minnetonka mn?It is not neccessary to use all the tables.
SELECT date FROM table_name_36 WHERE circuit = "cremona"
CREATE TABLE INST, Here is a database schema( table schema);
What Date has a Circuit of cremona?It is not neccessary to use all the tables.
SELECT years FROM table_name_36 WHERE representative = "j. smith young"
CREATE TABLE INST, Here is a database schema( table schema);
What years did J. Smith Young serve as a Representative?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_31 WHERE extra = "400 m hurdles"
CREATE TABLE INST, Here is a database schema( table schema);
In what tournament was there an extra of 400 m hurdles?It is not neccessary to use all the tables.
SELECT competition FROM table_name_34 WHERE result = "lost 1-2"
CREATE TABLE INST, Here is a database schema( table schema);
What Competition had a Result of lost 1-2?It is not neccessary to use all the tables.
SELECT MIN(round_1) FROM table_name_15 WHERE place = "t15" AND year < 1998
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest round with a place of t15 in a year earlier than 1998?It is not neccessary to use all the tables.
SELECT COUNT(stolen_ends) FROM table_1644857_2 WHERE country = France
CREATE TABLE INST, Here is a database schema( table schema);
How many times is a score for stolen ends recorded for France?It is not neccessary to use all the tables.
SELECT MIN Extra points FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What was the least amount of points scored?.It is not neccessary to use all the tables.
SELECT Lost to FROM table WHERE Film = chicago
CREATE TABLE INST, Here is a database schema( table schema);
Who was the loss to for the film Chicago?.It is not neccessary to use all the tables.
SELECT December FROM table WHERE Record = 4-3-6
CREATE TABLE INST, Here is a database schema( table schema);
Which December has a Record of 4-3-6?.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE County = platte
CREATE TABLE INST, Here is a database schema( table schema);
What's the location for the country of platte?.It is not neccessary to use all the tables.
SELECT Drawn FROM table WHERE Club = New Ross
CREATE TABLE INST, Here is a database schema( table schema);
How many drawn are there where the Club is new ross?.It is not neccessary to use all the tables.
SELECT notes FROM table_name_32 WHERE venue = "toronto, canada"
CREATE TABLE INST, Here is a database schema( table schema);
What were the notes in Toronto, Canada?It is not neccessary to use all the tables.
SELECT COUNT(results) FROM table_24865763_2 WHERE circuit = "Algarve" AND gt1_winning_team = "No. 50 Larbre Compétition"
CREATE TABLE INST, Here is a database schema( table schema);
How many results did the GT1 Winning Team No. 50 Larbre Comp tition on the Algarve circuit?It is not neccessary to use all the tables.
SELECT league FROM table_name_74 WHERE finish = "2nd" AND losses = 3
CREATE TABLE INST, Here is a database schema( table schema);
What league had a finish of 2nd and 3 losses?It is not neccessary to use all the tables.
SELECT author FROM table_1620397_2 WHERE series_sorted = "6Y/AE"
CREATE TABLE INST, Here is a database schema( table schema);
Name the author for 6y/aeIt is not neccessary to use all the tables.
SELECT venue FROM table_name_22 WHERE city = "seattle"
CREATE TABLE INST, Here is a database schema( table schema);
What is the venue in Seattle?It is not neccessary to use all the tables.
SELECT score FROM table_26847237_3 WHERE opposition = "Mid Canterbury"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score when the opposition is mid canterbury?It is not neccessary to use all the tables.
SELECT MAX(top_25) FROM table_name_28 WHERE events > 2 AND wins < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is his highest number of top 25s when eh played over 2 events and under 0 wins?It is not neccessary to use all the tables.
SELECT constructor FROM table_name_5 WHERE grid = 13
CREATE TABLE INST, Here is a database schema( table schema);
Which vehicle has a Grid of 13?It is not neccessary to use all the tables.
SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.Id = T2.company_id WHERE T1.principal_activities = 'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.Id = T2.company_id WHERE T1.principal_activities = 'Catering services'
CREATE TABLE INST, Here is a database schema( table schema);
List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities.It is not neccessary to use all the tables.
SELECT MIN 1977 FROM table WHERE County = zzz bucharest AND 2011 < 1883425
CREATE TABLE INST, Here is a database schema( table schema);
Which 1977 is the lowest one that has a County of zzz bucharest, and a 2011 smaller than 1883425?.It is not neccessary to use all the tables.
SELECT Stadium FROM table WHERE Home team = Shamrock Rovers AND Result = 3–0
CREATE TABLE INST, Here is a database schema( table schema);
What was the stadium for the home team of shamrock rovers and result of 3–0?.It is not neccessary to use all the tables.
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY city_code
CREATE TABLE INST, Here is a database schema( table schema);
Create a bar chart showing the total number across city code, and could you show by the bars in asc?It is not neccessary to use all the tables.
SELECT COUNT Pick FROM table WHERE Name = steve hamilton AND Round > 2
CREATE TABLE INST, Here is a database schema( table schema);
WHAT PICK HAD STEVE HAMILTON IN ROUND LARGER THAN 2?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Away team = north melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What was the home team score when North Melbourne was the away team?.It is not neccessary to use all the tables.
SELECT Actor/actress FROM table WHERE Tenure = 2008–2011 AND Character = stella dagostino
CREATE TABLE INST, Here is a database schema( table schema);
What Actor/Actress a Tenure of 2008–2011 played Stella Dagostino?.It is not neccessary to use all the tables.
SELECT Rufus guest FROM table WHERE Episode = 1x07
CREATE TABLE INST, Here is a database schema( table schema);
Name the rufus guest for episode 1x07.It is not neccessary to use all the tables.
SELECT Team_Name, Team_ID FROM basketball_match ORDER BY Team_Name DESC
CREATE TABLE INST, Here is a database schema( table schema);
Visualize a bar chart about the distribution of Team_Name and Team_ID , and list X-axis in descending order.It is not neccessary to use all the tables.
SELECT MIN(rank) FROM table_name_3 WHERE bronze = 3 AND total > 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest rank for Spain when more than 10 medals were won 3 of which were bronze?It is not neccessary to use all the tables.
SELECT tries_against FROM table_12792876_4 WHERE points = "87"
CREATE TABLE INST, Here is a database schema( table schema);
Name the tries against for 87 pointsIt is not neccessary to use all the tables.
SELECT MAX Attendance FROM table WHERE Home = lakers
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest attendace of the game with the Lakers as the home team?.It is not neccessary to use all the tables.
SELECT COUNT(no_in_season) FROM table_2226817_4 WHERE production_code = "3.09"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of number in season for 3.09It is not neccessary to use all the tables.
SELECT MIN Episode FROM table WHERE Segment D = Custom Motorcycle Tanks
CREATE TABLE INST, Here is a database schema( table schema);
Which episode has segment D on custom motorcycle tanks?.It is not neccessary to use all the tables.
SELECT finish FROM table_name_24 WHERE rank = "33" AND laps = 200
CREATE TABLE INST, Here is a database schema( table schema);
Which finish has 33 as a rank and 200 for laps?It is not neccessary to use all the tables.
SELECT timeslot FROM table_23392257_4 WHERE viewers__millions_ = "0.673"
CREATE TABLE INST, Here is a database schema( table schema);
What timeslot received 0.673 viewers?It is not neccessary to use all the tables.
SELECT "permanence of the body" FROM table_72207 WHERE "constancy" = 'interestedness'
CREATE TABLE INST, Here is a database schema( table schema);
what's the permanence of the body where constancy is interestednessIt is not neccessary to use all the tables.
SELECT season FROM table_name_90 WHERE margin = "195 runs"
CREATE TABLE INST, Here is a database schema( table schema);
What season has 195 runs as a margin?It is not neccessary to use all the tables.
SELECT partner FROM table_name_24 WHERE opponents = "wayne arthurs sandon stolle"
CREATE TABLE INST, Here is a database schema( table schema);
Which Partner has an Opponents of wayne arthurs sandon stolle?It is not neccessary to use all the tables.