sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Date FROM table WHERE Venue = stade général seyni kountché , niamey
CREATE TABLE INST, Here is a database schema( table schema);
what is the date when the venue is stade général seyni kountché , niamey?.It is not neccessary to use all the tables.
SELECT COUNT(date) FROM table_25938117_1 WHERE tournament = "Toshiba Classic"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of dates for toshiba classicIt is not neccessary to use all the tables.
SELECT Team FROM table WHERE Laps < 315 AND Co-Drivers = david brabham franck lagorce
CREATE TABLE INST, Here is a database schema( table schema);
Name the team with laps less than 315 and co-drivers of david brabham franck lagorce?.It is not neccessary to use all the tables.
SELECT AVG Drawn FROM table WHERE Games > 7
CREATE TABLE INST, Here is a database schema( table schema);
Which average Drawn has Games larger than 7?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Date = november 6, 1966
CREATE TABLE INST, Here is a database schema( table schema);
What is the Result of the game on November 6, 1966?.It is not neccessary to use all the tables.
SELECT SUM(gross_tonnage) FROM table_name_75 WHERE material = "wood" AND date_commissioned > 1846 AND ship = "esk"
CREATE TABLE INST, Here is a database schema( table schema);
Name the sum of gross tonnage for wood on date more tahn 1846 for comissioned and ship of eskIt is not neccessary to use all the tables.
SELECT MIN Clubs involved FROM table WHERE Leagues entering this round = none AND Round = Semi finals
CREATE TABLE INST, Here is a database schema( table schema);
Name the least clubs involved for leagues being none for semi finals.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE From < 1982 AND Position = guard
CREATE TABLE INST, Here is a database schema( table schema);
Which player held the position of guard prior to 1982?.It is not neccessary to use all the tables.
SELECT Torque FROM table WHERE Engine code = m54b25
CREATE TABLE INST, Here is a database schema( table schema);
What is the Torque of the model with the engine code of M54B25?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Position = Left tackle
CREATE TABLE INST, Here is a database schema( table schema);
What players played the position of left tackle?.It is not neccessary to use all the tables.
SELECT "Calling at" FROM table_22266 WHERE "Arrival" = '18.42'
CREATE TABLE INST, Here is a database schema( table schema);
What was the calling for the 18.42 arrival time?It is not neccessary to use all the tables.
SELECT SUM(pick) FROM table_name_40 WHERE position = "k" AND overall < 181
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE PICK WITH K POSITION AND OVERALL SMALLER THAN 181?It is not neccessary to use all the tables.
SELECT Verb meaning FROM table WHERE Part 1 = *haldaną *fanhaną
CREATE TABLE INST, Here is a database schema( table schema);
What is the verb meaning of *haldaną *fanhaną in part 1?.It is not neccessary to use all the tables.
SELECT AVG(byes) FROM table_name_50 WHERE wins > 16
CREATE TABLE INST, Here is a database schema( table schema);
How many byes when there are more than 16 wins?It is not neccessary to use all the tables.
SELECT weight_ & _height FROM table_name_43 WHERE player = "james donaldson"
CREATE TABLE INST, Here is a database schema( table schema);
Which Weight & Height has a Player of james donaldson?It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_43 WHERE chassis = "tyrrell 018" AND points < 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the latest year for the Tyrrell 018 Chassis that has less than 3 points?It is not neccessary to use all the tables.
SELECT MAX Crowd FROM table WHERE Home team = hawthorn
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest crowd with Home team of hawthorn?.It is not neccessary to use all the tables.
SELECT Country, COUNT(Country) FROM competition GROUP BY Country ORDER BY Country DESC
CREATE TABLE INST, Here is a database schema( table schema);
A bar chart for how many competitions for each country, and display bars from high to low order.It is not neccessary to use all the tables.
SELECT Institution FROM table WHERE Team Nickname = lakers
CREATE TABLE INST, Here is a database schema( table schema);
what is the institution when the team nickname is lakers?.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Game = 78
CREATE TABLE INST, Here is a database schema( table schema);
Where was game 78 held?.It is not neccessary to use all the tables.
SELECT t2.product_details, t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY SUM(t1.order_quantity) LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the name and ID of the product whose total order quantity is the largest.It is not neccessary to use all the tables.
SELECT athlete FROM table_name_79 WHERE react = 0.185
CREATE TABLE INST, Here is a database schema( table schema);
Who was the athlete with react of 0.185?It is not neccessary to use all the tables.
SELECT Election date FROM table WHERE Province = Albacete
CREATE TABLE INST, Here is a database schema( table schema);
What are the election date for elections held in the province of Albacete?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Location = tiger stadium AND Date = october 12
CREATE TABLE INST, Here is a database schema( table schema);
What was the score at Tiger Stadium on October 12?.It is not neccessary to use all the tables.
SELECT "Name" FROM table_69683 WHERE "Round" = '9'
CREATE TABLE INST, Here is a database schema( table schema);
Round of 9 involved what name?It is not neccessary to use all the tables.
SELECT Goals FROM table WHERE Player = eugene galeković
CREATE TABLE INST, Here is a database schema( table schema);
How many goals were scored by Eugene Galeković?.It is not neccessary to use all the tables.
SELECT county FROM table_name_81 WHERE mascot = "bruins"
CREATE TABLE INST, Here is a database schema( table schema);
Which county has the mascot of Bruins?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE MLS team = colorado rapids
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of the Colorado Rapids team?.It is not neccessary to use all the tables.
SELECT COUNT(latitude) FROM table_name_51 WHERE land___sqmi__ > 35.747 AND water__sqmi_ = 0 AND geo_id < 3809981860 AND township = "van meter"
CREATE TABLE INST, Here is a database schema( table schema);
What was the latitude for van meter who had a land(sqmi) larger than 35.747 Water(sqmi) of 0 and a GEO ID smaller than 3809981860?It is not neccessary to use all the tables.
SELECT position FROM table_14342592_3 WHERE player = "Tom Hammond"
CREATE TABLE INST, Here is a database schema( table schema);
What positions does Tom Hammond play?It is not neccessary to use all the tables.
SELECT local_letter FROM table_name_28 WHERE capital = "funadhoo"
CREATE TABLE INST, Here is a database schema( table schema);
The capital of funadhoo has what local letter?It is not neccessary to use all the tables.
SELECT COUNT(manner_of_departure) FROM table_17327458_1 WHERE date_of_vacancy = "25 May"
CREATE TABLE INST, Here is a database schema( table schema);
How many vacancies happened on 25 May?It is not neccessary to use all the tables.
SELECT selsdon FROM table_name_14 WHERE coombe_road = "17:19"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Selsdon for the 17:19 Coombe Road?It is not neccessary to use all the tables.
SELECT run_2 FROM table_name_29 WHERE run_1 = "1:30.03"
CREATE TABLE INST, Here is a database schema( table schema);
Which Run 2 has a Run 1 of 1:30.03?It is not neccessary to use all the tables.
SELECT points_classification FROM table_18733814_2 WHERE winner = "Philippe Gilbert"
CREATE TABLE INST, Here is a database schema( table schema);
When philippe gilbert is the winner who is the points classification?It is not neccessary to use all the tables.
SELECT MAX(public) FROM table_26375386_18 WHERE couple = "Danniella and Matthew"
CREATE TABLE INST, Here is a database schema( table schema);
WHat was the max public with danniella and matthew?It is not neccessary to use all the tables.
SELECT AVG(week) FROM table_name_49 WHERE result = "l 23–3"
CREATE TABLE INST, Here is a database schema( table schema);
What's the average Week with the Result l 23–3?It is not neccessary to use all the tables.
SELECT to_par FROM table_name_18 WHERE score = 70 - 68 - 68 - 71 = 277
CREATE TABLE INST, Here is a database schema( table schema);
What is To par when Score is "70-68-68-71=277"?It is not neccessary to use all the tables.
SELECT incumbent FROM table_19753079_36 WHERE candidates = "Sue Myrick (R) 69.0% Jeff Doctor (D) 31.0%"
CREATE TABLE INST, Here is a database schema( table schema);
Name the incumbent for sue myrick (r) 69.0% jeff doctor (d) 31.0%It is not neccessary to use all the tables.
SELECT MAX(weeks_on_chart) FROM table_name_49 WHERE peak_position < 5 AND country = "sweden"
CREATE TABLE INST, Here is a database schema( table schema);
what is the most weeks on chart when the peak position is less than 5 and from Sweden?It is not neccessary to use all the tables.
SELECT MIN(enrolment) FROM table_name_67 WHERE founded > 1995
CREATE TABLE INST, Here is a database schema( table schema);
What is the low enrolment for schools founded after 1995?It is not neccessary to use all the tables.
SELECT AVG(seat) FROM table_name_81 WHERE series_3 = "dana bérová"
CREATE TABLE INST, Here is a database schema( table schema);
What is the seat number when Series 3 shows Dana Bérová?It is not neccessary to use all the tables.
SELECT MAX Attendance FROM table WHERE Result = l 26-16 AND Week < 12
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Attendance, when Result is l 26-16, and when Week is less than 12?.It is not neccessary to use all the tables.
SELECT date FROM table_name_91 WHERE tie_no = "2"
CREATE TABLE INST, Here is a database schema( table schema);
When was the game that has tie no 2?It is not neccessary to use all the tables.
SELECT School/Club Team FROM table WHERE Nationality = united states AND Position = guard
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the School/Club team of the player from the United States that play'de guard?.It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Date = 16 april 2007
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the surface for 16 april 2007.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Club = dinamo moscow AND Pos. = d
CREATE TABLE INST, Here is a database schema( table schema);
What is the Name of the D Player from the Dinamo Moscow Club?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Opponent = buffalo bills
CREATE TABLE INST, Here is a database schema( table schema);
Which result was there when the opponents were the Buffalo Bills?.It is not neccessary to use all the tables.
SELECT original_air_date FROM table_22380270_1 WHERE us_viewers__millions_ = "2.15"
CREATE TABLE INST, Here is a database schema( table schema);
On what air date were there 2.15 million u.s. viewers?It is not neccessary to use all the tables.
SELECT train_number FROM table_29301050_1 WHERE arrival_lonavla = "17:45"
CREATE TABLE INST, Here is a database schema( table schema);
which train number arrives in lonavla at 17:45It is not neccessary to use all the tables.
SELECT record FROM table_14884844_2 WHERE athletes = "Elzbieta Urbanczik"
CREATE TABLE INST, Here is a database schema( table schema);
What are the records when Elzbieta Urbanczik competed?It is not neccessary to use all the tables.
SELECT written_by FROM table_26448179_2 WHERE production_code = "102"
CREATE TABLE INST, Here is a database schema( table schema);
He wrote production number 102?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Tournament = vaihingen
CREATE TABLE INST, Here is a database schema( table schema);
What is the surface at the tournament of Vaihingen?.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 '%MDE%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 WHERE PROGRAM_COURSEalias1.category LIKE '%MDE%')
CREATE TABLE INST, Here is a database schema( table schema);
Which class would be easiest for me to fill the MDE requirement ?It is not neccessary to use all the tables.
SELECT third_place FROM table_16331144_1 WHERE season = "Four"
CREATE TABLE INST, Here is a database schema( table schema);
Who won third place in season four?It is not neccessary to use all the tables.
SELECT Party FROM table WHERE Incumbent = Sidney R. Yates
CREATE TABLE INST, Here is a database schema( table schema);
what is the party when the incumbent is sidney r. yates?.It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Score = 71-70-73-71=285
CREATE TABLE INST, Here is a database schema( table schema);
What place had a score of 71-70-73-71=285?.It is not neccessary to use all the tables.
SELECT MIN Total appearances FROM table WHERE Total goals = 289
CREATE TABLE INST, Here is a database schema( table schema);
What is the total appearances when the total goals is 289?.It is not neccessary to use all the tables.
SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) = 1
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of the courses that have exactly 1 student enrollment?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.diagnosis = "HYPOXIA"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients whose marital status is single and primary disease is hypoxia?It is not neccessary to use all the tables.
SELECT IATA FROM table WHERE Country = china
CREATE TABLE INST, Here is a database schema( table schema);
What is China's IATA?.It is not neccessary to use all the tables.
SELECT AVG Pop. (2010) FROM table WHERE Longitude > -102.353035 AND Latitude > 46.937841 AND Water (sqmi) = 0.034
CREATE TABLE INST, Here is a database schema( table schema);
What is the average 2010 population having longitude over -102.353035, latitude over 46.937841, and 0.034 sqmi of water?.It is not neccessary to use all the tables.
SELECT AVG(original_week) FROM table_name_18 WHERE venue = "soldier field"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the average original week for soldier fieldIt is not neccessary to use all the tables.
SELECT COUNT Record FROM table WHERE Cowboys points = 12
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of record for 12 cowboys points.It is not neccessary to use all the tables.
SELECT Date of Birth (Age) FROM table WHERE Caps = 3 AND Name = gabriel quak jun yi
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of birth and age of Gabriel Quak Jun Yi with 3 caps?.It is not neccessary to use all the tables.
SELECT executive_director FROM table_name_84 WHERE type = "extension" AND location = "lemery, batangas"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the executive director of the Lemery Batangas extension?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Score = 6-1 7-5
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface of the game that resulted in a final score of 6-1 7-5?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Score = 3-2 AND Loss = anderson (2-6)
CREATE TABLE INST, Here is a database schema( table schema);
What opponent has 3-2 as the score, and anderson (2-6) as a loss?.It is not neccessary to use all the tables.
SELECT Constituency number FROM table WHERE Reserved for ( SC / ST /None) = none AND District = seoni
CREATE TABLE INST, Here is a database schema( table schema);
What's the constituency number of the Seoni district and has none reserved?.It is not neccessary to use all the tables.
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE (course.number = 398 OR course.number = 498 OR course.number = 598) AND course.department = 'EECS' AND semester.semester = 'Winter' AND semester.year = 2017
CREATE TABLE INST, Here is a database schema( table schema);
What are the special topics classes options for next Winter ?It is not neccessary to use all the tables.
SELECT "Club" FROM table_18955 WHERE "Points against" = '523'
CREATE TABLE INST, Here is a database schema( table schema);
What club had 523 points against?It is not neccessary to use all the tables.
SELECT Report FROM table WHERE Home team = townsville crocodiles
CREATE TABLE INST, Here is a database schema( table schema);
What is the report corresponding to the game that had the Townsville Crocodiles as home team?.It is not neccessary to use all the tables.
SELECT SUM Pick # FROM table WHERE Position = ol
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of picks for the position of OL?.It is not neccessary to use all the tables.
SELECT Language FROM table WHERE Genre = Glam
CREATE TABLE INST, Here is a database schema( table schema);
What language for the glam genre?.It is not neccessary to use all the tables.
SELECT COUNT(game) FROM table_17323042_9 WHERE date = "March 15"
CREATE TABLE INST, Here is a database schema( table schema);
How many games were played on March 15?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Start of Reign < 1986 AND Birth Name = cvetko krstevski
CREATE TABLE INST, Here is a database schema( table schema);
What is the Name of the Archbishop with a Birth Name of Cvetko Krstevski with a Start of Reign before 1986?.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Founded = 1798
CREATE TABLE INST, Here is a database schema( table schema);
Name the location that was founded 1798.It is not neccessary to use all the tables.
SELECT Year, COUNT(Year) FROM wine WHERE Price > 100 ORDER BY COUNT(Year)
CREATE TABLE INST, Here is a database schema( table schema);
A bar chart that computes the total number of wines with a price is bigger than 100 Next, Bin the year into the weekday interval, rank y-axis from low to high order.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Race Name = Texas Grand Prix AND Engine = Foyt
CREATE TABLE INST, Here is a database schema( table schema);
What team raced with a Foyt engine in the Texas Grand Prix?.It is not neccessary to use all the tables.
SELECT country FROM table_name_91 WHERE score = 75 - 68 = 143
CREATE TABLE INST, Here is a database schema( table schema);
What Country had a Score of 75-68=143?It is not neccessary to use all the tables.
SELECT Team #1 FROM table WHERE Time ( CEST ) < 18
CREATE TABLE INST, Here is a database schema( table schema);
What id the team with a smaller Time than 18?.It is not neccessary to use all the tables.
SELECT location FROM table_name_71 WHERE host = "robert morris university (illinois)" AND national_champion = "lindenwood"
CREATE TABLE INST, Here is a database schema( table schema);
At what Location did Robert Morris University (Illinois) Host the Lindenwood National Chamption?It is not neccessary to use all the tables.
SELECT "Bonus points" FROM table_3737 WHERE "Lost" = '18'
CREATE TABLE INST, Here is a database schema( table schema);
How many bonus points did the club who had 18 losses have?It is not neccessary to use all the tables.
SELECT COUNT Winnings FROM table WHERE Avg. Finish = 29.2
CREATE TABLE INST, Here is a database schema( table schema);
How many years did he have an average finish of 29.2?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Venue = kardinia park
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the away team whose venue is Kardinia Park?.It is not neccessary to use all the tables.
SELECT SUM(rank) FROM table_name_15 WHERE apps > 39 AND player = "ümit karan" AND rate > 0.58
CREATE TABLE INST, Here is a database schema( table schema);
What is the total Rank for ümit karan when Apps is more than 39 and Rate is more than 0.58?It is not neccessary to use all the tables.
SELECT actor FROM table_name_14 WHERE soap_opera = "the archers" AND character = "martha woodford"
CREATE TABLE INST, Here is a database schema( table schema);
Who's the actor for the Archers having a character of Martha Woodford?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = november 3, 2008
CREATE TABLE INST, Here is a database schema( table schema);
Date of november 3, 2008 had what score?.It is not neccessary to use all the tables.
SELECT SUM(decile) FROM table_name_99 WHERE area = "normanby" AND roll < 157
CREATE TABLE INST, Here is a database schema( table schema);
What is the total decile in the area of Normanby with a roller smaller than 157?It is not neccessary to use all the tables.
SELECT MIN Tournaments played FROM table WHERE Year = 1998
CREATE TABLE INST, Here is a database schema( table schema);
what is the least tournaments played when the year is 1998?.It is not neccessary to use all the tables.
SELECT MIN No Result FROM table WHERE % Win = 100.00% AND Played > 4 AND Year = 2012
CREATE TABLE INST, Here is a database schema( table schema);
What kind of No Result has a % Win of 100.00% and a Played larger than 4 in 2012?.It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Country = australia AND Player = ian baker-finch
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Place that has the Country of australia, and the Player of ian baker-finch?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Womens doubles = Raina Tzvetkova Emilia Dimitrova
CREATE TABLE INST, Here is a database schema( table schema);
Name the year for womens doubles being raina tzvetkova emilia dimitrova.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE College = arizona state
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player from Arizona State?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Pennant number = f82
CREATE TABLE INST, Here is a database schema( table schema);
Which Name has a Pennant number of f82?.It is not neccessary to use all the tables.
SELECT Visitor FROM table WHERE Record = 2-4
CREATE TABLE INST, Here is a database schema( table schema);
Which visitor has a record of 2-4?.It is not neccessary to use all the tables.
SELECT name FROM airport WHERE country <> 'Iceland'
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of the airports which are not in the country 'Iceland'?It is not neccessary to use all the tables.
SELECT score FROM table_name_61 WHERE record = "14–10–2"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game when the Devils had a record of 14 10 2?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Partner = Fleming AND Opponents in the final = Hewitt McMillan
CREATE TABLE INST, Here is a database schema( table schema);
If the opponents in the final is Hewitt McMillan and the partner is Fleming, what is the surface?.It is not neccessary to use all the tables.
SELECT COUNT(goals_against) FROM table_name_44 WHERE team = "clitheroe" AND lost > 2
CREATE TABLE INST, Here is a database schema( table schema);
How many goals against did Clitheroe have when the loss was larger than 2?It is not neccessary to use all the tables.