sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT corporate_name FROM table_28367242_1 WHERE area__km²_ = "15.63"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the corporation with an area of 15.63 km?It is not neccessary to use all the tables.
SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%PreMajor%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM progra...
CREATE TABLE INST, Here is a database schema( table schema);
Of the classes that fill the PreMajor requirement , which one is the easiest ?It is not neccessary to use all the tables.
SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "cumin"
CREATE TABLE INST, Here is a database schema( table schema);
What is the unit of measurement of product named "cumin"?It is not neccessary to use all the tables.
SELECT winning_driver FROM table_name_25 WHERE race = "dutch grand prix"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winning driver for the Dutch Grand Prix?It is not neccessary to use all the tables.
SELECT time FROM table_name_39 WHERE lane = 7
CREATE TABLE INST, Here is a database schema( table schema);
What was the time of the person in lane 7?It is not neccessary to use all the tables.
SELECT MAX Grid FROM table WHERE Time/Retired = 52:52.1881
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest numbered grid with a time or retired time of 52:52.1881?.It is not neccessary to use all the tables.
SELECT SUM Draw FROM table WHERE Song = "beautiful inside" AND Place > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the draw for the song "Beautiful Inside" which has a place larger than 2?.It is not neccessary to use all the tables.
SELECT Loss FROM table WHERE Record = 67-51
CREATE TABLE INST, Here is a database schema( table schema);
Which loss has a Record of 67-51?.It is not neccessary to use all the tables.
SELECT Nominated work FROM table WHERE Year = 1997
CREATE TABLE INST, Here is a database schema( table schema);
Which Nominated work has a Year of 1997?.It is not neccessary to use all the tables.
SELECT Dates FROM table WHERE Location = Hokkaidō AND Prize fund ( ¥ ) = 150000000
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the tournament at Hokkaidō with prize of ¥150000000?.It is not neccessary to use all the tables.
SELECT MAX Losses FROM table WHERE Draws > 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Losses have Draws larger than 0?.It is not neccessary to use all the tables.
SELECT AVG(total) FROM table_name_69 WHERE to_par > 9 AND player = "arnold palmer"
CREATE TABLE INST, Here is a database schema( table schema);
How many strokes for arnold palmer with a to par of greater than 9?It is not neccessary to use all the tables.
SELECT Call sign FROM table WHERE Virtual channel = 33.7
CREATE TABLE INST, Here is a database schema( table schema);
What is channel 33.7's official call sign?.It is not neccessary to use all the tables.
SELECT T1.Height FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Injured DESC
CREATE TABLE INST, Here is a database schema( table schema);
What are the heights of perpetrators in descending order of the number of people they injured?It is not neccessary to use all the tables.
SELECT g_hager FROM table_name_49 WHERE e_greenberg = "266 (14%)"
CREATE TABLE INST, Here is a database schema( table schema);
Name the G. Hager of E. Greenberg of 266 (14%)?It is not neccessary to use all the tables.
SELECT crowd FROM table_name_76 WHERE away_team = "north melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
How big was the crowd in game that featured the visiting team of north melbourne?It is not neccessary to use all the tables.
SELECT MIN("No.") FROM table_26310 WHERE "Rating" = '4.2'
CREATE TABLE INST, Here is a database schema( table schema);
What number episode had a 4.2 rating?It is not neccessary to use all the tables.
SELECT year_s__won FROM table_name_40 WHERE total = 145 AND country = "united states"
CREATE TABLE INST, Here is a database schema( table schema);
What is Year(s) Won when Total is "145" and when Country is "United States"?It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Attendance > 41,000 AND H / A = a AND Result F–A = 1–2
CREATE TABLE INST, Here is a database schema( table schema);
Which round has Attendance larger than 41,000, a H/A of A, and a Result F–A of 1–2?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_75 WHERE venue = "toyota stadium"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent at toyota stadium?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_25 WHERE game = 5
CREATE TABLE INST, Here is a database schema( table schema);
Name the opponent for game 5It is not neccessary to use all the tables.
SELECT Womens singles FROM table WHERE Mens singles = Marc Zwiebler
CREATE TABLE INST, Here is a database schema( table schema);
Who won the womens singles when Marc Zwiebler won the men's singles?.It is not neccessary to use all the tables.
SELECT COUNT Tonnage GRT FROM table WHERE Type = cargo ship AND Date = 4 feb 16
CREATE TABLE INST, Here is a database schema( table schema);
what is the total tonnage grt of the cargo ship(s) sunk or captured on 4 feb 16?.It is not neccessary to use all the tables.
SELECT Year(s) Won FROM table WHERE Country = united states AND Total > 152
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Year(s) Won that has the Country of united states, and the Total larger than 152?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE School/Country = temple
CREATE TABLE INST, Here is a database schema( table schema);
Which player is associated with Temple?.It is not neccessary to use all the tables.
SELECT original_us_air_date FROM table_27622417_1 WHERE prod_code = "415"
CREATE TABLE INST, Here is a database schema( table schema);
when was the premiere of the episode whose production code is 415?It is not neccessary to use all the tables.
SELECT facid FROM faculty EXCEPT SELECT advisor FROM student
CREATE TABLE INST, Here is a database schema( table schema);
Show ids for the faculty members who don't advise any student.It is not neccessary to use all the tables.
SELECT MIN("Gain") FROM table_65670 WHERE "Name" = 'toben opurum' AND "Avg/G" < '54.1'
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest gain that has toben opurum as the name, with an avg/g less than 54.1?It is not neccessary to use all the tables.
SELECT COUNT(opponents) FROM table_name_34 WHERE result = "loss" AND game < 49 AND nuggets_points = 108
CREATE TABLE INST, Here is a database schema( table schema);
How many Opponents have a Result of loss and a Game smaller than 49 and Nuggets points of 108?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Record = 8–3–1
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game when the Avalanche had a record of 8–3–1?.It is not neccessary to use all the tables.
SELECT SUM(overall) FROM table_name_86 WHERE position = "wr" AND college = "alberta"
CREATE TABLE INST, Here is a database schema( table schema);
How much Overall has a Position of wr and a College of alberta?It is not neccessary to use all the tables.
SELECT MIN Place FROM table WHERE Draw > 3 AND Points = 8
CREATE TABLE INST, Here is a database schema( table schema);
Name the least place for draw more than 3 and points of 8.It is not neccessary to use all the tables.
SELECT Original airdate FROM table WHERE Viewership = 4.77 million
CREATE TABLE INST, Here is a database schema( table schema);
What was the first airdate with a viewership of 4.77 million?.It is not neccessary to use all the tables.
SELECT civilian_deaths FROM table_name_21 WHERE military_deaths = "231"
CREATE TABLE INST, Here is a database schema( table schema);
How many civilians died in the conflict that left 231 members of the military dead?It is not neccessary to use all the tables.
SELECT athlete FROM table_name_94 WHERE notes = "sc/d" AND rank = 6
CREATE TABLE INST, Here is a database schema( table schema);
Which athlete had a rank of 6 and notes of sc/d?It is not neccessary to use all the tables.
SELECT AVG Lost FROM table WHERE Name = ec amberg (n) AND Position < 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Lost that has a Name of ec amberg (n), and a Position smaller than 4?.It is not neccessary to use all the tables.
SELECT played_by FROM table_2933761_1 WHERE occupation = "Mathematics Student"
CREATE TABLE INST, Here is a database schema( table schema);
Who played the mathematics student?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Area = kelston AND Roll < 322
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the name for kelston with roll less than 322.It is not neccessary to use all the tables.
SELECT Points against FROM table WHERE Won = 11
CREATE TABLE INST, Here is a database schema( table schema);
what's the points against with won being 11.It is not neccessary to use all the tables.
SELECT Role FROM table WHERE Team = platense municipal zacatecoluca AND Tournament = torneo fraternidad/uncaf club championship
CREATE TABLE INST, Here is a database schema( table schema);
During the Tournament of Torneo Fraternidad/UNCAF Club championship, what is the Role of the Platense Municipal Zacatecoluca Team?.It is not neccessary to use all the tables.
SELECT M–R Romaja FROM table WHERE Region = Kwanbuk
CREATE TABLE INST, Here is a database schema( table schema);
Name the m r romaja for kwanbuk.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Home team score = 17.18 (120)
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game held where the home team scored 17.18 (120)?.It is not neccessary to use all the tables.
SELECT country FROM table_name_14 WHERE name = "dyer"
CREATE TABLE INST, Here is a database schema( table schema);
Which country is Dyer from?It is not neccessary to use all the tables.
SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID
CREATE TABLE INST, Here is a database schema( table schema);
For all employees who have the letters D or S in their first name, show me about the distribution of job_id and the average of manager_id , and group by attribute job_id in a bar chart, rank bar from low to high order.It is not neccessary to use all the tables.
SELECT MIN(fa_cup) FROM table_name_22 WHERE player = "mohd faizal desa" AND total > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest FA cup that has mohd faizal desa as the player with a total greater than 0?It is not neccessary to use all the tables.
SELECT Gold FROM table WHERE Total > 4
CREATE TABLE INST, Here is a database schema( table schema);
How many gold medals correspond with a total over 4?.It is not neccessary to use all the tables.
SELECT blocks FROM table_24912693_4 WHERE minutes = 893
CREATE TABLE INST, Here is a database schema( table schema);
How many blocks does the player who played 893 minutes have?It is not neccessary to use all the tables.
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (((flight.departure_time BETWEEN 1200 AND 1800) OR (flight.departure_time BETWEEN 1800 AND 2200)) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.c...
CREATE TABLE INST, Here is a database schema( table schema);
what flights depart from CHARLOTTE to NEWARK that leave in the afternoon or leave in the eveningIt is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Partner = erika sema
CREATE TABLE INST, Here is a database schema( table schema);
Which tournament had a partner of Erika Sema?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "SEPSIS" AND demographic.admityear < "2162"
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients whose primary disease is sepsis and admission year is less than 2162?It is not neccessary to use all the tables.
SELECT COUNT U.S. viewers (millions) FROM table WHERE Directed by = Rob Bailey
CREATE TABLE INST, Here is a database schema( table schema);
How many entries are there for u.s. viewers (millions) for the episode directed by rob bailey?.It is not neccessary to use all the tables.
SELECT cast FROM table_name_80 WHERE director = "b. reeves eason and joseph kane"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the cast for b. reeves eason and joseph kaneIt is not neccessary to use all the tables.
SELECT opponent FROM table_name_84 WHERE round = "sf"
CREATE TABLE INST, Here is a database schema( table schema);
What team was the opponent when the round was sf?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Matches = 9
CREATE TABLE INST, Here is a database schema( table schema);
what player matched up with 9.It is not neccessary to use all the tables.
SELECT 2009 FROM table WHERE 2011 = 138
CREATE TABLE INST, Here is a database schema( table schema);
What is the value for 2009 when the value for 2011 is 138?.It is not neccessary to use all the tables.
SELECT sSpec Number FROM table WHERE Frequency = 1ghz
CREATE TABLE INST, Here is a database schema( table schema);
What is the sSpec Number of the model with a 1ghz frequency?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_51 WHERE record = "64-78"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent when the record recorded was 64-78?It is not neccessary to use all the tables.
SELECT MIN Year FROM table WHERE Gold = kim hyun-soo
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest year that kim hyun-soo won the gold?.It is not neccessary to use all the tables.
SELECT COUNT Overall FROM table WHERE Position = e AND Name = buddy payne AND Pick < 5
CREATE TABLE INST, Here is a database schema( table schema);
How many overalls have E as the position, buddy payne as the name, and a pick less than 5?.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_35 WHERE venue = "kardinia park"
CREATE TABLE INST, Here is a database schema( table schema);
Which away team played at Kardinia Park?It is not neccessary to use all the tables.
SELECT COUNT(round) FROM table_name_6 WHERE player = "zach boychuk"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE ROUND FOR ZACH BOYCHUK?It is not neccessary to use all the tables.
SELECT MIN(points) AS won FROM table_27615896_18 WHERE new_points = 1680
CREATE TABLE INST, Here is a database schema( table schema);
How many points were won where new points was 1680?It is not neccessary to use all the tables.
SELECT decile FROM table_name_67 WHERE authority = "state" AND area = "raumati south"
CREATE TABLE INST, Here is a database schema( table schema);
What Decile has State Authority and Raumati South Area?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.admission_location = "CLINIC REFERRAL/PREMATURE"
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients whose insurance is private and admission location is clinic referral/premature.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Opponent = arturo segovia
CREATE TABLE INST, Here is a database schema( table schema);
Where did arturo segovia compete?.It is not neccessary to use all the tables.
SELECT "Soccer Stadium" FROM table_3751 WHERE "Province" = 'NL'
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the soccer stadium in NL providence?It is not neccessary to use all the tables.
SELECT Name FROM technician WHERE Age = 36 OR Age = 37
CREATE TABLE INST, Here is a database schema( table schema);
Show the name of technicians aged either 36 or 37It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Record = 36-33
CREATE TABLE INST, Here is a database schema( table schema);
What is the score when 36-33 is the record?.It is not neccessary to use all the tables.
SELECT party FROM table_19753079_41 WHERE candidates = "Mark Critz (D) 50.8% Tim Burns (R) 49.2%"
CREATE TABLE INST, Here is a database schema( table schema);
When mark critz (d) 50.8% tim burns (r) 49.2% are the candidates what is the party?It is not neccessary to use all the tables.
SELECT max. torque at rpm FROM table WHERE engine name = 1.2 mpi
CREATE TABLE INST, Here is a database schema( table schema);
What is the max torque of the 1.2 mpi engine?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Result = l 20–17
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent at the Steelers game that had a result of l 20–17?.It is not neccessary to use all the tables.
SELECT date FROM table_name_33 WHERE opposition = "sydney fc" AND round = "round 19"
CREATE TABLE INST, Here is a database schema( table schema);
When was the opposition sydney fc on round 19?It is not neccessary to use all the tables.
SELECT womens_doubles FROM table_28138035_32 WHERE womens_singles = "Ding Ning"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the womens double winner when the womens singles winner was Ding Ning?It is not neccessary to use all the tables.
SELECT television_network FROM table_name_67 WHERE type_of_network = "community" AND founded = "2002"
CREATE TABLE INST, Here is a database schema( table schema);
What television network founded in 2002 has a community type of network?It is not neccessary to use all the tables.
SELECT SUM Points FROM table WHERE Year = 1992
CREATE TABLE INST, Here is a database schema( table schema);
Name the sum of points for 1992.It is not neccessary to use all the tables.
SELECT total FROM table_name_13 WHERE to_par < 14 AND finish = "t12" AND player = "julius boros"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Total when To Par is less than 14 when Finish is T12 and when Player is "Julius Boros"?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Date of demolition = 1940 AND Church name = christ church greyfriars
CREATE TABLE INST, Here is a database schema( table schema);
What is the location that has a date of demolition of 1940 and has a church named Christ Church Greyfriars?.It is not neccessary to use all the tables.
SELECT AVG(land_area__km²_) FROM table_name_98 WHERE country = "switzerland" AND population_density__pop_per_km²_ < 188
CREATE TABLE INST, Here is a database schema( table schema);
What is the land area of Switzerland with a population density fewer than 188 km²?It is not neccessary to use all the tables.
SELECT Loss FROM table WHERE Record = 4-2
CREATE TABLE INST, Here is a database schema( table schema);
What loss has 4-2 as the record?.It is not neccessary to use all the tables.
SELECT MIN(points) FROM table_25647137_2 WHERE player = "Robert Stenberg"
CREATE TABLE INST, Here is a database schema( table schema);
How many points did robert stenberg have?It is not neccessary to use all the tables.
SELECT MAX(2007) FROM table_name_61 WHERE change_06_07 = "14.7%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the greatest 2007 when the change 06-07 was 14.7%?It is not neccessary to use all the tables.
SELECT MAX(crowd) FROM table_name_64 WHERE away_team = "carlton"
CREATE TABLE INST, Here is a database schema( table schema);
What was the largest crowd where Carlton was the away team?It is not neccessary to use all the tables.
SELECT position FROM table_name_26 WHERE school = "green valley high school"
CREATE TABLE INST, Here is a database schema( table schema);
Which position has a School of green valley high school?It is not neccessary to use all the tables.
SELECT Early Middle English FROM table WHERE Example = streht > "straight"
CREATE TABLE INST, Here is a database schema( table schema);
What is the phonology used in the example streht > "straight"?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Home team = st kilda
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team score for St Kilda's home team?.It is not neccessary to use all the tables.
SELECT "Opponent" FROM table_702 WHERE "Incumbent" = 'Henry Hyde'
CREATE TABLE INST, Here is a database schema( table schema);
Who was Henry Hyde's opponent in the race?It is not neccessary to use all the tables.
SELECT Share of votes FROM table WHERE Electors > 56 AND Year > 1950
CREATE TABLE INST, Here is a database schema( table schema);
What was the share of votes when there were more than 56 electors and the year was more recent than 1950?.It is not neccessary to use all the tables.
SELECT SUM Earnings ( $ ) FROM table WHERE Wins > 3
CREATE TABLE INST, Here is a database schema( table schema);
How many earnings have Wins larger than 3?.It is not neccessary to use all the tables.
SELECT SUM(total) FROM table_name_20 WHERE player = "david toms"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of David Toms?It is not neccessary to use all the tables.
SELECT COUNT Total FROM table WHERE Nation = denmark
CREATE TABLE INST, Here is a database schema( table schema);
What is the medal total of Denmark?.It is not neccessary to use all the tables.
SELECT SUM Wins FROM table WHERE Losses = 16 AND Against < 3213
CREATE TABLE INST, Here is a database schema( table schema);
How many wins have 16 losses and an Against smaller than 3213?.It is not neccessary to use all the tables.
SELECT television_service FROM table_name_11 WHERE hdtv = "no" AND language = "italian"
CREATE TABLE INST, Here is a database schema( table schema);
What is Television Service when HDTV is No and when Language is Italian?It is not neccessary to use all the tables.
SELECT Origin FROM table WHERE Final destination = brandholmen
CREATE TABLE INST, Here is a database schema( table schema);
What is the origin of the one whose final destination is Brandholmen?.It is not neccessary to use all the tables.
SELECT FC matches FROM table WHERE Location = darlington
CREATE TABLE INST, Here is a database schema( table schema);
What FC Match was played in Darlington?.It is not neccessary to use all the tables.
SELECT SUM Year FROM table WHERE Points > 46 AND Rank = 6th
CREATE TABLE INST, Here is a database schema( table schema);
What is year that has points larger than 46, and a rank of 6th?.It is not neccessary to use all the tables.
SELECT Match FROM table WHERE Player = clem hill (sa)
CREATE TABLE INST, Here is a database schema( table schema);
What match has Clem Hill (sa) as the player?.It is not neccessary to use all the tables.
SELECT "High points" FROM table_29870 WHERE "Game" = '11'
CREATE TABLE INST, Here is a database schema( table schema);
Who had the most points and how many did they have in game 11?It is not neccessary to use all the tables.
SELECT SUM("Wins") FROM table_36986 WHERE "Team" = 'mv agusta' AND "Points" > '10' AND "Year" > '1957'
CREATE TABLE INST, Here is a database schema( table schema);
How many wins for team mv agusta, over 10 points, and after 1957?It is not neccessary to use all the tables.
SELECT Approved treatment(s) FROM table WHERE Antibody = Bevacizumab
CREATE TABLE INST, Here is a database schema( table schema);
What are the approved treatments when the antibody is bevacizumab?.It is not neccessary to use all the tables.
SELECT SUM Total FROM table WHERE Premier League < 6 AND League Cup > 0
CREATE TABLE INST, Here is a database schema( table schema);
How many totals have a Premier League smaller than 6, and a League Cup larger than 0?.It is not neccessary to use all the tables.