sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT position FROM table_name_44 WHERE school = "washington"
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of the player for Washington school?It is not neccessary to use all the tables.
SELECT SUM(points) FROM table_name_16 WHERE place < 2 AND played > 18
CREATE TABLE INST, Here is a database schema( table schema);
What is the total points for a place less than 2 with a played greater than 18?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_95 WHERE runner_up = "livingston"
CREATE TABLE INST, Here is a database schema( table schema);
How many people were watching when Livingston was the runner-up?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2104" AND prescriptions.route = "TD"
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of patients whose year of birth is less than 2104 and drug route is td?It is not neccessary to use all the tables.
SELECT Division FROM table WHERE Team = toronto raptors
CREATE TABLE INST, Here is a database schema( table schema);
Which division do the Toronto Raptors belong in?.It is not neccessary to use all the tables.
SELECT of_4 FROM table_name_47 WHERE country = "albania"
CREATE TABLE INST, Here is a database schema( table schema);
What is the OF-4 of Albania?It is not neccessary to use all the tables.
SELECT condition FROM table_name_4 WHERE partial_thromboplastin_time = "unaffected" AND prothrombin_time = "unaffected" AND platelet_count = "decreased"
CREATE TABLE INST, Here is a database schema( table schema);
Name the condition with partial thromboplastin time of unaffected and prothrombin time of unaffected with platelet count of decreasedIt is not neccessary to use all the tables.
SELECT population FROM table_name_95 WHERE rank = 11
CREATE TABLE INST, Here is a database schema( table schema);
What is the population for Rank 11?It is not neccessary to use all the tables.
SELECT MAX Roll FROM table WHERE Decile > 2 AND Area = te puna
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest roll number of the school in Te puna with a decile larger than 2?.It is not neccessary to use all the tables.
SELECT Republican: John Kennedy FROM table WHERE Democrat: Mary Landrieu = 53%
CREATE TABLE INST, Here is a database schema( table schema);
Which poll shows Democrat Mary Landrieu with 53% against Republican John Kennedy?.It is not neccessary to use all the tables.
SELECT SUM(laps) FROM table_name_94 WHERE qual = "144.665"
CREATE TABLE INST, Here is a database schema( table schema);
Name the laps for qual of 144.665It is not neccessary to use all the tables.
SELECT SUM Wins FROM table WHERE Year = 1994
CREATE TABLE INST, Here is a database schema( table schema);
How many wins were there in 1994?.It is not neccessary to use all the tables.
SELECT visiting_team FROM table_name_10 WHERE date = "october 23"
CREATE TABLE INST, Here is a database schema( table schema);
What was the visiting team on october 23?It is not neccessary to use all the tables.
SELECT Director FROM table WHERE Role = melissa
CREATE TABLE INST, Here is a database schema( table schema);
Which Director has a Role of melissa?.It is not neccessary to use all the tables.
SELECT AVG(fleet_size) FROM table_name_3 WHERE type = "shunter" AND introduced = "1959"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average fleet size for the Shunter type introduced in 1959?It is not neccessary to use all the tables.
SELECT chord FROM table_name_73 WHERE minor_seventh = "f"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Chord with a Minor that is seventh of f?It is not neccessary to use all the tables.
SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach')
CREATE TABLE INST, Here is a database schema( table schema);
What is the age of the friend of Zach with longest year relationship?It is not neccessary to use all the tables.
SELECT event FROM table_name_55 WHERE opponent = "edson claas vieira"
CREATE TABLE INST, Here is a database schema( table schema);
Which event had Edson Claas Vieira as an opponent?It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_71 WHERE score = "4–1"
CREATE TABLE INST, Here is a database schema( table schema);
Name the highest Year with a Score of 4–1?It is not neccessary to use all the tables.
SELECT record FROM table_name_22 WHERE opponent = "blue jays" AND loss = "batista (0–3)"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record at the game against the Blue Jays with a loss of Batista (0–3)?It is not neccessary to use all the tables.
SELECT COUNT(attendance) FROM table_name_59 WHERE record = "43-34"
CREATE TABLE INST, Here is a database schema( table schema);
How many attended the game with a record of 43-34?It is not neccessary to use all the tables.
SELECT SUM(pages) FROM table_name_36 WHERE translated_title = "thistle among roses"
CREATE TABLE INST, Here is a database schema( table schema);
I want the sum of pages for thistle among rosesIt is not neccessary to use all the tables.
SELECT Country FROM table WHERE Year(s) won = 2004
CREATE TABLE INST, Here is a database schema( table schema);
What country won in 2004?.It is not neccessary to use all the tables.
SELECT AVG(total) FROM table_name_20 WHERE fa_cup_goals = "1" AND league_goals = "10" AND club = "crystal palace"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Total when FA Cup Goals is 1 when League Goals is 10 and when Club is Crystal Palace?It is not neccessary to use all the tables.
SELECT MAX Population (2008) FROM table WHERE Created < 1857 AND County = sinoe
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest population (2008) created earlier than 1857, and the county was Sinoe?.It is not neccessary to use all the tables.
SELECT Try bonus FROM table WHERE Tries for = Tries for
CREATE TABLE INST, Here is a database schema( table schema);
What is listed under try bonus when listed under Tries for is tries for?.It is not neccessary to use all the tables.
SELECT COUNT(italian) FROM table_25401_15 WHERE conservative_central_italian_1 = "unu"
CREATE TABLE INST, Here is a database schema( table schema);
How many entries for Italian correspond to the Conservative Central Italian of Unu?It is not neccessary to use all the tables.
SELECT 2009 FROM table_name_75 WHERE 2006 = "q1" AND tournament = "french open"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2009 value with a q1 in 2006 in the French Open?It is not neccessary to use all the tables.
SELECT Mongolian FROM table WHERE Tamil தமிழ் = pūrāṭam பூராடம்
CREATE TABLE INST, Here is a database schema( table schema);
Which Mongolian has a Tamil தமிழ் of pūrāṭam பூராடம்?.It is not neccessary to use all the tables.
SELECT ceased_to_be_queen FROM table_name_3 WHERE birth = "10 may 1788"
CREATE TABLE INST, Here is a database schema( table schema);
Who was born on 10 May 1788 that ceased to be queen?It is not neccessary to use all the tables.
SELECT MAX Matches FROM table WHERE Runs = 5028
CREATE TABLE INST, Here is a database schema( table schema);
If the runs is 5028, what is the matches maximum?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.days_stay > "14"
CREATE TABLE INST, Here is a database schema( table schema);
how many dead patients were admitted in hospital for more than 14 days?It is not neccessary to use all the tables.
SELECT Code FROM table WHERE Population (2011 Census) = 312520
CREATE TABLE INST, Here is a database schema( table schema);
What's the code of the district in which 312520 people lived in 2011?.It is not neccessary to use all the tables.
SELECT date FROM table_11960407_4 WHERE high_rebounds = "Chris Bosh (14)"
CREATE TABLE INST, Here is a database schema( table schema);
When did Chris Bosh (14) have the high rebounds?It is not neccessary to use all the tables.
SELECT MIN(enrollment) FROM table_name_3 WHERE team_nickname = "pilots"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Enrollment for the Pilots?It is not neccessary to use all the tables.
SELECT COUNT Record FROM table WHERE Opponent = Dallas Texans
CREATE TABLE INST, Here is a database schema( table schema);
How many times did the Denver Broncos face the Dallas Texans this season?.It is not neccessary to use all the tables.
SELECT New South Wales FROM table WHERE Crop (kilotonnes) = Canola
CREATE TABLE INST, Here is a database schema( table schema);
what's the new south wales with crop (kilotonnes) being canola.It is not neccessary to use all the tables.
SELECT COUNT Title FROM table WHERE Series # = 4
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes is episode number 4 in the series?.It is not neccessary to use all the tables.
SELECT medal FROM table_name_69 WHERE event = "men's freestyle 52 kg"
CREATE TABLE INST, Here is a database schema( table schema);
What medal was awarded in the men's freestyle 52 kg?It is not neccessary to use all the tables.
SELECT MAX Crowd FROM table WHERE Home team score = 12.15 (87)
CREATE TABLE INST, Here is a database schema( table schema);
What was the top crowd when the team scored 12.15 (87) at home?.It is not neccessary to use all the tables.
SELECT Target city/ market FROM table WHERE Call sign = KFXS
CREATE TABLE INST, Here is a database schema( table schema);
What is the target market of the station with call sign KFXS?.It is not neccessary to use all the tables.
SELECT AVG Gold FROM table WHERE Total > 1 AND Bronze < 10 AND Nation = switzerland AND Silver > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of gold medals Switzerland received when they ranked larger than 1st and received fewer than 10 bronze medals and more than 1 silver medal?.It is not neccessary to use all the tables.
SELECT Boiler pressure FROM table WHERE Name = hesperus
CREATE TABLE INST, Here is a database schema( table schema);
What is the boiler pressure for the Hesperus model?.It is not neccessary to use all the tables.
SELECT COUNT(episode_titles) FROM table_11220799_2 WHERE first_air_date = "March 6, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes had their first air date on March 6 2008?It is not neccessary to use all the tables.
SELECT additional_notes FROM table_name_79 WHERE location = "cotabato"
CREATE TABLE INST, Here is a database schema( table schema);
What are the additional notes for Cotabato?It is not neccessary to use all the tables.
SELECT constellation FROM table_name_17 WHERE object_type = "globular cluster" AND ngc_number = 5986
CREATE TABLE INST, Here is a database schema( table schema);
What Constellation has a Object type of globular cluster and a NGC number of 5986?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Date = 15 july 1967 AND Away team = fitzroy
CREATE TABLE INST, Here is a database schema( table schema);
When the Away team is fitzroy on the Date of 15 july 1967, what was the Home team playing?.It is not neccessary to use all the tables.
SELECT MAX(district) FROM table_26131768_4 WHERE representative = "Barbara Sears"
CREATE TABLE INST, Here is a database schema( table schema);
If the Representative is Barbara sears what is the district number?It is not neccessary to use all the tables.
SELECT MIN Number FROM table WHERE Date = january 2, 1936
CREATE TABLE INST, Here is a database schema( table schema);
What's the number of the game played on January 2, 1936?.It is not neccessary to use all the tables.
SELECT AVG(attendance) FROM table_name_71 WHERE result = "w 21–7"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Attendance at the Game with a Result of w 21–7?It is not neccessary to use all the tables.
SELECT silver FROM table_name_11 WHERE gold = 2 AND bronze > 2
CREATE TABLE INST, Here is a database schema( table schema);
How many silver medals were there with 2 gold medals and more than 2 bronze medals?It is not neccessary to use all the tables.
SELECT Death FROM table WHERE Image = elisabeth of lorraine
CREATE TABLE INST, Here is a database schema( table schema);
What is the death date of elisabeth of lorraine?.It is not neccessary to use all the tables.
SELECT visitor FROM table_name_26 WHERE home = "tampa bay"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the visitor team in tampa bay?It is not neccessary to use all the tables.
SELECT SUM("Cars per Set") FROM table_32100 WHERE "Operator" = 'london midland'
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the sum of cars per set for operator of london midlandIt is not neccessary to use all the tables.
SELECT MAX(year) FROM table_1507806_1 WHERE runner_up = "William Mehlhorn"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT WAS THE YEAR WHEN THE RUNNER-UP WAS WILLIAM MEHLHORN?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team score = 17.12 (114)
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the venue where the away team scored 17.12 (114)?.It is not neccessary to use all the tables.
SELECT colonized FROM table_name_92 WHERE state = "michigan"
CREATE TABLE INST, Here is a database schema( table schema);
What is the colonized date for Michigan?It is not neccessary to use all the tables.
SELECT date_of_vacancy FROM table_name_70 WHERE position_in_table = "10th" AND team = "balboa"
CREATE TABLE INST, Here is a database schema( table schema);
what is the date of vacancy when the position in table is 10th and the team is balboa?It is not neccessary to use all the tables.
SELECT SUM("Wins") FROM table_62878 WHERE "For & Against Ratio" = '0.83' AND "Losses" > '1'
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum on wins with an against ratio of 0.83, and more than 1 loss?It is not neccessary to use all the tables.
SELECT T3.Name, T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID
CREATE TABLE INST, Here is a database schema( table schema);
Show the names of phones and the districts of markets they are on.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Location = ljubljana
CREATE TABLE INST, Here is a database schema( table schema);
Which Name has a Location of ljubljana?.It is not neccessary to use all the tables.
SELECT epoch__utc_ FROM table_206217_2 WHERE periselene__km_ = "2,291.250"
CREATE TABLE INST, Here is a database schema( table schema);
What is every entry for epoch if periselene is 2291.250?It is not neccessary to use all the tables.
SELECT AVG Crowd FROM table WHERE Home team = essendon
CREATE TABLE INST, Here is a database schema( table schema);
Which average Crowd has a Home team of essendon?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = December 8
CREATE TABLE INST, Here is a database schema( table schema);
Name the opponent for december 8.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_55 WHERE game > 23 AND december > 8 AND record = "8-10-7"
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent has a game larger than 23 December larger than 8 and record of 8-10-7?It is not neccessary to use all the tables.
SELECT district FROM table_1341423_21 WHERE incumbent = "Joe Moakley"
CREATE TABLE INST, Here is a database schema( table schema);
Which district is Joe Moakley?It is not neccessary to use all the tables.
SELECT Womens doubles FROM table WHERE Mens doubles = Charalambos Kazilas Stepan Partemian
CREATE TABLE INST, Here is a database schema( table schema);
Name the womens doubles when mens doubles is charalambos kazilas stepan partemian.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Position = guard AND From = 1968
CREATE TABLE INST, Here is a database schema( table schema);
Which player played the guard position from 1968?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Venue = kathmandu
CREATE TABLE INST, Here is a database schema( table schema);
What was the score in Kathmandu?.It is not neccessary to use all the tables.
SELECT sitalsasthi_carnival FROM table_name_97 WHERE kosal = "sonepur"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sitalsasthi carnival with sonepur as kosal?It is not neccessary to use all the tables.
SELECT Races FROM table WHERE Chassis = reynard 2ki AND Engine = honda hrk
CREATE TABLE INST, Here is a database schema( table schema);
Which person drove a Reynard 2ki with a Honda Hrk engine?.It is not neccessary to use all the tables.
SELECT firefox FROM table_name_66 WHERE safari = "15.40%"
CREATE TABLE INST, Here is a database schema( table schema);
What percentage of users were using Firefox according to the source that reported 15.40% used Safari?It is not neccessary to use all the tables.
SELECT Finish FROM table WHERE Year = 1939
CREATE TABLE INST, Here is a database schema( table schema);
In 1939, what was the finish?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = october 16, 2000
CREATE TABLE INST, Here is a database schema( table schema);
What score has october 16, 2000 as the date?.It is not neccessary to use all the tables.
SELECT "Record" FROM table_51951 WHERE "Round" > '2' AND "Event" = 'raging wolf 6: mayhem in the mist'
CREATE TABLE INST, Here is a database schema( table schema);
What is his record for fights that went over 2 rounds in the Event of raging wolf 6: mayhem in the mist?It is not neccessary to use all the tables.
SELECT COUNT Urban, % FROM table WHERE Population (000) = 14685
CREATE TABLE INST, Here is a database schema( table schema);
How many percentage figures are given for the urban population when the total population number is 14685?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_60 WHERE date = "august 15, 2012"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the competition on August 15 2012?It is not neccessary to use all the tables.
SELECT prothrombin_time FROM table_1226250_1 WHERE condition = "Glanzmann's thrombasthenia"
CREATE TABLE INST, Here is a database schema( table schema);
How in prothrombin affected by glanzmann's thrombasthenia.It is not neccessary to use all the tables.
SELECT COUNT Prev FROM table WHERE Chng = +10 AND Rating > 2765
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the total number of Prev that has the Chng of +10, and the Rating larger than 2765?.It is not neccessary to use all the tables.
SELECT originalair_date FROM table_29494395_3 WHERE director = "Rowan Woods" AND writer = "Peter Duncan"
CREATE TABLE INST, Here is a database schema( table schema);
What is the original air date when the director is Rowan Woods and the writer is Peter Duncan?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Actual Title = archie bunker's place
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date for the actual title archie bunker's place?.It is not neccessary to use all the tables.
SELECT MIN(overall) FROM table_name_51 WHERE college = "arkansas" AND round > 3
CREATE TABLE INST, Here is a database schema( table schema);
What's the lowest Overall average that has a College of Arkansas and a Round larger than 3?It is not neccessary to use all the tables.
SELECT MAX(first_elected) FROM table_name_48 WHERE party = "republican" AND district = "louisiana 7"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest First Elected when Party is "Republican" and when District is "Louisiana 7"?It is not neccessary to use all the tables.
SELECT score FROM table_name_28 WHERE game > 32 AND points < 42 AND december > 19 AND record = "18–12–5"
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has a Game larger than 32 and Points smaller than 42 and a December larger than 19 and a Record of 18–12–5?It is not neccessary to use all the tables.
SELECT race_name FROM table_name_10 WHERE round = 6
CREATE TABLE INST, Here is a database schema( table schema);
Which race was in round 6?It is not neccessary to use all the tables.
SELECT Opponents FROM table WHERE Partnering = alessandro motti AND Date = 12 september 2005
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponents have a Partnering of alessandro motti, and a Date of 12 september 2005?.It is not neccessary to use all the tables.
SELECT T1.part_name, T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id
CREATE TABLE INST, Here is a database schema( table schema);
which parts have more than 2 faults? Show the part name and id.It is not neccessary to use all the tables.
SELECT name FROM table_name_43 WHERE position = "ot" AND round = 27
CREATE TABLE INST, Here is a database schema( table schema);
Which player had a position of OT during round 27?It is not neccessary to use all the tables.
SELECT COUNT(won_by) FROM table_21046399_3 WHERE county = "Milwaukee"
CREATE TABLE INST, Here is a database schema( table schema);
How many total figures are given for Milwaukee county?It is not neccessary to use all the tables.
SELECT fuel__trans FROM table_name_15 WHERE colour = "grey & red"
CREATE TABLE INST, Here is a database schema( table schema);
What sort of Fuel/Trans does the Grey & Red locomotive have?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Week = 6
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent was played in Week 6?.It is not neccessary to use all the tables.
SELECT MIN Wins FROM table WHERE Points = 90 AND Year < 1994
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest win number of the competitor who had 90 points before 1994?.It is not neccessary to use all the tables.
SELECT school FROM table_name_6 WHERE player = "maya moore"
CREATE TABLE INST, Here is a database schema( table schema);
Where did Maya Moore attend school?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Home team = queens park rangers
CREATE TABLE INST, Here is a database schema( table schema);
What is the score when the home team is queens park rangers?.It is not neccessary to use all the tables.
SELECT MIN("Division") FROM table_67404 WHERE "Playoffs" = 'did not qualify' AND "Open Cup" = 'did not qualify' AND "Year" = '2002'
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest division in the playoffs and did not qualify for the Open Cup in 2002?It is not neccessary to use all the tables.
SELECT mixed_doubles FROM table_name_2 WHERE year > 2011
CREATE TABLE INST, Here is a database schema( table schema);
Which mixed doubles happened later than 2011?It is not neccessary to use all the tables.
SELECT Finishing position FROM table WHERE Points awarded (Platinum) = 15
CREATE TABLE INST, Here is a database schema( table schema);
What was the range of finishing position for 15 awarded platinum points?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Leading scorer = tim duncan (27)
CREATE TABLE INST, Here is a database schema( table schema);
What score has tim duncan (27) as the leading scorer?.It is not neccessary to use all the tables.
SELECT Date made FROM table WHERE Type = 0-4-2
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of creation for the locomotive having a type of 0-4-2.It is not neccessary to use all the tables.
SELECT Artist FROM table WHERE Strip numbers = 3932-4031A
CREATE TABLE INST, Here is a database schema( table schema);
Who is the artist for strip numbers 3932-4031a?.It is not neccessary to use all the tables.