sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT SUM 1930 FROM table WHERE 2006 est. < 44,726 AND County = frio
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1930 population when the 2006 est. is less than 44,726 in the county of frio?.It is not neccessary to use all the tables.
SELECT COUNT Opponents FROM table WHERE Raiders points = 42 AND Attendance < 52,505
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Opponents, when Raiders Points is "42", when Attendance is less than 52,505?.It is not neccessary to use all the tables.
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADELPHIA' AND fare_basis.economy = 'YES' AND fare.fare_basis_code = fare_basis.fare_basis_code AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
CREATE TABLE INST, Here is a database schema( table schema);
i would like to see the economy fares for DENVER to PHILADELPHIAIt is not neccessary to use all the tables.
SELECT MAX Enrollment FROM table WHERE IHSAA Class = aaa AND Mascot = dragons
CREATE TABLE INST, Here is a database schema( table schema);
What's the most enrolled having the dragons for a mascot and an AAA for the IHSAA Class?.It is not neccessary to use all the tables.
SELECT Label FROM table WHERE Catalog = 7243 8 49494 2 6
CREATE TABLE INST, Here is a database schema( table schema);
Which Label has a Catalog of 7243 8 49494 2 6?.It is not neccessary to use all the tables.
SELECT Carrier FROM device ORDER BY Carrier
CREATE TABLE INST, Here is a database schema( table schema);
List the carriers of devices in ascending alphabetical order.It is not neccessary to use all the tables.
SELECT COUNT(react) FROM table_name_78 WHERE name = "sean wroe" AND lane > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of React when Name is Sean Wroe and when Lane is greater than 2?It is not neccessary to use all the tables.
SELECT SUM(population) FROM table_name_18 WHERE region > 3
CREATE TABLE INST, Here is a database schema( table schema);
How many people are in regions greater than 3?It is not neccessary to use all the tables.
SELECT power_kw FROM table_23394920_1 WHERE callsign = "DXZB-TV"
CREATE TABLE INST, Here is a database schema( table schema);
When dxzb-tv is the call sign what is the power kw?It is not neccessary to use all the tables.
SELECT "Classification" FROM table_587 WHERE "Nickname" = 'Dolphins'
CREATE TABLE INST, Here is a database schema( table schema);
What's the classification of the institution nicknamed Dolphins?It is not neccessary to use all the tables.
SELECT "Date" FROM table_4277 WHERE "Location" = 'S. Valentino Alla Muta , Italia'
CREATE TABLE INST, Here is a database schema( table schema);
Name the date for s. valentino alla muta , italiaIt is not neccessary to use all the tables.
SELECT MIN Grid FROM table WHERE Laps < 24 AND Time = retirement
CREATE TABLE INST, Here is a database schema( table schema);
Which Grid has Laps smaller than 24, and a Time of retirement?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = november 10, 2007
CREATE TABLE INST, Here is a database schema( table schema);
What was the Score on November 10, 2007?.It is not neccessary to use all the tables.
SELECT high_points FROM table_name_5 WHERE game = 5
CREATE TABLE INST, Here is a database schema( table schema);
What is High Points when Game is "5"?It is not neccessary to use all the tables.
SELECT rider FROM table_name_35 WHERE grid = 21
CREATE TABLE INST, Here is a database schema( table schema);
What is the rider when the grid is 21?It is not neccessary to use all the tables.
SELECT nation FROM table_name_74 WHERE gold > 0 AND total > 4 AND rank = "6"
CREATE TABLE INST, Here is a database schema( table schema);
Which Nation has a Gold larger than 0 and a Total larger than 4 and a Rank of 6?It is not neccessary to use all the tables.
SELECT MAX Pl GP FROM table WHERE Reg GP > 18
CREATE TABLE INST, Here is a database schema( table schema);
What's the highest Pl GP with a Reg GP over 18?.It is not neccessary to use all the tables.
SELECT COUNT(founded) FROM table_262505_1 WHERE type = "Public" AND enrollment = "780"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of founded for public and 780 enrollmentIt is not neccessary to use all the tables.
SELECT SUM Year FROM table WHERE Position = 6th AND Competition = commonwealth games
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games?.It is not neccessary to use all the tables.
SELECT Relation FROM table WHERE Type = tv AND Name = ohanami
CREATE TABLE INST, Here is a database schema( table schema);
Which Relation has a Type of tv, and a Name of ohanami?.It is not neccessary to use all the tables.
SELECT MIN(demographic.age) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.dob_year > "2090"
CREATE TABLE INST, Here is a database schema( table schema);
Calculate the minimum age of the patients born after 2090 who were admitted in urgent care.It is not neccessary to use all the tables.
SELECT COUNT(country) FROM table_27279050_3 WHERE last_current_driver_s__3_november_2013 = "Adderly Fong ( 2013 )"
CREATE TABLE INST, Here is a database schema( table schema);
How many times is last/current driver(s) 3 november 2013 is adderly fong ( 2013 )?It is not neccessary to use all the tables.
SELECT "Speaker" FROM table_26131 WHERE "Chief Minister" = 'M.G. Ramachandran'
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the speaker if the chief minister is M.G. Ramachandran?It is not neccessary to use all the tables.
SELECT MAX(silver) FROM table_name_85 WHERE bronze < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of silver medals of the team with less than 0 bronzes?It is not neccessary to use all the tables.
SELECT settlement FROM table_2562572_30 WHERE cyrillic_name_other_names = "Сигет"
CREATE TABLE INST, Here is a database schema( table schema);
Which settlement has the cyrillic name сигет?It is not neccessary to use all the tables.
SELECT AVG(points) FROM table_name_63 WHERE engine = "ford zetec-r v8"
CREATE TABLE INST, Here is a database schema( table schema);
What are the average points for an engine of ford zetec-r v8?It is not neccessary to use all the tables.
SELECT Loser FROM table WHERE Winner = new england patriots AND Location = giants stadium AND Result = 30–28
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the Loser when the winner was new england patriots, and a Location of giants stadium, and a Result of 30–28?.It is not neccessary to use all the tables.
SELECT nation FROM table_name_91 WHERE bronze = 3
CREATE TABLE INST, Here is a database schema( table schema);
Which nation had 3 bronze?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Round = 3 AND Event = ufc 110
CREATE TABLE INST, Here is a database schema( table schema);
Where is the UFC 110 event with 3 rounds located?.It is not neccessary to use all the tables.
SELECT fleet_number_s_ FROM table_name_98 WHERE wheel_arrangement = "2-6-0" AND class = "z"
CREATE TABLE INST, Here is a database schema( table schema);
What is Fleet Number(s) when Wheel Arrangement is "2-6-0" and when Class is "Z"?It is not neccessary to use all the tables.
SELECT MIN(against) FROM table_name_99 WHERE byes > 0
CREATE TABLE INST, Here is a database schema( table schema);
Which against has the lowest when byes are larger than 0?It is not neccessary to use all the tables.
SELECT Area (km 2 ) FROM table WHERE Population Census 2009 = 939370
CREATE TABLE INST, Here is a database schema( table schema);
what's the area (km 2 ) with population census 2009 being 939370.It is not neccessary to use all the tables.
SELECT crt.Id, crt.Name, crt.Description FROM CloseReasonTypes AS crt
CREATE TABLE INST, Here is a database schema( table schema);
What general close reasons exist?. Returns list of top-level possible close reasonsIt is not neccessary to use all the tables.
SELECT Years as tallest FROM table WHERE Floors = 24
CREATE TABLE INST, Here is a database schema( table schema);
How many years was the building with 24 floors the tallest?.It is not neccessary to use all the tables.
SELECT enrollment FROM table_14754471_1 WHERE hispanic___percentage_ = "3.6"
CREATE TABLE INST, Here is a database schema( table schema);
What is the enrollment amount where Hispanic (%) is 3.6?It is not neccessary to use all the tables.
SELECT sport FROM table_name_64 WHERE league = "nll"
CREATE TABLE INST, Here is a database schema( table schema);
The nll participate in what sport?It is not neccessary to use all the tables.
SELECT college_team FROM table_name_18 WHERE round < 2 AND nationality = "united states"
CREATE TABLE INST, Here is a database schema( table schema);
What is College/Team when Round is less than 2 and when Nationality is "United States"?It is not neccessary to use all the tables.
SELECT MIN(number_of_carriers) FROM table_2394927_1
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of carriers?It is not neccessary to use all the tables.
SELECT player FROM table_10975034_5 WHERE position = "LB" AND cfl_team = "Saskatchewan Roughriders"
CREATE TABLE INST, Here is a database schema( table schema);
What is the player who is lb and cfl team is saskatchewan roughriders?It is not neccessary to use all the tables.
SELECT MAX(round1) FROM table_24784769_1 WHERE total_points = 132
CREATE TABLE INST, Here is a database schema( table schema);
How many points did the team who had 132 total points have in round 1?It is not neccessary to use all the tables.
SELECT COUNT Republican: Jack Hoogendyk FROM table WHERE Poll Source = Public Policy Polling
CREATE TABLE INST, Here is a database schema( table schema);
How many times did Public Policy Polling under Republican: Jack Hoogendyk?.It is not neccessary to use all the tables.
SELECT Competition FROM table WHERE Venue = daugava stadium, riga, latvia
CREATE TABLE INST, Here is a database schema( table schema);
What competition was at the Daugava Stadium, Riga, Latvia?.It is not neccessary to use all the tables.
SELECT loss FROM table_name_20 WHERE record = "34-56"
CREATE TABLE INST, Here is a database schema( table schema);
What was the loss when the record was 34-56?It is not neccessary to use all the tables.
SELECT COUNT(segment_a) FROM table_15187735_14 WHERE series_ep = "14-05"
CREATE TABLE INST, Here is a database schema( table schema);
How many segment A were in series episode 14-05It is not neccessary to use all the tables.
SELECT Original title FROM table WHERE Year = 1996 (11th) AND Winner and nominees = breaking the waves
CREATE TABLE INST, Here is a database schema( table schema);
What was the orignal title for the winner and nominee, Breaking the Waves, in 1996 (11th)?.It is not neccessary to use all the tables.
SELECT visitor FROM table_name_74 WHERE date = "april 30"
CREATE TABLE INST, Here is a database schema( table schema);
What city was a visitor on the date of April 30?It is not neccessary to use all the tables.
SELECT COUNT Cash Prize FROM table WHERE Language = Hindi AND Name of Film = Jodhaa Akbar
CREATE TABLE INST, Here is a database schema( table schema);
How many cash prizes were given for the hindi language film jodhaa akbar?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_73 WHERE record = "54-38"
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent has a Record of 54-38?It is not neccessary to use all the tables.
SELECT performer_4 FROM table_14934885_1 WHERE performer_3 = "Kate Robbins"
CREATE TABLE INST, Here is a database schema( table schema);
Who was performer 4 when Kate Robbins was performer 3?It is not neccessary to use all the tables.
SELECT AVG(attendance) FROM table_name_68 WHERE opponent = "brewers" AND score = "6–3"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average attendance when Brewers are the opponent with a score of 6–3?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Res. = win AND Time = 1:10
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponent had a Win as Res and a Time of 1:10?.It is not neccessary to use all the tables.
SELECT COUNT Laps FROM table WHERE Grid < 7 AND Rider = ben spies
CREATE TABLE INST, Here is a database schema( table schema);
How many laps did ben spies do on the grid less than 7?.It is not neccessary to use all the tables.
SELECT association_agreement FROM table_name_69 WHERE state = "bosnia and herzegovina"
CREATE TABLE INST, Here is a database schema( table schema);
What is the association agreement for bosnia and herzegovina?It is not neccessary to use all the tables.
SELECT Service Charge FROM table WHERE Number Made = 456
CREATE TABLE INST, Here is a database schema( table schema);
What is the service charge of the boat howitzers with 456 made?.It is not neccessary to use all the tables.
SELECT Tries against FROM table 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 escorts FROM table_name_74 WHERE cruisers = "6"
CREATE TABLE INST, Here is a database schema( table schema);
How many escorts does the nation with 6 cruisers have?It is not neccessary to use all the tables.
SELECT MIN("Crowd") FROM table_56918 WHERE "Home team score" = '7.10 (52)'
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest crowd with a Home team score of 7.10 (52)?It is not neccessary to use all the tables.
SELECT COUNT Attendance FROM table WHERE Home team = stourbridge
CREATE TABLE INST, Here is a database schema( table schema);
What is the total attendance when Stourbridge is the home team?.It is not neccessary to use all the tables.
SELECT series FROM table_name_16 WHERE date = "may 27"
CREATE TABLE INST, Here is a database schema( table schema);
What was the series on may 27?It is not neccessary to use all the tables.
SELECT Club FROM table WHERE Venue = champion window field
CREATE TABLE INST, Here is a database schema( table schema);
What club team plays at the champion window field?.It is not neccessary to use all the tables.
SELECT Artist FROM table WHERE English translation = all this is music
CREATE TABLE INST, Here is a database schema( table schema);
Which Artist has an English translation of all this is music?.It is not neccessary to use all the tables.
SELECT date FROM table_name_74 WHERE others = "2%"
CREATE TABLE INST, Here is a database schema( table schema);
What date has the others of 2%?It is not neccessary to use all the tables.
SELECT deleted FROM table_name_8 WHERE name = "anniston army depot (se industrial area)"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was Anniston Army Depot (SE Industrial Area) deleted?It is not neccessary to use all the tables.
SELECT college FROM table_15582870_1 WHERE choice = 143
CREATE TABLE INST, Here is a database schema( table schema);
Which college did draft pick #143 attend?It is not neccessary to use all the tables.
SELECT viewers FROM table_name_64 WHERE air_date = "july 4, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
What is Viewers when Air Date is "July 4 2008"?It is not neccessary to use all the tables.
SELECT Prior position FROM table WHERE Name = wyman webb
CREATE TABLE INST, Here is a database schema( table schema);
What was the prior position held by Wyman Webb?.It is not neccessary to use all the tables.
SELECT COUNT Prod. code FROM table WHERE Episode # = 73
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of production codes for episode #73?.It is not neccessary to use all the tables.
SELECT Singer(s) FROM table WHERE Guest(s) = Bruce Forsyth
CREATE TABLE INST, Here is a database schema( table schema);
Name the singer for bruce forsyth.It is not neccessary to use all the tables.
SELECT departure_date, arrival_date FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu"
CREATE TABLE INST, Here is a database schema( table schema);
Show me the departure date and arrival date for all flights from Los Angeles to Honolulu.It is not neccessary to use all the tables.
SELECT 2013 FROM table WHERE 2001 = qf AND 2011 = 4r
CREATE TABLE INST, Here is a database schema( table schema);
what is 2013 when 2001 is qf and 2011 is 4r?.It is not neccessary to use all the tables.
SELECT 1 AS st_leg FROM table_name_58 WHERE team__number1 = "san lorenzo"
CREATE TABLE INST, Here is a database schema( table schema);
What is 1st Leg when Team #1 is "San Lorenzo"?It is not neccessary to use all the tables.
SELECT AVG Points FROM table WHERE Record = 12–2–4–1 AND November > 22
CREATE TABLE INST, Here is a database schema( table schema);
Which Points have a Record of 12–2–4–1, and a November larger than 22?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Attendance = 25,418
CREATE TABLE INST, Here is a database schema( table schema);
What was the result when the attendance was 25,418?.It is not neccessary to use all the tables.
SELECT 1989 FROM table WHERE 1997 = qf AND 1993 = a
CREATE TABLE INST, Here is a database schema( table schema);
What was the value in 1989 with QF in 1997 and A in 1993?.It is not neccessary to use all the tables.
SELECT record FROM table_name_14 WHERE leading_scorer = "rudy gay (20)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the record of the game with Rudy Gay (20) as the leading scorer?It is not neccessary to use all the tables.
SELECT Shop_Name FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM stock)
CREATE TABLE INST, Here is a database schema( table schema);
List the names of shops that have no devices in stock.It is not neccessary to use all the tables.
SELECT COUNT Moroccan population FROM table WHERE Name = sebt saiss AND Population (2004) > 11212
CREATE TABLE INST, Here is a database schema( table schema);
What is the number for the Moroccan population when the name is Sebt Saiss and the 2004 population is more than 11212?.It is not neccessary to use all the tables.
SELECT years FROM table_name_70 WHERE goals < 229 AND matches = 440
CREATE TABLE INST, Here is a database schema( table schema);
What years have goals less than 229 and 440 as matches?It is not neccessary to use all the tables.
SELECT pole_position FROM table_1140085_2 WHERE rnd = 3
CREATE TABLE INST, Here is a database schema( table schema);
who is the pole position for the rnd 3It is not neccessary to use all the tables.
SELECT MAX Laps FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What was the greatest number of laps run?.It is not neccessary to use all the tables.
SELECT surface FROM table_name_51 WHERE edition = 2012 AND outcome = "winner"
CREATE TABLE INST, Here is a database schema( table schema);
What is Surface when Edition is 2012 and when Outcome is Winner?It is not neccessary to use all the tables.
SELECT COUNT(year) FROM table_name_35 WHERE team = "aston martin racing" AND pos = "6th"
CREATE TABLE INST, Here is a database schema( table schema);
In what year did the team of aston martin racing have a position of 6th?It is not neccessary to use all the tables.
SELECT swim__15km_ FROM table_name_6 WHERE event = "women's" AND athlete = "daniela ryf"
CREATE TABLE INST, Here is a database schema( table schema);
Daniela Ryf who competes in the women's even had what swim (1.5km)?It is not neccessary to use all the tables.
SELECT swimsuit FROM table_12094609_1 WHERE average = "8.670"
CREATE TABLE INST, Here is a database schema( table schema);
what's the swimsuit where average is 8.670It is not neccessary to use all the tables.
SELECT agg FROM table_name_60 WHERE team_2 = "kenya"
CREATE TABLE INST, Here is a database schema( table schema);
What was the aggregate for the match with a team 2 of Kenya?It is not neccessary to use all the tables.
SELECT COUNT(mens_doubles) FROM table_28138035_20 WHERE womens_singles = "Guo Yue"
CREATE TABLE INST, Here is a database schema( table schema);
How many people are shown for mens doubles when guo yue played womens singles?It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Rank = 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the Time of the Rowers in Rank 1?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Opponent = nina bratchikova
CREATE TABLE INST, Here is a database schema( table schema);
What Score has an Opponent of nina bratchikova?.It is not neccessary to use all the tables.
SELECT Prize money FROM table WHERE Clubs = 392 → 276
CREATE TABLE INST, Here is a database schema( table schema);
What is the prize money when the clubs is 392 → 276?.It is not neccessary to use all the tables.
SELECT MAX Year joined FROM table WHERE Previous conference = mid-indiana AND Location = converse
CREATE TABLE INST, Here is a database schema( table schema);
What is the most current year with a previous conference of Mid-Indiana in Converse?.It is not neccessary to use all the tables.
SELECT prohibition_ticket FROM table_name_34 WHERE socialist_labor_ticket = "joseph smith"
CREATE TABLE INST, Here is a database schema( table schema);
Which Prohibition ticket has a Socialist Labor ticket of joseph smith?It is not neccessary to use all the tables.
SELECT High assists FROM table WHERE Team = milwaukee
CREATE TABLE INST, Here is a database schema( table schema);
Who had the most high assists from Milwaukee?.It is not neccessary to use all the tables.
SELECT COUNT(frequency_mhz) FROM table_name_54 WHERE class = "d" AND call_sign = "k201bm" AND erp_w < 74
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of frequency Mhz with class of d and call sign of k201bm and ERP W less than 74It is not neccessary to use all the tables.
SELECT Builder FROM table WHERE Wheels = 4-4-0 AND Railway = gcr
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Builder when the wheels were 4-4-0 and the railway was GCR?.It is not neccessary to use all the tables.
SELECT T3.Name, T2.Date FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID
CREATE TABLE INST, Here is a database schema( table schema);
Show the names of journalists and the dates of the events they reported.It is not neccessary to use all the tables.
SELECT Abbreviation FROM table WHERE Country = libya
CREATE TABLE INST, Here is a database schema( table schema);
What's the abbreviation for libya?.It is not neccessary to use all the tables.
SELECT MAX(extra_points) FROM table_14342480_5 WHERE position = "Right halfback"
CREATE TABLE INST, Here is a database schema( table schema);
Name the most extra points for right halfbackIt is not neccessary to use all the tables.
SELECT COUNT Site FROM table WHERE Time = 3:30pm AND Visiting team = Coastal Carolina
CREATE TABLE INST, Here is a database schema( table schema);
How many site entries are there at 3:30pm and the visiting team is coastal carolina?.It is not neccessary to use all the tables.
SELECT result FROM table_name_63 WHERE week < 4 AND record = "1-0"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result when the record was 1-0 and it was earlier than week 4?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Team = chicago bulls
CREATE TABLE INST, Here is a database schema( table schema);
What positions are in the Chicago bulls?.It is not neccessary to use all the tables.