sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Position FROM table WHERE Round = 1
CREATE TABLE INST, Here is a database schema( table schema);
What is round 1's position?.It is not neccessary to use all the tables.
SELECT MIN(goals) FROM table_name_75 WHERE venue = "tehran, iran" AND date = "1948-10-28"
CREATE TABLE INST, Here is a database schema( table schema);
In 1948-10-28 what were the lowest Goals in Tehran Iran?It is not neccessary to use all the tables.
SELECT music FROM table_name_30 WHERE couple = "mario & karina"
CREATE TABLE INST, Here is a database schema( table schema);
What music did Mario & Karina perform?It is not neccessary to use all the tables.
SELECT volume AS :issue FROM table_name_96 WHERE weeks_on_top < 2 AND artist = "george mccrae"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Volume:Issue number of the George McCrae song that spent less than 2 weeks on top of the charts?It is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE Regular Season = 4th, Northwest
CREATE TABLE INST, Here is a database schema( table schema);
what being the maximum year where regular season is 4th, northwest.It is not neccessary to use all the tables.
SELECT date FROM table_name_9 WHERE loss = "johnson (4-12)"
CREATE TABLE INST, Here is a database schema( table schema);
When the Loss is Johnson (4-12) what is the date?It is not neccessary to use all the tables.
SELECT Civil parish FROM table WHERE Area( acres ) = 405
CREATE TABLE INST, Here is a database schema( table schema);
which cilvil parishes have areas of 405?.It is not neccessary to use all the tables.
SELECT head_coach FROM table_19905183_1 WHERE price = "$3.22 million"
CREATE TABLE INST, Here is a database schema( table schema);
Who's the head coach of the team with a price of $3.22 million?It is not neccessary to use all the tables.
SELECT RoomId, roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the id and name of the most expensive base price room.It is not neccessary to use all the tables.
SELECT MAX Track FROM table WHERE Japanese title = メロディー
CREATE TABLE INST, Here is a database schema( table schema);
Which track has a Japanese title of メロディー?.It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_24 WHERE venue = "mcg"
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team score when played at mcg?It is not neccessary to use all the tables.
SELECT division FROM table_24193494_3 WHERE powertrain__engine_transmission_ = "Detroit Diesel Series 50EGR Allison WB-400R"
CREATE TABLE INST, Here is a database schema( table schema);
Name the division for detroit diesel series 50egr allison wb-400rIt is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Game > 4
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance for the game after game 4?.It is not neccessary to use all the tables.
SELECT COUNT Points FROM table WHERE Points against = 389
CREATE TABLE INST, Here is a database schema( table schema);
What amount of points where points were 389?.It is not neccessary to use all the tables.
SELECT MIN(round) FROM table_name_87 WHERE school_club_team = "ucla"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest round of the player from UCLA?It is not neccessary to use all the tables.
SELECT partner FROM table_26309085_1 WHERE year = 1989
CREATE TABLE INST, Here is a database schema( table schema);
Who was his partner in 1989?It is not neccessary to use all the tables.
SELECT COUNT(long) FROM table_name_45 WHERE loss = 0 AND gain < 17 AND avg_g > 0 AND name = "dubose, e."
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of long Dubose E. who had 0 losses a gain less than 17 and an avg/g bigger than 0 had?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Record = 8-8
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game played when the Buffalo Bills had a record of 8-8?.It is not neccessary to use all the tables.
SELECT chassis FROM table_name_41 WHERE entrant = "larrousse f1" AND driver = "aguri suzuki"
CREATE TABLE INST, Here is a database schema( table schema);
Which chassis did Aguri Suzuki drive with an entrant of Larrousse F1?It is not neccessary to use all the tables.
SELECT 2 AS nd_leg FROM table_name_50 WHERE agg = "4-6"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the second leg with an agg of 4-6?It is not neccessary to use all the tables.
SELECT COUNT(result) FROM table_26555737_1 WHERE year__ceremony_ = "2012 (85th)"
CREATE TABLE INST, Here is a database schema( table schema);
When 2012 (85th) is the year (ceremony) how many results?It is not neccessary to use all the tables.
SELECT frequency FROM table_11602313_4 WHERE part_number_s_ = "LF80537GF0411M"
CREATE TABLE INST, Here is a database schema( table schema);
What is the frequency of the model with part number lf80537gf0411m?It is not neccessary to use all the tables.
SELECT MAX(yes_votes) FROM table_256286_60 WHERE meas_num = 4
CREATE TABLE INST, Here is a database schema( table schema);
How yes votes were there for measure 4?It is not neccessary to use all the tables.
SELECT race FROM table_27913160_3 WHERE most_laps_led = "Simon Pagenaud"
CREATE TABLE INST, Here is a database schema( table schema);
What race did Simon Pagenaud have the most laps in?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Opponent in the final = barbara paulus
CREATE TABLE INST, Here is a database schema( table schema);
What date was the opponent in the final Barbara Paulus?.It is not neccessary to use all the tables.
SELECT lead FROM table_name_76 WHERE country = "canada"
CREATE TABLE INST, Here is a database schema( table schema);
Who was Canada's lead?It is not neccessary to use all the tables.
SELECT time FROM table_name_21 WHERE round > 1 AND event = "total fighting alliance 2"
CREATE TABLE INST, Here is a database schema( table schema);
Which Time has a Round larger than 1 and an Event of total fighting alliance 2?It is not neccessary to use all the tables.
SELECT AVG(react) FROM table_name_59 WHERE name = "bryan barnett" AND lane < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the average react of bryan barnett who has a lane less than 2?It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Engine = mercedes fo 108w 2.4l v8 AND Points > 0
CREATE TABLE INST, Here is a database schema( table schema);
How many entrants have a mercedes fo 108w 2.4l v8 engine and over 0 points?.It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Draw > 2 AND Points < 139 AND Artist = midnight band
CREATE TABLE INST, Here is a database schema( table schema);
In what place is the artist Midnight Band with a draw larger than 2 and less than 139 points..It is not neccessary to use all the tables.
SELECT fastest_lap FROM table_12161822_5 WHERE grand_prix = "European grand_prix"
CREATE TABLE INST, Here is a database schema( table schema);
who is the the fastest lap with grand prix being european grand prixIt is not neccessary to use all the tables.
SELECT high_points FROM table_27733258_6 WHERE score = "L 110–112 (OT)"
CREATE TABLE INST, Here is a database schema( table schema);
Name the high points for l 110–112 (ot)It is not neccessary to use all the tables.
SELECT Republican ticket FROM table WHERE Democratic ticket = arthur levitt
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Republican candidate against the Democratic candidate Arthur Levitt?.It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_42 WHERE venue = "arden street oval"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team in the game played at arden street oval?It is not neccessary to use all the tables.
SELECT distance FROM table_name_21 WHERE winner_or_2nd = "waterline"
CREATE TABLE INST, Here is a database schema( table schema);
What was the distance for the winner or 2nd Waterline?It is not neccessary to use all the tables.
SELECT COUNT(title) FROM table_29273243_1 WHERE production_code = "IP04004"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes have the production code ip04004?It is not neccessary to use all the tables.
SELECT Country or territory with flag FROM table WHERE Capital = Buenos Aires
CREATE TABLE INST, Here is a database schema( table schema);
What country's capital is buenos aires?.It is not neccessary to use all the tables.
SELECT U21 Mens FROM table WHERE Mixed Restricted = Mike Marsden AND U21 Womens = Claire Nelson
CREATE TABLE INST, Here is a database schema( table schema);
Who was the U21 Mens winner when Mike Marsden was the mixed restricted winner and Claire Nelson was the U21 Womens winner? .It is not neccessary to use all the tables.
SELECT "Mountain Peak" FROM table_70049 WHERE "Rank" < '6' AND "Location" = '81.9083°n 75.0250°w'
CREATE TABLE INST, Here is a database schema( table schema);
Name the mountain peak with rank less than 6 abd location of 81.9083 n 75.0250 wIt is not neccessary to use all the tables.
SELECT doucet FROM table_11447995_2 WHERE lawrance = "36"
CREATE TABLE INST, Here is a database schema( table schema);
What is Doucet when Lawrance is 36?It is not neccessary to use all the tables.
SELECT "Island" FROM table_63217 WHERE "Population" = '9,520 (2000)'
CREATE TABLE INST, Here is a database schema( table schema);
Which island has a population of 9,520 (2000)?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Location Attendance = The Palace of Auburn Hills 14,554
CREATE TABLE INST, Here is a database schema( table schema);
Name the date for the palace of auburn hills 14,554.It is not neccessary to use all the tables.
SELECT Autonomous Community FROM table WHERE Television Channels = TPA TPA2 RTPA Internacional
CREATE TABLE INST, Here is a database schema( table schema);
What is the autonomous community with television channels tpa tpa2 rtpa internacional?.It is not neccessary to use all the tables.
SELECT Gold FROM table WHERE Year > 1970 AND Place = milan
CREATE TABLE INST, Here is a database schema( table schema);
What gold has a year after 1970, with milan as the place?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = newcastle united
CREATE TABLE INST, Here is a database schema( table schema);
What is the Away team with Newcastle United as the Home team?.It is not neccessary to use all the tables.
SELECT score FROM table_name_7 WHERE visitor = "pittsburgh" AND points > 18
CREATE TABLE INST, Here is a database schema( table schema);
What is Score when Visitor is "Pittsburgh" and when Points is greater than 18?It is not neccessary to use all the tables.
SELECT transfer_fee FROM table_name_23 WHERE name = "rory loy"
CREATE TABLE INST, Here is a database schema( table schema);
What is the transfer fee for rory loy?It is not neccessary to use all the tables.
SELECT 250 AS _cc FROM table_name_19 WHERE year = "1985"
CREATE TABLE INST, Here is a database schema( table schema);
Who won the 250 cc in 1985?It is not neccessary to use all the tables.
SELECT goals FROM table_name_6 WHERE country = "france"
CREATE TABLE INST, Here is a database schema( table schema);
How many goals did a player from France have?It is not neccessary to use all the tables.
SELECT COUNT Points FROM table WHERE Year > 1992
CREATE TABLE INST, Here is a database schema( table schema);
How many points are there later than 1992?.It is not neccessary to use all the tables.
SELECT COUNT(year) FROM table_name_36 WHERE chassis = "toleman tg183"
CREATE TABLE INST, Here is a database schema( table schema);
Which year had a toleman tg183 chassis?It is not neccessary to use all the tables.
SELECT nationality FROM table_name_63 WHERE appearances = 116
CREATE TABLE INST, Here is a database schema( table schema);
What nationality has 116 appearances?It is not neccessary to use all the tables.
SELECT City/Neighborhood FROM table WHERE Extension = East Link AND Park and ride? = Yes AND Station = Overlake Transit Center
CREATE TABLE INST, Here is a database schema( table schema);
What are all the City/Neighborhoods whose extension is East Link and proposed parking lot status is yes and whose proposed station is Overlake transit Center?.It is not neccessary to use all the tables.
SELECT location FROM table_name_97 WHERE cause = "gas explosion" AND death_toll > 38 AND date = "10 june"
CREATE TABLE INST, Here is a database schema( table schema);
Where has a cause of gas explosion a Death toll larger than 38 on 10 june?It is not neccessary to use all the tables.
SELECT canadian_championship FROM table_name_87 WHERE league = "84 (4)"
CREATE TABLE INST, Here is a database schema( table schema);
When the league is 84 (4) what is the Canadian Championship?It is not neccessary to use all the tables.
SELECT first_elected FROM table_2668401_17 WHERE result = "Democratic-Republican gain"
CREATE TABLE INST, Here is a database schema( table schema);
When was the incumbent first elected in the district where the result was a democratic-republican gain?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Week = 2
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of week 2?.It is not neccessary to use all the tables.
SELECT first_performance FROM table_name_80 WHERE status = "replacement cast"
CREATE TABLE INST, Here is a database schema( table schema);
When was the first performance with a replacement cast?It is not neccessary to use all the tables.
SELECT f_laps FROM table_26998693_1 WHERE poles > 1.0 AND season = 2008
CREATE TABLE INST, Here is a database schema( table schema);
How much were the f/laps if poles is higher than 1.0 during 2008?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Year = 2001-2002
CREATE TABLE INST, Here is a database schema( table schema);
Which player is featured for 2001-2002?.It is not neccessary to use all the tables.
SELECT authority FROM table_name_93 WHERE gender = "coed" AND area = "kelvin grove" AND name = "tkkm o manawatu"
CREATE TABLE INST, Here is a database schema( table schema);
In the tkkm o manawatu coed school in kelvin grove what is the Authority listed/It is not neccessary to use all the tables.
SELECT MIN(week) FROM table_17861179_1 WHERE game_site = "Shea Stadium"
CREATE TABLE INST, Here is a database schema( table schema);
What is the week where the game site is Shea Stadium?It is not neccessary to use all the tables.
SELECT method FROM table_name_63 WHERE record = "3-2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the method when the record was 3-2?It is not neccessary to use all the tables.
SELECT Producer FROM table WHERE Title = city sharks
CREATE TABLE INST, Here is a database schema( table schema);
Who is the producer of city sharks?.It is not neccessary to use all the tables.
SELECT city FROM table_name_55 WHERE state = "georgia"
CREATE TABLE INST, Here is a database schema( table schema);
Which city is in Georgia?It is not neccessary to use all the tables.
SELECT "main presenter" FROM table_203_397 WHERE "launch date" < (SELECT "launch date" FROM table_203_397 WHERE "main presenter" = "barbara d'urso") ORDER BY "launch date" DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
who was the main presenter before barbara d'urso ?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Record = 22–19–4
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of the game when they had a record of 22–19–4?.It is not neccessary to use all the tables.
SELECT "title" FROM table_203_353 WHERE "producer(s)" IN ('pillo jamel', 'juju')
CREATE TABLE INST, Here is a database schema( table schema);
which songs are produced by pillo jamel or juju .It is not neccessary to use all the tables.
SELECT Frequency FROM table WHERE Socket = socket 370 AND Model Number = c3 1.4a
CREATE TABLE INST, Here is a database schema( table schema);
Which Frequency has a Socket of socket 370, and a Model Number of c3 1.4a?.It is not neccessary to use all the tables.
SELECT COUNT(econ) FROM table_name_27 WHERE s_rate = 13.76 AND runs < 325
CREATE TABLE INST, Here is a database schema( table schema);
How many econs have 13.76 as the S/Rate with runs less than 325?It is not neccessary to use all the tables.
SELECT Local Mission FROM table WHERE Local Position = ambassador AND Mission = suriname
CREATE TABLE INST, Here is a database schema( table schema);
What is the local mission that has ambassador as the local position, and a mission of suriname?.It is not neccessary to use all the tables.
SELECT Week FROM table WHERE Date = bye
CREATE TABLE INST, Here is a database schema( table schema);
What week did they have a bye?.It is not neccessary to use all the tables.
SELECT COUNT(hdtv) FROM table_15887683_16 WHERE television_service = "Elite Shopping TV"
CREATE TABLE INST, Here is a database schema( table schema);
How many values of HDTV apply when television service is elite shopping tv?It is not neccessary to use all the tables.
SELECT week FROM table_name_92 WHERE kickoff___et__ = "4:05 pm" AND result = "w 31–14"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Week when the kick off was at 4:05 pm and the result was w 31–14?It is not neccessary to use all the tables.
SELECT ground FROM table_name_37 WHERE figures = "4/23"
CREATE TABLE INST, Here is a database schema( table schema);
At which ground did Dirk Nannes have a figure of 4/23?It is not neccessary to use all the tables.
SELECT "Sport" FROM table_66510 WHERE "Name" = 'miroslav jambor richard csejtey'
CREATE TABLE INST, Here is a database schema( table schema);
What sport did Miroslav Jambor Richard Csejtey participate in?It is not neccessary to use all the tables.
SELECT iata FROM table_name_5 WHERE airport = "hamburg airport"
CREATE TABLE INST, Here is a database schema( table schema);
What kind of IATA has an Airport of hamburg airport?It is not neccessary to use all the tables.
SELECT country FROM table_name_1 WHERE city = "gafsa"
CREATE TABLE INST, Here is a database schema( table schema);
what is the country when the city is gafsa?It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_25 WHERE venue = "punt road oval"
CREATE TABLE INST, Here is a database schema( table schema);
When did the away team score at Punt Road Oval?It is not neccessary to use all the tables.
SELECT gold FROM table_name_13 WHERE bronze = "jules van dyk belgium"
CREATE TABLE INST, Here is a database schema( table schema);
Who won the gold when Jules van Dyk Belgium won bronze?It is not neccessary to use all the tables.
SELECT COUNT Population FROM table WHERE Towns/ villages = 217
CREATE TABLE INST, Here is a database schema( table schema);
NJame the total number of population for towns/villages for 217.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Incumbent = Tic Forrester
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the election when Tic Forrester ran as an incumbent?.It is not neccessary to use all the tables.
SELECT COUNT Pick FROM table WHERE Team = seattle mariners
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number pick for seattle mariners team?.It is not neccessary to use all the tables.
SELECT COUNT Season FROM table WHERE Position = 18th
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of season for 18th position.It is not neccessary to use all the tables.
SELECT week__number FROM table_21501518_1 WHERE theme = "N/A"
CREATE TABLE INST, Here is a database schema( table schema);
Which week is the theme n/aIt is not neccessary to use all the tables.
SELECT Area FROM table WHERE Decile = 8 AND Roll = 25
CREATE TABLE INST, Here is a database schema( table schema);
What is the area with decile of 8, and a 25 roll?.It is not neccessary to use all the tables.
SELECT Winning Pitcher FROM table WHERE Date = June 25
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winning pitcher on june 25?.It is not neccessary to use all the tables.
SELECT AVG(react) FROM table_name_36 WHERE rank > 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the average react for a rank more than 8?It is not neccessary to use all the tables.
SELECT "Method" FROM table_48513 WHERE "Record" = '1-1'
CREATE TABLE INST, Here is a database schema( table schema);
what is the method when the record is 1-1?It is not neccessary to use all the tables.
SELECT SUM 1872 FROM table WHERE 1866 > 856 AND 1861 > 1906 AND 1876 > 1990
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of 1872(s), when 1866 is greater than 856, when 1861 is greater than 1906, and when 1876 is greater than 1990?.It is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Circuit = pergusa
CREATE TABLE INST, Here is a database schema( table schema);
Which Constructor has Pergusa in the Circuit?.It is not neccessary to use all the tables.
SELECT Club FROM table WHERE Lost = 19
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Club that has the Lost of 19?.It is not neccessary to use all the tables.
SELECT * FROM football_data WHERE Country = "Spain" AND FTR = "A"
CREATE TABLE INST, Here is a database schema( betfront);
Which matches in Spain did the away team win?. It is not neccessary to use all the tables.
SELECT MAX Points FROM table WHERE Year = 1985 AND Chassis = march 85b
CREATE TABLE INST, Here is a database schema( table schema);
In 1985, how many points were earned by the entrant with the March 85B chassis?.It is not neccessary to use all the tables.
SELECT league_from FROM table_name_36 WHERE pick__number = 160
CREATE TABLE INST, Here is a database schema( table schema);
What is the league that has the pick #160?It is not neccessary to use all the tables.
SELECT MIN Frequency MHz FROM table WHERE Call sign = k236am
CREATE TABLE INST, Here is a database schema( table schema);
What is K236AM's lowest frequency in MHz?.It is not neccessary to use all the tables.
SELECT acceleration_0_100km_h__0_62mph_ FROM table_name_69 WHERE transmission = "5-speed manual"
CREATE TABLE INST, Here is a database schema( table schema);
What is the acceleration 0 100km/h (0 62mph) when the transmission is 5-speed manual?It is not neccessary to use all the tables.
SELECT AVG(clean_) & _jerk FROM table_name_94 WHERE bodyweight = 87.5 AND snatch < 95
CREATE TABLE INST, Here is a database schema( table schema);
What was the average clean and jerk of all weightlifters who had a bodyweight smaller than 87.5 and a snatch of less than 95?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2110" AND lab.fluid = "Joint Fluid"
CREATE TABLE INST, Here is a database schema( table schema);
give me the number of patients whose admission year is less than 2110 and lab test fluid is joint fluid?It is not neccessary to use all the tables.
SELECT MIN(grid) FROM table_name_99 WHERE time_retired = "+ 1 lap" AND points < 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the grid associated with a Time/Retired of + 1 lap and under 7 points?It is not neccessary to use all the tables.