sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT share FROM table_11238597_4 WHERE air_date = "December 10, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
What was the share for the episode with the air date december 10 2008?It is not neccessary to use all the tables.
SELECT us_viewers__million_ FROM table_22347090_5 WHERE production_code = "3X6706"
CREATE TABLE INST, Here is a database schema( table schema);
Name the viewers for production code being 3x6706It is not neccessary to use all the tables.
SELECT "Date" FROM table_26615 WHERE "Final Score" = 'L 28–15'
CREATE TABLE INST, Here is a database schema( table schema);
Name the date for l 28 15It is not neccessary to use all the tables.
SELECT Result FROM table WHERE First elected = 1960
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the election when someone was first elected in 1960?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE CERCLIS ID = prd980512362
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the site with a CERCLIS ID of prd980512362?.It is not neccessary to use all the tables.
SELECT MIN(series__number) FROM table_23286722_1 WHERE written_by = "David E. Kelley & Jill Goldsmith"
CREATE TABLE INST, Here is a database schema( table schema);
Name least series number for writers david e. kelley & jill goldsmithIt is not neccessary to use all the tables.
SELECT home FROM table_name_38 WHERE date = "november 16, 1946"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Home team on November 16 1946?It is not neccessary to use all the tables.
SELECT SUM Ranking FROM table WHERE Nationality = england AND Goals > 53
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of ranking when the nationalits is England with more than 53 goals?.It is not neccessary to use all the tables.
SELECT COUNT(losses) FROM table_name_51 WHERE south_west_dfl = "coleraine" AND against < 891
CREATE TABLE INST, Here is a database schema( table schema);
How many Losses have South West DFL of coleraine and an Against smaller than 891?It is not neccessary to use all the tables.
SELECT Airport FROM table WHERE City = tokyo AND ICAO = rjtt
CREATE TABLE INST, Here is a database schema( table schema);
Which airport is in Tokyo and has an ICAO of rjtt?.It is not neccessary to use all the tables.
SELECT Area (km 2 ) FROM table WHERE Population (2010) = 153085
CREATE TABLE INST, Here is a database schema( table schema);
What is the area (km2) for the place with a 2010 population of 153085?.It is not neccessary to use all the tables.
SELECT MAX Points FROM table WHERE Equipment = zabel-wsp AND Position > 7
CREATE TABLE INST, Here is a database schema( table schema);
What were highest points received from someone using a zabel-wsp with a position greater than 7?.It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Score = 6–4, 6–1
CREATE TABLE INST, Here is a database schema( table schema);
What was the court surface when the score was 6–4, 6–1?.It is not neccessary to use all the tables.
SELECT original_air_date FROM table_18335117_2 WHERE production_code = 102
CREATE TABLE INST, Here is a database schema( table schema);
When did the episode first air that had a production code of 102?It is not neccessary to use all the tables.
SELECT MAX(lane) FROM table_name_16 WHERE name = "nisha millet"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest lane for nisha millet?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Top division titles > 0 AND Founded > 1927 AND Stadium = miguel grau
CREATE TABLE INST, Here is a database schema( table schema);
Which team has Top division titles larger than 0, a Founded larger than 1927, and a Stadium of miguel grau?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Prize = $2,434,061
CREATE TABLE INST, Here is a database schema( table schema);
Who won the event with a top prize of $2,434,061?.It is not neccessary to use all the tables.
SELECT result FROM table_name_26 WHERE date = "8 october 1961"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result on 8 October 1961?It is not neccessary to use all the tables.
SELECT Winning driver FROM table WHERE Race Name = vii rand grand prix
CREATE TABLE INST, Here is a database schema( table schema);
What driver won the VII Rand Grand Prix?.It is not neccessary to use all the tables.
SELECT name FROM table_name_9 WHERE opened__closing_date_if_defunct_ = "1995" AND length = "miles (m)" AND state = "illinois"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Name with an Opened (closing date if defunct) of 1995 and has a Length of miles (m), in Illinois?It is not neccessary to use all the tables.
SELECT SUM Top-5 FROM table WHERE Events = 15 AND Top-25 < 6
CREATE TABLE INST, Here is a database schema( table schema);
In the tournament that has 15 events, and less than 6 top-25's, how many top-5's did he have?.It is not neccessary to use all the tables.
SELECT Broadcaster FROM table WHERE Opposition = Melbourne
CREATE TABLE INST, Here is a database schema( table schema);
Which network broadcast the game when the Western Bulldogs played melbourne?.It is not neccessary to use all the tables.
SELECT description FROM table_name_58 WHERE date = 1911
CREATE TABLE INST, Here is a database schema( table schema);
What is the description where the date is 1911?It is not neccessary to use all the tables.
SELECT Join_Year FROM pilot ORDER BY Rank LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the joined year of the pilot of the highest rank?It is not neccessary to use all the tables.
SELECT COUNT Blocks FROM table WHERE Assists = 21
CREATE TABLE INST, Here is a database schema( table schema);
When 21 is the number of assists how many sets of blocks are there?.It is not neccessary to use all the tables.
SELECT original_air_date FROM table_name_87 WHERE written_by = "boyd hale" AND title = "julie gets validated"
CREATE TABLE INST, Here is a database schema( table schema);
When did Boyd Hale's Julie gets Validated originally air?It is not neccessary to use all the tables.
SELECT reunion_bmi FROM table_28654454_5 WHERE contestant = "Pinky"
CREATE TABLE INST, Here is a database schema( table schema);
What was pinky's bmi at the reunion?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Directed by = John Terlesky
CREATE TABLE INST, Here is a database schema( table schema);
Name the title that was directed by john terlesky.It is not neccessary to use all the tables.
SELECT Women's doubles FROM table WHERE Women's singles = michaela ritter AND Men's singles = andreas radl
CREATE TABLE INST, Here is a database schema( table schema);
Women's singles of michaela ritter, and a Men's singles of andreas radl has what women's doubles?.It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Opponent = ivo klec AND Score = 6–3, 6–3
CREATE TABLE INST, Here is a database schema( table schema);
What is the Surface of the court against Ivo Klec with a Score of 6–3, 6–3?.It is not neccessary to use all the tables.
SELECT captain FROM table_24039173_1 WHERE location = "Chaguaramas"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the captain in Chaguaramas?It is not neccessary to use all the tables.
SELECT miles__km_ FROM table_2220432_1 WHERE average_speed__mph_ = "136.117"
CREATE TABLE INST, Here is a database schema( table schema);
What was the miles (km) for the race that had an average speed of 136.117 MPH?It is not neccessary to use all the tables.
SELECT Japanese Title FROM table WHERE TV Station = nhk AND Average Ratings = 9.2%
CREATE TABLE INST, Here is a database schema( table schema);
What Japanese show on NHK had average ratings of 9.2%?.It is not neccessary to use all the tables.
SELECT roomName, COUNT(roomName) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE FirstName LIKE '%ROY%' GROUP BY roomName ORDER BY COUNT(roomName) DESC
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of rooms booked by some customers whose first name contains ROY, and count them by a bar chart, list by the Y-axis in descending.It is not neccessary to use all the tables.
SELECT Main presenter FROM table WHERE Year premiered = 2011
CREATE TABLE INST, Here is a database schema( table schema);
Who is every main presenter for the year 2011?.It is not neccessary to use all the tables.
SELECT Plautdietsch FROM table WHERE Dutch = maken
CREATE TABLE INST, Here is a database schema( table schema);
Which Plautdietsch has Dutch of maken?.It is not neccessary to use all the tables.
SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(DEPARTMENT_ID) DESC
CREATE TABLE INST, Here is a database schema( table schema);
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the average of department_id bin hire_date by weekday, display Y-axis in desc order.It is not neccessary to use all the tables.
SELECT COUNT Lost FROM table WHERE Played < 8
CREATE TABLE INST, Here is a database schema( table schema);
How many lost stats have a played number of less than 8?.It is not neccessary to use all the tables.
SELECT band FROM table_name_76 WHERE ratio = "9/9"
CREATE TABLE INST, Here is a database schema( table schema);
Which Band has a Ratio of 9/9?It is not neccessary to use all the tables.
SELECT theme FROM table_name_59 WHERE week = "top 11"
CREATE TABLE INST, Here is a database schema( table schema);
What was the theme for the Top 11 week?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 WHERE demographic.days_stay > "6" AND diagnoses.icd9_code = "5849"
CREATE TABLE INST, Here is a database schema( table schema);
specify the number of patients with icd9 code 5849 who had a stay at hospital for more than 6 daysIt is not neccessary to use all the tables.
SELECT drawn FROM table_13741576_4 WHERE club = "Llandaff RFC"
CREATE TABLE INST, Here is a database schema( table schema);
Name the drawn for llandaff rfcIt is not neccessary to use all the tables.
SELECT tonnage FROM table_name_69 WHERE date = 1914
CREATE TABLE INST, Here is a database schema( table schema);
What is the listed Tonnage for the Date of 1914?It is not neccessary to use all the tables.
SELECT MAX # FROM table
CREATE TABLE INST, Here is a database schema( table schema);
How many players are on this list?.It is not neccessary to use all the tables.
SELECT Side FROM table WHERE Inscription = orcagna
CREATE TABLE INST, Here is a database schema( table schema);
Which side has Orcagna as the inscription?.It is not neccessary to use all the tables.
SELECT to_par FROM table_name_18 WHERE place = "1"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE TO PAR FOR NUMBER 1?It is not neccessary to use all the tables.
SELECT team FROM table_name_95 WHERE pos = "1st" AND year = 2011
CREATE TABLE INST, Here is a database schema( table schema);
Which team has finished in 1st place in 2011?It is not neccessary to use all the tables.
SELECT Height FROM table WHERE Stories > 22 AND Built = 2009
CREATE TABLE INST, Here is a database schema( table schema);
What is the height of the home with stories greater than 22 and built in 2009?.It is not neccessary to use all the tables.
SELECT Teams FROM table WHERE Season = 1950-51
CREATE TABLE INST, Here is a database schema( table schema);
what is the teams for season 1950-51?.It is not neccessary to use all the tables.
SELECT type FROM table_name_54 WHERE title = "ruler"
CREATE TABLE INST, Here is a database schema( table schema);
What type of state did the ruler have a title?It is not neccessary to use all the tables.
SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = "Maudie Kertzmann"
CREATE TABLE INST, Here is a database schema( table schema);
What is the address content of the customer named "Maudie Kertzmann"?It is not neccessary to use all the tables.
SELECT COUNT(series__number) FROM table_18217753_1 WHERE us_viewers__millions_ = "23.93"
CREATE TABLE INST, Here is a database schema( table schema);
How many series had viewers totaling 23.93 million?It is not neccessary to use all the tables.
SELECT COUNT Interview FROM table WHERE Country = Virginia
CREATE TABLE INST, Here is a database schema( table schema);
How many interviews were there for Miss Virginia?.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Date = October 19
CREATE TABLE INST, Here is a database schema( table schema);
Which team raced on October 19?.It is not neccessary to use all the tables.
SELECT "Distance" FROM table_58023 WHERE "Winning horse" = 'summer doldrums'
CREATE TABLE INST, Here is a database schema( table schema);
What distance did the winning horse run in the Summer Doldrums.It is not neccessary to use all the tables.
SELECT Start FROM table WHERE Rank = 7 AND Laps > 100
CREATE TABLE INST, Here is a database schema( table schema);
What was the start result with a Rank of 7 and more than 100 laps?.It is not neccessary to use all the tables.
SELECT name FROM table_name_59 WHERE overall > 132 AND round = 12
CREATE TABLE INST, Here is a database schema( table schema);
What is Name when Overall is greater than 132 and when Round is 12?It is not neccessary to use all the tables.
SELECT date_in_service FROM table_24837750_1 WHERE county = "Musselshell"
CREATE TABLE INST, Here is a database schema( table schema);
When did the wind farm in Musselshell started service?It is not neccessary to use all the tables.
SELECT MAX For Prohibition FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the max for prohibition..It is not neccessary to use all the tables.
SELECT MIN(silver) FROM table_name_26 WHERE rank = 9 AND bronze < 2
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the lowest silver for rank of 9 and bronze less than 2It is not neccessary to use all the tables.
SELECT venue FROM table_name_83 WHERE home_team = "st kilda"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the venue where home team st kilda played?It is not neccessary to use all the tables.
SELECT COUNT(time) FROM table_name_8 WHERE rank > 29 AND athlete = "barbara pierre" AND heat < 5
CREATE TABLE INST, Here is a database schema( table schema);
how many times is the rank more than 29 the athlete is barbara pierre and the heat less than 5?It is not neccessary to use all the tables.
SELECT COUNT(constr) FROM table_12707313_2 WHERE first_win = "1978 Brazilian Grand Prix"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of constr with the first win at the 1978 brazilian grand prixIt is not neccessary to use all the tables.
SELECT Written by FROM table WHERE Directed by = Pam Cooke & Jansen Yee
CREATE TABLE INST, Here is a database schema( table schema);
Name who wrote the episode directed by pam cooke & jansen yee.It is not neccessary to use all the tables.
SELECT AVG Base Pairs FROM table WHERE Genes = 784
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of base pairs with 784 genes?.It is not neccessary to use all the tables.
SELECT name FROM table_name_46 WHERE best = "58.403"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the name with best of 58.403It is not neccessary to use all the tables.
SELECT rank FROM table_name_81 WHERE time = "5:56.73"
CREATE TABLE INST, Here is a database schema( table schema);
Which Rank has a Time of 5:56.73?It is not neccessary to use all the tables.
SELECT NCAA Tourn. Appearances FROM table WHERE Conference Titles > 0 AND NCAA Titles = 0 AND Coach = lou watson
CREATE TABLE INST, Here is a database schema( table schema);
Which NCAA Tournament Appearances have Conference Titles that are larger than 0, NCAA Titles of 0, and were coached by Lou Watson?.It is not neccessary to use all the tables.
SELECT country FROM table_name_70 WHERE iata = "gzt"
CREATE TABLE INST, Here is a database schema( table schema);
Which country has an IATA of gzt?It is not neccessary to use all the tables.
SELECT tries_against FROM table_13564637_3 WHERE lost = "4"
CREATE TABLE INST, Here is a database schema( table schema);
what are the tries where the game was lost by 4?It is not neccessary to use all the tables.
SELECT SUM Horsepowers FROM table WHERE Year < 1974 AND Tonnage = 4437
CREATE TABLE INST, Here is a database schema( table schema);
How many Horsepowers have a Year smaller than 1974, and a Tonnage of 4437?.It is not neccessary to use all the tables.
SELECT Club FROM table WHERE Played = 19 AND Lost = 14
CREATE TABLE INST, Here is a database schema( table schema);
What club has a played number of 19, and the lost of 14?.It is not neccessary to use all the tables.
SELECT COUNT Upstream FROM table WHERE Downstream = 20 Mbit/s AND Bandwidth = 40 GB
CREATE TABLE INST, Here is a database schema( table schema);
How many upstream speeds are there for downstream of 20 mbit/s and bandwidth of 40 gb?.It is not neccessary to use all the tables.
SELECT MAX(wins) FROM table_name_76 WHERE byes > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of wins when there are more than 2 byes?It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_41 WHERE away_team = "carlton"
CREATE TABLE INST, Here is a database schema( table schema);
What was the away score for Carlton?It is not neccessary to use all the tables.
SELECT winning_driver FROM table_1137695_3 WHERE fastest_lap = "Michael Schumacher" AND pole_position = "Michael Schumacher"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winning driver when Michael Schumacher had the pole and the fastest lap?It is not neccessary to use all the tables.
SELECT original_air_date FROM table_name_55 WHERE production_code = "2395120"
CREATE TABLE INST, Here is a database schema( table schema);
What was the original air date of the episode with production code 2395120?It is not neccessary to use all the tables.
SELECT date FROM table_name_23 WHERE surface = "clay" AND score = "6–1, 6–4"
CREATE TABLE INST, Here is a database schema( table schema);
What day was the surface clay and the score 6–1 6–4?It is not neccessary to use all the tables.
SELECT SUM(issue_price) FROM table_name_29 WHERE year = 2008
CREATE TABLE INST, Here is a database schema( table schema);
What was the issue price in the year 2008?It is not neccessary to use all the tables.
SELECT pro_year_s_ FROM table_name_79 WHERE team = "cincinnati royals"
CREATE TABLE INST, Here is a database schema( table schema);
What is Pro Year(s) when Team is Cincinnati Royals?It is not neccessary to use all the tables.
SELECT Driver FROM table WHERE Grid = 18
CREATE TABLE INST, Here is a database schema( table schema);
Who is the driver when the grid is 18?.It is not neccessary to use all the tables.
SELECT original_air_date FROM table_2618113_1 WHERE production_code = "K0120"
CREATE TABLE INST, Here is a database schema( table schema);
What was the airdate of k0120?It is not neccessary to use all the tables.
SELECT COUNT Greek Designation FROM table WHERE City = Tampa
CREATE TABLE INST, Here is a database schema( table schema);
how mnay greek designation in tampa.It is not neccessary to use all the tables.
SELECT city_of_license FROM table_name_82 WHERE call_sign = "k293bg"
CREATE TABLE INST, Here is a database schema( table schema);
What city of license has a value of k293bg for its call sign?It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Maryland = Easton LL Easton
CREATE TABLE INST, Here is a database schema( table schema);
In what year did Easton LL Easton play in Maryland?.It is not neccessary to use all the tables.
SELECT COUNT Attendance FROM table WHERE Score = 4-6
CREATE TABLE INST, Here is a database schema( table schema);
How many people attended the game that ended 4-6?.It is not neccessary to use all the tables.
SELECT SUM Grid FROM table WHERE Driver = jack brabham AND Laps > 65
CREATE TABLE INST, Here is a database schema( table schema);
What is the grid for Jack Brabham with more than 65 laps?.It is not neccessary to use all the tables.
SELECT Horizontal 0 a FROM table WHERE Name = ι€š TONG
CREATE TABLE INST, Here is a database schema( table schema);
Name the horizontal 0 for ι€š tong.It is not neccessary to use all the tables.
SELECT COUNT Writer FROM table WHERE Episode # = 06
CREATE TABLE INST, Here is a database schema( table schema);
How many writers where there for episode # 06?.It is not neccessary to use all the tables.
SELECT MAX Production code FROM table
CREATE TABLE INST, Here is a database schema( table schema);
which is the biggest production code?.It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_11 WHERE crowd > 30 OFFSET 100
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team score when the crowd was larger than 30100?It is not neccessary to use all the tables.
SELECT venue FROM table_name_89 WHERE away_team = "hawthorn"
CREATE TABLE INST, Here is a database schema( table schema);
Where did Hawthorn play as the away team?It is not neccessary to use all the tables.
SELECT try_bonus FROM table_12886178_4 WHERE tries_against = "83"
CREATE TABLE INST, Here is a database schema( table schema);
What's the try bonus count for the club whose tries against count is 83?It is not neccessary to use all the tables.
SELECT MIN(enrollment) FROM table_name_8 WHERE mascot = "trojans"
CREATE TABLE INST, Here is a database schema( table schema);
What's the least enrolled when the mascot was the Trojans?It is not neccessary to use all the tables.
SELECT nor_2 FROM table_name_25 WHERE nor_1 = "nor 1"
CREATE TABLE INST, Here is a database schema( table schema);
What is the nor 2 that has nor 1 as nor 1?It is not neccessary to use all the tables.
SELECT SUM Against FROM table WHERE Opposing Team = currie cup "b" section
CREATE TABLE INST, Here is a database schema( table schema);
What was the sum of the numbers listed under against when currie cup "b" section was the opposing team?.It is not neccessary to use all the tables.
SELECT Visitor FROM table WHERE Venue = axa sports center AND Round = 20
CREATE TABLE INST, Here is a database schema( table schema);
Who is the visitor at the axa sports center in round 20?.It is not neccessary to use all the tables.
SELECT * FROM Posts WHERE AcceptedAnswerId IS NULL LIMIT 10
CREATE TABLE INST, Here is a database schema( table schema);
Meta questions answered before Monica.It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_35 WHERE venue = "barcelona, spain"
CREATE TABLE INST, Here is a database schema( table schema);
When is the earliest year for it is in barcelona spain?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Away team score = 18.18 (126)
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team when the away team scored 18.18 (126)?.It is not neccessary to use all the tables.