sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT committee FROM table_27050981_7 WHERE district = "46"
CREATE TABLE INST, Here is a database schema( table schema);
What committees do the district 46 members serve on?It is not neccessary to use all the tables.
SELECT Artist FROM table WHERE Percentage = 17.14%
CREATE TABLE INST, Here is a database schema( table schema);
What Artist had a Percentage of 17.14%?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_18 WHERE result = "5-0"
CREATE TABLE INST, Here is a database schema( table schema);
Which Venue has a Result of 5-0?It is not neccessary to use all the tables.
SELECT series FROM table_name_7 WHERE wins < 3 AND points = "9" AND podiums = 1
CREATE TABLE INST, Here is a database schema( table schema);
what is the series when wins is less than 3 points is 9 and podiums is 1?It is not neccessary to use all the tables.
SELECT "time" FROM table_204_835 WHERE "name" = 'ryosuke irie'
CREATE TABLE INST, Here is a database schema( table schema);
how long did it take ryosuke irie to finish ?It is not neccessary to use all the tables.
SELECT Current Club FROM table WHERE Player = Sacha Giffa
CREATE TABLE INST, Here is a database schema( table schema);
Name the current club for player sacha giffa.It is not neccessary to use all the tables.
SELECT MAX(total) FROM table_name_57 WHERE gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest total that has a gold less than 0?It is not neccessary to use all the tables.
SELECT COUNT(viewers) FROM table_27994983_8 WHERE draw = 2
CREATE TABLE INST, Here is a database schema( table schema);
How many items appear in the viewers column when the draw is 2?It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_79 WHERE home_team = "south melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the away team when the home team was south melbourne?It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_65 WHERE grid > 3 AND driver = "kimi räikkönen"
CREATE TABLE INST, Here is a database schema( table schema);
What time/retired has a Grid larger than 3 and a Driver of kimi räikkönen?It is not neccessary to use all the tables.
SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE ratingDate = "null"
CREATE TABLE INST, Here is a database schema( table schema);
Find the names of all reviewers who have ratings with a NULL value for the date.It is not neccessary to use all the tables.
SELECT Original Beechwood Bunny Tale / Source material FROM table WHERE Official # > 38 AND TF1 # > 50 AND English title = "sweet fabiola"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Original Beechwood Bunny Tale/Source material that has an Official # larger than 38, and a TF1 # larger than 50, and an English title of "sweet fabiola"?.It is not neccessary to use all the tables.
SELECT capacity FROM table_name_95 WHERE opened < 1937 AND region = "champagne-ardenne"
CREATE TABLE INST, Here is a database schema( table schema);
What capacity opened lessed than 1937 and is located in the region of champagne-ardenne?It is not neccessary to use all the tables.
SELECT player FROM table_name_22 WHERE score = 67 - 72 - 71 - 75 = 285
CREATE TABLE INST, Here is a database schema( table schema);
Which Player has a Score of 67-72-71-75=285?It is not neccessary to use all the tables.
SELECT COUNT(round) FROM table_13328239_4 WHERE score = "16-52"
CREATE TABLE INST, Here is a database schema( table schema);
How many rounds ended with a score of 16-52?It is not neccessary to use all the tables.
SELECT MAX(avg) FROM table_name_57 WHERE fuml < 0
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest average when Fuml was 0?It is not neccessary to use all the tables.
SELECT result FROM table_21058836_1 WHERE opponents = 26
CREATE TABLE INST, Here is a database schema( table schema);
The game the Bruins scored 26 what was the result?It is not neccessary to use all the tables.
SELECT rec FROM table_name_25 WHERE player = "jerel myers"
CREATE TABLE INST, Here is a database schema( table schema);
Which Rec has Jerel Myers as the Player?It is not neccessary to use all the tables.
SELECT location FROM table_name_23 WHERE name_of_mill = "moulin bertrand"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Location of the Moulin Bertrand Mill?It is not neccessary to use all the tables.
SELECT COUNT(gold) FROM table_name_26 WHERE silver < 3 AND total = 9 AND bronze < 1
CREATE TABLE INST, Here is a database schema( table schema);
How much Gold has a Silver smaller than 3 and a Total of 9 and a Bronze smaller than 1?It is not neccessary to use all the tables.
SELECT COUNT(lunar_blastoff_date) FROM table_1558077_8 WHERE mission_name = "Apollo 11"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of luna blastoff date for apollo 11It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Location = uk AND Release Date = december 1966
CREATE TABLE INST, Here is a database schema( table schema);
What is the name in the UK, with a release date of December 1966?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM Users WHERE Location LIKE '%India%'
CREATE TABLE INST, Here is a database schema( table schema);
Number of users from INDIA.It is not neccessary to use all the tables.
SELECT name FROM table_name_13 WHERE population = "810"
CREATE TABLE INST, Here is a database schema( table schema);
What name has a population of 810?It is not neccessary to use all the tables.
SELECT Defective Year FROM table WHERE Numbered Month = Eighth
CREATE TABLE INST, Here is a database schema( table schema);
What is the defective year for the eighth numbered month?.It is not neccessary to use all the tables.
SELECT MAX Rank-Final FROM table WHERE Apparatus = Floor Exercise
CREATE TABLE INST, Here is a database schema( table schema);
What was the maximum rank-final score on the floor exercise?.It is not neccessary to use all the tables.
SELECT Pole position FROM table WHERE Fastest lap = graham hill AND Winning driver = graham hill AND Date = 30 may
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the pole position for graham hill the fastest lap and winning driver of him on 30 may.It is not neccessary to use all the tables.
SELECT 1996 FROM table WHERE 1997 = 3r
CREATE TABLE INST, Here is a database schema( table schema);
What's the 1996 when 1997 is 3R?.It is not neccessary to use all the tables.
SELECT driver FROM table_name_21 WHERE tyre = "p" AND entrant = "officine alfieri maserati"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the driver of the Officine Alfieri Maserati with a Tyre of P?It is not neccessary to use all the tables.
SELECT MAX(points) FROM table_name_49 WHERE year < 1992 AND wins < 0
CREATE TABLE INST, Here is a database schema( table schema);
What are the highest points that have a year less than 1992 with wins less than 0?It is not neccessary to use all the tables.
SELECT team FROM table_name_31 WHERE game = "capital bowl iv"
CREATE TABLE INST, Here is a database schema( table schema);
What teams played in Capital Bowl IV?It is not neccessary to use all the tables.
SELECT venue FROM table_name_5 WHERE date = "8/6/03"
CREATE TABLE INST, Here is a database schema( table schema);
What venue is on the date of 8/6/03It is not neccessary to use all the tables.
SELECT poll_source FROM table_name_41 WHERE democrat = "hillary clinton" AND margin_of_error < 4.5 AND republican = "john mccain" AND date = "may 2-7, 2007"
CREATE TABLE INST, Here is a database schema( table schema);
Where is the poll source when Hillary clinton was the democrat john mccain was the republican and the margin of error was less than 4.5 on May 2-7 2007?It is not neccessary to use all the tables.
SELECT COUNT Location Attendance FROM table WHERE Date = April 24
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of location attendance for april 24.It is not neccessary to use all the tables.
SELECT record FROM table_name_32 WHERE score = "73-82"
CREATE TABLE INST, Here is a database schema( table schema);
What is the record of the 73-82 score?It is not neccessary to use all the tables.
SELECT MIN Pick # FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Lorne Henning has the lowest pick# of?.It is not neccessary to use all the tables.
SELECT points_for FROM table_name_52 WHERE tries_for = "52" AND try_bonus = "7"
CREATE TABLE INST, Here is a database schema( table schema);
How many points did the Club score that has a try bonus of 7 and 52 tries for ?It is not neccessary to use all the tables.
SELECT MIN Voter turnout FROM table WHERE BYuT = 50.7 AND OU-PSD < 36.8
CREATE TABLE INST, Here is a database schema( table schema);
What is the lower turnout that has a byut of 50.7 and an ou psd smaller than 36.8?.It is not neccessary to use all the tables.
SELECT total_time FROM table_name_44 WHERE margin = "04:02" AND driver = "coad"
CREATE TABLE INST, Here is a database schema( table schema);
How much time did Coad make when the margin was 04:02?It is not neccessary to use all the tables.
SELECT COUNT(driver) FROM table_2241101_1 WHERE manufacturer = "Toyota"
CREATE TABLE INST, Here is a database schema( table schema);
How many different drivers were there for the team when the manufacturer was Toyota?It is not neccessary to use all the tables.
SELECT reason FROM table_28898974_3 WHERE incumbent = "James Seaton"
CREATE TABLE INST, Here is a database schema( table schema);
When james seaton is the incumbent what is the reason?It is not neccessary to use all the tables.
SELECT lab.labname FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-53538')) AND DATETIME(lab.labresulttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY lab.labresulttime DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
what was the name of the laboratory test that patient 025-53538 has received for the last time last month?It is not neccessary to use all the tables.
SELECT Remittances 2010 FROM table WHERE Country = Nigeria
CREATE TABLE INST, Here is a database schema( table schema);
how many remittances in 2010 for nigeria?.It is not neccessary to use all the tables.
SELECT name FROM table_25794010_1 WHERE company = "company D"
CREATE TABLE INST, Here is a database schema( table schema);
Name the name for company dIt is not neccessary to use all the tables.
SELECT Audition Venue FROM table WHERE Guest Fourth Judge = Peninha
CREATE TABLE INST, Here is a database schema( table schema);
Where was the audition venue where Peninha was the guest fourth judge?.It is not neccessary to use all the tables.
SELECT Date FROM performance ORDER BY Attendance DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the performance with the highest number of attendees?It is not neccessary to use all the tables.
SELECT Nation FROM table WHERE Lead = alexandra bruckmiller
CREATE TABLE INST, Here is a database schema( table schema);
Which Nation has a Lead of alexandra bruckmiller?.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE PPV Buyrate = 775,000
CREATE TABLE INST, Here is a database schema( table schema);
Which Location has a PPV Buyrate of 775,000?.It is not neccessary to use all the tables.
SELECT SUM(championship) FROM table_name_4 WHERE league_cup > 1 AND name = "james henry"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total championships of James Henry that has a league cup more than 1?It is not neccessary to use all the tables.
SELECT SUM 6th Runner-up FROM table WHERE 2nd Runner-up > 4 AND Country/Territory = israel AND 4th Runner-up < 0
CREATE TABLE INST, Here is a database schema( table schema);
2nd Runner-up larger than 4, and a Country/Territory of israel, and a 4th Runner-up smaller than 0 has which sum of 6th Runner-up?.It is not neccessary to use all the tables.
SELECT COUNT(population) FROM table_name_73 WHERE official_name = "durham"
CREATE TABLE INST, Here is a database schema( table schema);
What's the population of durham parish?It is not neccessary to use all the tables.
SELECT result FROM table_name_79 WHERE date = "june 5"
CREATE TABLE INST, Here is a database schema( table schema);
Which Result that is on june 5?It is not neccessary to use all the tables.
SELECT position FROM table_11734041_11 WHERE years_for_rockets = "2006"
CREATE TABLE INST, Here is a database schema( table schema);
What is the position for the player that played in 2006?It is not neccessary to use all the tables.
SELECT Week 11 Nov 6 FROM table WHERE Week 10 Oct 30 = nebraska (7-1)
CREATE TABLE INST, Here is a database schema( table schema);
What was Week 11 when Week 10 had Nebraska (7-1)?.It is not neccessary to use all the tables.
SELECT 3:00 pm FROM table WHERE noon = local programs
CREATE TABLE INST, Here is a database schema( table schema);
What is on at 3pm on the channel that shows Local Programs at non?.It is not neccessary to use all the tables.
SELECT Président FROM table WHERE Party = union for a popular movement AND Départment (or collectivity) = hautes-alpes
CREATE TABLE INST, Here is a database schema( table schema);
Who is the president from the Union for a Popular Movement party that represents the Hautes-Alpes department?.It is not neccessary to use all the tables.
SELECT MAX 2009 FROM table WHERE 2006 < 280.4 AND 2007 < 2.2 AND 2010 < 3.5
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest 2009 value with a 2006 value smaller than 280.4, a 2007 less than 2.2, and a 2011 less than 3.5?.It is not neccessary to use all the tables.
SELECT points_against FROM table_name_68 WHERE losing_bonus = "3" AND tries_for = "84"
CREATE TABLE INST, Here is a database schema( table schema);
How many points against did the club with a losing bonus of 3 and 84 tries have?It is not neccessary to use all the tables.
SELECT MIN("Sexual abuse 1") FROM table_72688 WHERE "Conflict" = 'Burundi Civil War'
CREATE TABLE INST, Here is a database schema( table schema);
What is the sexual abuse rate where the conflict is the Burundi Civil War?It is not neccessary to use all the tables.
SELECT Regular Season FROM table WHERE Year = 2011
CREATE TABLE INST, Here is a database schema( table schema);
what are all the regular season where year is 2011.It is not neccessary to use all the tables.
SELECT COUNT Copyright Information FROM table WHERE Catalog Number = CAL04 / 0091037553546
CREATE TABLE INST, Here is a database schema( table schema);
how many times was the catalog number cal04 / 0091037553546?.It is not neccessary to use all the tables.
SELECT captain FROM table_name_23 WHERE year = "1774" AND guns = "14"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the captain for 1774 and guns of 14It is not neccessary to use all the tables.
SELECT away_team FROM table_name_25 WHERE venue = "mcg"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team at mcg?It is not neccessary to use all the tables.
SELECT score FROM table_name_62 WHERE record = "28–19"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game when the record was 28–19?It is not neccessary to use all the tables.
SELECT COUNT Goals Against FROM table WHERE Position = 4
CREATE TABLE INST, Here is a database schema( table schema);
How many Goals Against have a Position of 4?.It is not neccessary to use all the tables.
SELECT Home city FROM table WHERE Capacity < 18060 AND 2011-12 season = prima divisione/a play-off winners
CREATE TABLE INST, Here is a database schema( table schema);
What is the home city when the crowd is under 18060, and in the 2011/2012 season they were prima divisione/a play-off winners?.It is not neccessary to use all the tables.
SELECT "Result" FROM table_53437 WHERE "Award" = 'bafta tv awards'
CREATE TABLE INST, Here is a database schema( table schema);
Name the result for the bafta tv awardsIt is not neccessary to use all the tables.
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT outputevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM outputevents WHERE STRFTIME('%y', outputevents.charttime) >= '2100' GROUP BY outputevents.itemid) AS t1 WHERE t1.c1 <= 5)
CREATE TABLE INST, Here is a database schema( table schema);
tell me the top five output events that happened since 2100?It is not neccessary to use all the tables.
SELECT MAX Attendance FROM table WHERE Date = august 10, 1963 AND Week > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest attendance on august 10, 1963, and a week larger than 1?.It is not neccessary to use all the tables.
SELECT county FROM table_name_25 WHERE ihsaa_football_class = "aaaaa" AND mascot = "grizzly cubs"
CREATE TABLE INST, Here is a database schema( table schema);
What county has a football team in IHSAA class AAAAA and a school macot of the Grizzly Cubs?It is not neccessary to use all the tables.
SELECT place FROM table_name_28 WHERE to_par = "–10"
CREATE TABLE INST, Here is a database schema( table schema);
What place had a To par of –10?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Innings = 82
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the player if the innings is 82?.It is not neccessary to use all the tables.
SELECT SUM Total (kg) FROM table WHERE Bodyweight > 57.8 AND Clean & Jerk < 103
CREATE TABLE INST, Here is a database schema( table schema);
What is the total (kg when the bodyweight is more than 57.8, and the clean & jerk is less than 103?.It is not neccessary to use all the tables.
SELECT SUM Total seats FROM table WHERE Share of votes = 21.8%
CREATE TABLE INST, Here is a database schema( table schema);
When the share of votes equals 21.8%, what's the sum of the total amount of seats?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_70 WHERE pens = "0" AND tries = "1"
CREATE TABLE INST, Here is a database schema( table schema);
In which venue did 0 pens and 1 try occur?It is not neccessary to use all the tables.
SELECT interview_subject FROM table_name_42 WHERE date = "11-92"
CREATE TABLE INST, Here is a database schema( table schema);
What Interview subject was on a Date that is 11-92?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_35 WHERE cuts_made < 7 AND wins = 0 AND top_25 < 1
CREATE TABLE INST, Here is a database schema( table schema);
What tournament did Bill Rogers play in when he had less than 7 Cuts 0 Wins and less than 1 Top-25?It is not neccessary to use all the tables.
SELECT away_team FROM table_name_16 WHERE attendance = "76"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team when the attendance was 76?It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Decision = kolzig AND Date = november 5
CREATE TABLE INST, Here is a database schema( table schema);
Which home has a Decision of kolzig, and a Date of november 5?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE To par = 1 AND Player = seve ballesteros
CREATE TABLE INST, Here is a database schema( table schema);
What is Country, when To par is "1", and when Player is "Seve Ballesteros"?.It is not neccessary to use all the tables.
SELECT player FROM table_name_3 WHERE position = "running back"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the running back pick?It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_39 WHERE away_team = "melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
What is the visiting team of Melbourne's score?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = mcg
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the game when the venue is MCG?.It is not neccessary to use all the tables.
SELECT Album FROM table WHERE Bass = jay bentley AND Drums = bobby schayer
CREATE TABLE INST, Here is a database schema( table schema);
Which album had Jay Bentley on bass and Bobby Schayer on drums?.It is not neccessary to use all the tables.
SELECT 153 AS kg FROM table_name_27 WHERE world_record = "clean & jerk"
CREATE TABLE INST, Here is a database schema( table schema);
Who has the world record of 153kg in the clean & jerk?It is not neccessary to use all the tables.
SELECT ship FROM table_name_48 WHERE pennant_number = "h55"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the ship that had a Pennant number of h55?It is not neccessary to use all the tables.
SELECT AVG Bronze FROM table WHERE Silver = 2 AND Total < 5
CREATE TABLE INST, Here is a database schema( table schema);
Which Bronze has a Silver of 2, and a Total smaller than 5?.It is not neccessary to use all the tables.
SELECT "Writer" FROM table_22286 WHERE "Title" = 'Episode 4'
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote 'episode 4'?It is not neccessary to use all the tables.
SELECT Tie no FROM table WHERE Home team = hull city
CREATE TABLE INST, Here is a database schema( table schema);
What is Tie no, when Home Team is "Hull City"?.It is not neccessary to use all the tables.
SELECT Platform / OS FROM table WHERE Name = altova umodel
CREATE TABLE INST, Here is a database schema( table schema);
Which Platform / OS has a Name of altova umodel?.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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Bone marrow replaced by transplant" AND prescriptions.route = "NG"
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients whose diagnoses long title is bone marrow replaced by transplant and drug route is ng?It is not neccessary to use all the tables.
SELECT Number & Name FROM table WHERE Description = gresley rb AND Date < 1937
CREATE TABLE INST, Here is a database schema( table schema);
Which number and name has the description Gresley RB and a date before 1937?.It is not neccessary to use all the tables.
SELECT Nominee FROM table WHERE Award = drama desk award AND Result = won AND Category = outstanding choreography
CREATE TABLE INST, Here is a database schema( table schema);
Which nominee won the Drama Desk Award for outstanding choreography?.It is not neccessary to use all the tables.
SELECT place FROM table_168482_1 WHERE _percentage_of_popular_vote = "0.86%"
CREATE TABLE INST, Here is a database schema( table schema);
What place did the party finish in the year when they earned 0.86% of the vote?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Partner = tathiana garbin
CREATE TABLE INST, Here is a database schema( table schema);
what score is it with tathiana garbin as partner?.It is not neccessary to use all the tables.
SELECT FIRST_NAME, SALARY FROM employees ORDER BY SALARY
CREATE TABLE INST, Here is a database schema( table schema);
You can return a bar chart with employees' first names and their salaries, display by the Y in ascending.It is not neccessary to use all the tables.
SELECT MAX(draws) FROM table_name_8 WHERE points = 31 AND wins > 12 AND goal_difference < 11
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest draws that have 31 for points wins greater than 12 with a goal difference less than 11?It is not neccessary to use all the tables.
SELECT Official_Name FROM city WHERE Population > 1500 OR Population < 500
CREATE TABLE INST, Here is a database schema( table schema);
Find the official names of cities with population bigger than 1500 or smaller than 500.It is not neccessary to use all the tables.
SELECT score_in_the_final FROM table_name_63 WHERE date = "january 12, 2013"
CREATE TABLE INST, Here is a database schema( table schema);
Name the score in the final for january 12 2013It is not neccessary to use all the tables.
SELECT MIN Pick FROM table WHERE Player = terry jones
CREATE TABLE INST, Here is a database schema( table schema);
What's terry jones' lowest pick?.It is not neccessary to use all the tables.