sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT average FROM table_27496841_3 WHERE rank_by_average = 3
CREATE TABLE INST, Here is a database schema( table schema);
Name the average for rank of 3It is not neccessary to use all the tables.
SELECT Stadium FROM table WHERE City = Nizhny Novgorod
CREATE TABLE INST, Here is a database schema( table schema);
Name the stadium for nizhny novgorod.It is not neccessary to use all the tables.
SELECT MIN(week) FROM table_24786958_2 WHERE kickoff = "6:00 p.m."
CREATE TABLE INST, Here is a database schema( table schema);
What week had kickoff time at 6:00 p.m.?It is not neccessary to use all the tables.
SELECT took_office FROM table_name_8 WHERE governor = "matthew e. welsh"
CREATE TABLE INST, Here is a database schema( table schema);
Who took office under the government of Matthew E. Welsh?It is not neccessary to use all the tables.
SELECT COUNT(party) FROM table_1342013_31 WHERE result = "Resigned when appointed judge Democratic hold"
CREATE TABLE INST, Here is a database schema( table schema);
What number of party had a candidate resigned when appointed judge democratic hold?It is not neccessary to use all the tables.
SELECT artist FROM table_name_32 WHERE language = "croatian"
CREATE TABLE INST, Here is a database schema( table schema);
Which artist speaks croatian?It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_29 WHERE laps > 67 AND grid < 18 AND driver = "phil hill"
CREATE TABLE INST, Here is a database schema( table schema);
What is the time/retired for phil hill with over 67 laps and a grad smaller than 18?It is not neccessary to use all the tables.
SELECT AVG(change___percentage_) FROM table_name_51 WHERE land_area__km²_ = 546.74 AND population_density__per_km²_ > 0.5
CREATE TABLE INST, Here is a database schema( table schema);
What is the average change to have a land area of 546.74 and a population density greater than 0.5?It is not neccessary to use all the tables.
SELECT country FROM table_name_38 WHERE director = "julian schnabel"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the country for julian schnabelIt is not neccessary to use all the tables.
SELECT GT4 Cup Winner FROM table WHERE Circuit = Spa-Francorchamps Report
CREATE TABLE INST, Here is a database schema( table schema);
List all GT4 Cup winners played on the Spa-Francorchamps Report..It is not neccessary to use all the tables.
SELECT Country FROM table WHERE GDP (nominal) = $29.9 billion
CREATE TABLE INST, Here is a database schema( table schema);
Which country has a GDP (nominal) of $29.9 billion?.It is not neccessary to use all the tables.
SELECT score FROM table_name_81 WHERE attendance = "tbc" AND opponent = "sidley united"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score when the attendance shows TBC and Sidley United was the opponent?It is not neccessary to use all the tables.
SELECT score FROM table_name_58 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 AVG(attendance) FROM table_name_10 WHERE season < 1986 AND margin = 6 AND score = "13.16 (94) – 13.10 (88)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average attendnace for seasons before 1986 a margin of 6 and a Score of 13.16 (94) – 13.10 (88)?It is not neccessary to use all the tables.
SELECT AVG Lane FROM table WHERE Nationality = china
CREATE TABLE INST, Here is a database schema( table schema);
What is the average lane for china?.It is not neccessary to use all the tables.
SELECT sport FROM table_name_4 WHERE medal_count = 17
CREATE TABLE INST, Here is a database schema( table schema);
Which sport has 17 as the medal count?It is not neccessary to use all the tables.
SELECT athlete FROM table_name_74 WHERE event = "35 km"
CREATE TABLE INST, Here is a database schema( table schema);
Which athlete has a 35 km event?It is not neccessary to use all the tables.
SELECT points_against FROM table_12828723_5 WHERE "played" = "played"
CREATE TABLE INST, Here is a database schema( table schema);
What was the points againt when played is played?It is not neccessary to use all the tables.
SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-118236' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1) - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-118236' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 OFFSET 1)
CREATE TABLE INST, Here is a database schema( table schema);
what difference in weight was there in patient 006-118236 last measured on the last hospital visit compared to the second to last value measured on the last hospital visit?It is not neccessary to use all the tables.
SELECT Word wrap support FROM table WHERE Format = mobipocket
CREATE TABLE INST, Here is a database schema( table schema);
Which Word wrap support has a Format of mobipocket?.It is not neccessary to use all the tables.
SELECT AVG("sailor") FROM table_203_586 WHERE NOT "place in qt" IS NULL
CREATE TABLE INST, Here is a database schema( table schema);
what is the average number of sailors for each country during the worlds qualification tournament ?It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_32 WHERE grand_slam = "australian open" AND loser = "misaki doi"
CREATE TABLE INST, Here is a database schema( table schema);
In which year did Misaki Doi lose the Australian Open Grand Slam?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = may 20
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has a Date of may 20?.It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_47 WHERE engine = "ford zetec-r v8" AND points > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest year for an engine of ford zetec-r v8 and points greater than 0?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home team score = 22.15 (147) AND Away team score = 9.8 (62)
CREATE TABLE INST, Here is a database schema( table schema);
On which date was the game where the home teams score was 22.15 (147), and the away teams score was 9.8 (62).It is not neccessary to use all the tables.
SELECT cell_mobile_number FROM students WHERE first_name = 'timmothy' AND last_name = 'ward'
CREATE TABLE INST, Here is a database schema( table schema);
What is the mobile phone number of the student named Timmothy Ward ?It is not neccessary to use all the tables.
SELECT Station Type FROM table WHERE Callsign = DWMC-TV
CREATE TABLE INST, Here is a database schema( table schema);
What is the station type of DWMC-TV?.It is not neccessary to use all the tables.
SELECT constructor FROM table_name_67 WHERE time_retired = "engine" AND grid = 1
CREATE TABLE INST, Here is a database schema( table schema);
What constructor is grid 1 with a time/retired of engine?It is not neccessary to use all the tables.
SELECT Laps FROM table WHERE Grid < 11 AND Driver = john love
CREATE TABLE INST, Here is a database schema( table schema);
How many laps did John Love have on a grid less than 11?.It is not neccessary to use all the tables.
SELECT Total FROM table WHERE Set 3 = 13–25
CREATE TABLE INST, Here is a database schema( table schema);
Which Total has a Set 3 of 13–25?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Surface = clay AND Date = april 7, 2008
CREATE TABLE INST, Here is a database schema( table schema);
What was the April 7, 2008 score on a clay surface?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_96 WHERE result = "23rd"
CREATE TABLE INST, Here is a database schema( table schema);
Which venue led to a result of 23rd?It is not neccessary to use all the tables.
SELECT SUM Rank FROM table WHERE Gold < 1 AND Bronze = 0 AND Total > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank when there was less than 1 gold, 0 bronze, and more than 1 total?.It is not neccessary to use all the tables.
SELECT "Position" FROM table_30560 WHERE "NHL team" = 'Washington Capitals'
CREATE TABLE INST, Here is a database schema( table schema);
What position was the player who was drafted by the Washington Capitals?It is not neccessary to use all the tables.
SELECT draw FROM table_name_37 WHERE points = "10"
CREATE TABLE INST, Here is a database schema( table schema);
What is the draw for a match that had 10 points?It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Outcome = winner AND Date = 19 october 2008
CREATE TABLE INST, Here is a database schema( table schema);
Which Tournament has an Outcome of winner on 19 october 2008?.It is not neccessary to use all the tables.
SELECT Track FROM table WHERE Pole Winner = frank kimmel AND Event Name = pennsylvania 200
CREATE TABLE INST, Here is a database schema( table schema);
At which track was Frank Kimmel the Pole Winner of the Pennsylvania 200?.It is not neccessary to use all the tables.
SELECT average_ratings FROM table_name_26 WHERE romaji_title = "mendol"
CREATE TABLE INST, Here is a database schema( table schema);
What's the average rating when the Romanji title was Mendol?It is not neccessary to use all the tables.
SELECT athlete FROM table_name_67 WHERE run_2 = 50.67
CREATE TABLE INST, Here is a database schema( table schema);
Who had a run 2 of 50.67?It is not neccessary to use all the tables.
SELECT "Pole position" FROM table_45447 WHERE "Race Name" = '2006 gehl championship finale'
CREATE TABLE INST, Here is a database schema( table schema);
What pole position did 2006 gehl championship finale have?It is not neccessary to use all the tables.
SELECT COUNT(high_points) FROM table_27713583_2 WHERE date = "October 17"
CREATE TABLE INST, Here is a database schema( table schema);
How many games were on october 17?It is not neccessary to use all the tables.
SELECT to_par FROM table_name_72 WHERE player = "bill collins"
CREATE TABLE INST, Here is a database schema( table schema);
What is the to par that has bill collins as the player?It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Name = dorcus inzikuru
CREATE TABLE INST, Here is a database schema( table schema);
In what Event did Dorcus Inzikuru compete?.It is not neccessary to use all the tables.
SELECT "name" FROM table_203_222 ORDER BY "population (2010 census)" DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
what is the most populated district ?It is not neccessary to use all the tables.
SELECT years FROM table_name_5 WHERE jersey_number_s_ > 20
CREATE TABLE INST, Here is a database schema( table schema);
What years did the player with the jersey number bigger than 20 play?It is not neccessary to use all the tables.
SELECT Team #1 FROM table WHERE Round = group h
CREATE TABLE INST, Here is a database schema( table schema);
What is team 1 in group h?.It is not neccessary to use all the tables.
SELECT COUNT("chip") FROM table_204_416 WHERE "flash size" >= 3
CREATE TABLE INST, Here is a database schema( table schema);
how many chips have a flash size of at least 3k ?It is not neccessary to use all the tables.
SELECT COUNT(season) FROM table_name_53 WHERE downhill = "35" AND overall > 21
CREATE TABLE INST, Here is a database schema( table schema);
What season had a downhill of 35 and overall greater than 21?It is not neccessary to use all the tables.
SELECT group_8 FROM table_19523142_5 WHERE group_12 = "Persinab Nabire"
CREATE TABLE INST, Here is a database schema( table schema);
Who played in group 8 when Persinab Nabire played in Group 12?It is not neccessary to use all the tables.
SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force ORDER BY Police_force
CREATE TABLE INST, Here is a database schema( table schema);
Display a bar chart for how many counties correspond to each police force?, and rank X in asc order.It is not neccessary to use all the tables.
SELECT COUNT Gold FROM table WHERE Total < 23 AND Rank > 10
CREATE TABLE INST, Here is a database schema( table schema);
What's the total number of gold where the total is less than 23 and the rank is over 10?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Record = 21-11
CREATE TABLE INST, Here is a database schema( table schema);
What date was the record 21-11?.It is not neccessary to use all the tables.
SELECT score FROM table_name_4 WHERE date = "26 may 1997"
CREATE TABLE INST, Here is a database schema( table schema);
Name the score for 26 may 1997It is not neccessary to use all the tables.
SELECT "Score" FROM table_47166 WHERE "Record" = '29–23–13'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score of the game with a Record of 29 23 13?It is not neccessary to use all the tables.
SELECT event FROM table_name_39 WHERE total = "defending champion"
CREATE TABLE INST, Here is a database schema( table schema);
Which event had a total of defending champion?It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Code (IATA/ICAO) = bcm/lrbc AND 2010 > 240,735
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank of airport with a (IATA/ICAO) of bcm/lrbc code and an amount of 240,735 in 2010?.It is not neccessary to use all the tables.
SELECT T2.guest_first_name, T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id
CREATE TABLE INST, Here is a database schema( table schema);
Show the guest first names start dates and end dates of all the apartment bookings.It is not neccessary to use all the tables.
SELECT Tottenham Hotspur career FROM table WHERE Goals = 10 AND Nationality = england AND Position = df AND Club Apps = 118
CREATE TABLE INST, Here is a database schema( table schema);
What were the years of the Tottenham Hotspur career for the player with 10 goals, from England, played the df position, and had 118 club apps?.It is not neccessary to use all the tables.
SELECT MAX(date) FROM table_name_64 WHERE cores_per_die___dies_per_module = "2 / 1" AND clock = "1.4-1.6ghz"
CREATE TABLE INST, Here is a database schema( table schema);
What is the latest date with Cores per die / Dies per module of 2 / 1 and a Clock of 1.4-1.6ghz?It is not neccessary to use all the tables.
SELECT Competition FROM table WHERE Result = w AND Date = june 30, 1966
CREATE TABLE INST, Here is a database schema( table schema);
What competition has a result of W on June 30, 1966?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Winning score = –5 (70-65-69-75=279)
CREATE TABLE INST, Here is a database schema( table schema);
On which date was the Winning score –5 (70-65-69-75=279)?.It is not neccessary to use all the tables.
SELECT condition FROM table_name_14 WHERE partial_thromboplastin_time = "prolonged or unaffected"
CREATE TABLE INST, Here is a database schema( table schema);
Name the condition with partial thromboplastin time of prolonged or unaffectedIt is not neccessary to use all the tables.
SELECT SUM Goals conceded FROM table WHERE Points > 58 AND Wins < 27 AND Draws < 1
CREATE TABLE INST, Here is a database schema( table schema);
How many total goals conceded are there when the points are greater than 58, less than 27 wins, and less than 1 draws?.It is not neccessary to use all the tables.
SELECT Manufacturer FROM table WHERE Laps < 28 AND Grid < 9 AND Rider = jeremy mcwilliams
CREATE TABLE INST, Here is a database schema( table schema);
Which manufacturer has more than 28 laps and less than 9 grids with jeremy mcwilliams?.It is not neccessary to use all the tables.
SELECT wed_1_june FROM table_29218221_3 WHERE thurs_2_june = "21' 05.87 107.300mph"
CREATE TABLE INST, Here is a database schema( table schema);
What's the Wednesday June 1 practice time for the rider that did 21' 05.87 107.300mph on Thursday June 2?It is not neccessary to use all the tables.
SELECT COUNT("Tonnes of CO2 Saved") FROM table_31187 WHERE "% electricity reduction" = '8.9%'
CREATE TABLE INST, Here is a database schema( table schema);
When 8.9% is the electricity reduction percentage how many sets of tonnes of co2 saved is there?It is not neccessary to use all the tables.
SELECT Power/rpm FROM table WHERE Torque (Nm)/rpm = n·m (lb·ft)/*n·m (lb·ft) @1750
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the power when the torque is n·m (lb·ft)/*n·m (lb·ft) @1750.It is not neccessary to use all the tables.
SELECT week_1_sept_7 FROM table_name_15 WHERE preseason = "colorado state"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Week 1 result of Colorado State?It is not neccessary to use all the tables.
SELECT Team_ID, All_Games_Percent FROM basketball_match GROUP BY ACC_Home
CREATE TABLE INST, Here is a database schema( table schema);
Visualize the relationship between Team_ID and All_Games_Percent , and group by attribute ACC_Home.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Loss = shirley (0-1)
CREATE TABLE INST, Here is a database schema( table schema);
When was the date that had a Loss of Shirley (0-1)?.It is not neccessary to use all the tables.
SELECT Mat FROM table WHERE Win % = 56.25 AND League finish = 4th
CREATE TABLE INST, Here is a database schema( table schema);
Name the mat for win % for 56.25 for league finish being 4th.It is not neccessary to use all the tables.
SELECT cores FROM table_name_81 WHERE socket = "bga-1023" AND release_date = "february 2011"
CREATE TABLE INST, Here is a database schema( table schema);
What the cores with a release date of February 2011 and a BGA-1023 socket?It is not neccessary to use all the tables.
SELECT earnings__€_ FROM table_12821159_14 WHERE cuts_made = 19 AND money_list_rank = 3
CREATE TABLE INST, Here is a database schema( table schema);
What was the number of earnings were cuts made are 19 and money list rank is 3?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_95 WHERE loss = "wilcox" AND date = "jun 18"
CREATE TABLE INST, Here is a database schema( table schema);
Loss of wilcox and a Date of jun 18 had what opponent?It is not neccessary to use all the tables.
SELECT "department" FROM table_204_246 ORDER BY "total deputies" DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
what is the department with the most amount of total deputies ?It is not neccessary to use all the tables.
SELECT joined FROM table_name_74 WHERE mascot = "blue devils"
CREATE TABLE INST, Here is a database schema( table schema);
When doeas Mascot of blue devils in Gary Froebel School?It is not neccessary to use all the tables.
SELECT COUNT Game FROM table WHERE January = 20
CREATE TABLE INST, Here is a database schema( table schema);
What was the total number of games on January 20?.It is not neccessary to use all the tables.
SELECT incumbent FROM table_1342256_6 WHERE result = "New seat Republican gain"
CREATE TABLE INST, Here is a database schema( table schema);
what's the incumbent with result being new seat republican gainIt is not neccessary to use all the tables.
SELECT Date FROM table WHERE Set 2 = 21:12
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the 21:12 Set 2?.It is not neccessary to use all the tables.
SELECT COUNT(third_place) FROM table_1571238_2 WHERE team = "Toronto"
CREATE TABLE INST, Here is a database schema( table schema);
When the team is Toronto how many times did they place third?It is not neccessary to use all the tables.
SELECT date FROM table_name_98 WHERE group = "g1" AND venue = "flemington"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date for the G1 group race at Flemington?It is not neccessary to use all the tables.
SELECT COUNT("Season") FROM table_5753 WHERE "Level" = 'tier 2' AND "Position" = '1st'
CREATE TABLE INST, Here is a database schema( table schema);
Which Season has a Level of tier 2 and a Position of 1st?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Player = chris clark
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the position of chris clark.It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Result = t 14-14
CREATE TABLE INST, Here is a database schema( table schema);
Name the attendance with result of t 14-14.It is not neccessary to use all the tables.
SELECT Games played FROM table WHERE Player = Jimmy Alapag
CREATE TABLE INST, Here is a database schema( table schema);
What is the listed in games played when the player is jimmy alapag?.It is not neccessary to use all the tables.
SELECT COUNT(first_driver_s_) FROM table_13416000_3 WHERE country = "Canada"
CREATE TABLE INST, Here is a database schema( table schema);
How many entries are there for first driver for Canada?It is not neccessary to use all the tables.
SELECT surface FROM table_name_56 WHERE outcome = "runner-up" AND championship = "toronto"
CREATE TABLE INST, Here is a database schema( table schema);
What is the listed surface for the Championship of Toronto that had a runner-up outcome?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Player = gary player
CREATE TABLE INST, Here is a database schema( table schema);
What was gary player's score?.It is not neccessary to use all the tables.
SELECT season FROM table_2140071_10 WHERE premier_date = "August 16, 2010"
CREATE TABLE INST, Here is a database schema( table schema);
Name the season for august 16 2010It is not neccessary to use all the tables.
SELECT COUNT Director FROM table WHERE Series # = 158
CREATE TABLE INST, Here is a database schema( table schema);
How many directors worked on #158?.It is not neccessary to use all the tables.
SELECT MIN(goal_s_) FROM table_28286776_12 WHERE club_s_ = "Ipswich Town"
CREATE TABLE INST, Here is a database schema( table schema);
How many goals did the player from Ipswich town score?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE others = 5% AND SZDSZ = 5%
CREATE TABLE INST, Here is a database schema( table schema);
On what date do others have 5% with an SZDSZ of 5%?.It is not neccessary to use all the tables.
SELECT status FROM table_name_32 WHERE official_name = "saint-basile"
CREATE TABLE INST, Here is a database schema( table schema);
Saint-Basile has what status?It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_79 WHERE grid > 10 AND manufacturer = "proton kr"
CREATE TABLE INST, Here is a database schema( table schema);
If the manufacturer is Proton Kr and the grid was over 10 what was the time retired?It is not neccessary to use all the tables.
SELECT SUM(participants) FROM table_name_38 WHERE silver < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Participants that has Silver that's smaller than 0?It is not neccessary to use all the tables.
SELECT Driver FROM table WHERE Grid = 11
CREATE TABLE INST, Here is a database schema( table schema);
who is the driver when grid is 11?.It is not neccessary to use all the tables.
SELECT COUNT(year_named) FROM table_name_68 WHERE name = "ur sulcus" AND diameter < 1 OFFSET 145.0
CREATE TABLE INST, Here is a database schema( table schema);
How many years is ur sulcus listed with a diameter less than 1145.0?It is not neccessary to use all the tables.
SELECT Affiliation FROM table WHERE MLS Team = metrostars AND Pick # = 26
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the affiliation for mls team of metrostars and pick number of 26.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Away team score = 7.9 (51)
CREATE TABLE INST, Here is a database schema( table schema);
Which home team an Away team score of 7.9 (51)?.It is not neccessary to use all the tables.
SELECT place FROM table_name_22 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.