sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT MAX Juries FROM table WHERE Draw = 3
CREATE TABLE INST, Here is a database schema( table schema);
How many juries are there when the draw is 3?.It is not neccessary to use all the tables.
SELECT "Partner" FROM table_20110 WHERE "Opponents" = 'Mark Woodforde Martina Navratilova'
CREATE TABLE INST, Here is a database schema( table schema);
Name the partner for mark woodforde martina navratilovaIt is not neccessary to use all the tables.
SELECT Score1 FROM table WHERE Competition or tour = friendly AND Match = 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of the competition of friendly, at match 7?.It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_22 WHERE tournament = "world cross country championships" AND venue = "st etienne, france" AND extra = "team competition" AND result = "8th"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average year that anna thompson had an 8th place result in team competition at the world cross country championships in st etienne, france withIt is not neccessary to use all the tables.
SELECT winning_driver FROM table_name_25 WHERE second_driver = "jimmy bryan"
CREATE TABLE INST, Here is a database schema( table schema);
Which Winning Driver has a Second Driver of jimmy bryan?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_44 WHERE tie_no = "replay" AND attendance = "2,048"
CREATE TABLE INST, Here is a database schema( table schema);
What is Home Team when Tie No is Replay and when Attendance is 2048?It is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Time/Retired = +1.027
CREATE TABLE INST, Here is a database schema( table schema);
What Constructor has a +1.027 Time/Retired?.It is not neccessary to use all the tables.
SELECT Draws FROM table WHERE Team = 12 de Octubre
CREATE TABLE INST, Here is a database schema( table schema);
How many draws does 12 de Octubre have? .It is not neccessary to use all the tables.
SELECT SUM Gold FROM table WHERE Total > 2 AND Bronze > 1 AND Silver < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Gold, when Total is greater than 2, when Bronze is greater than 1, and when Silver is less than 1?.It is not neccessary to use all the tables.
SELECT Frequency FROM table WHERE Power (kW) = 40kw
CREATE TABLE INST, Here is a database schema( table schema);
Which frequency has 40kw power?.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_88 WHERE home_team = "north melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team playing the home team North Melbourne?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Event = ufc 154
CREATE TABLE INST, Here is a database schema( table schema);
Where was the UFC 154 match held?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Away team score = 14.14 (98)
CREATE TABLE INST, Here is a database schema( table schema);
If the Away team had a score of 14.14 (98), what's the name of the Away team?.It is not neccessary to use all the tables.
SELECT SUM q > 1.4 FROM table WHERE q > 1.3 = 455 AND q > 1.2 < 3,028
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of q > 1.4 when q > 1.3 is 455, and q >1.2 is less than 3,028?.It is not neccessary to use all the tables.
SELECT MIN(crowd) FROM table_name_50 WHERE venue = "kardinia park"
CREATE TABLE INST, Here is a database schema( table schema);
what is the lowest crowd at kardinia parkIt is not neccessary to use all the tables.
SELECT T2.cmi_cross_ref_id, T2.master_customer_id, COUNT(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id
CREATE TABLE INST, Here is a database schema( table schema);
How many business rates are related to each cmi cross reference? List cross reference id master customer id and the nIt is not neccessary to use all the tables.
SELECT Loss FROM table WHERE Opponent = angels AND Record = 50-31
CREATE TABLE INST, Here is a database schema( table schema);
What loss was against the angels with a 50-31 record?.It is not neccessary to use all the tables.
SELECT COUNT(hometown) FROM table_26263322_1 WHERE result = "Hired by Serepisos"
CREATE TABLE INST, Here is a database schema( table schema);
How many times was the result is hired by serepisos?It is not neccessary to use all the tables.
SELECT home FROM table_name_7 WHERE visitor = "bucks" AND date = "11 march 2008"
CREATE TABLE INST, Here is a database schema( table schema);
In the game on 11 March 2008 with a visiting team of Bucks who was the home team?It is not neccessary to use all the tables.
SELECT MIN(december) FROM table_name_76 WHERE opponent = "colorado avalanche"
CREATE TABLE INST, Here is a database schema( table schema);
What was the first time in December they played the Colorado Avalanche?It is not neccessary to use all the tables.
SELECT Branding FROM table WHERE Location = Metro Manila
CREATE TABLE INST, Here is a database schema( table schema);
What is the branding of metro manila?.It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Result = win AND Score = 33-22
CREATE TABLE INST, Here is a database schema( table schema);
Result of win, and a Score of 33-22 involved what event?.It is not neccessary to use all the tables.
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 51858 AND admissions.dischtime IS NULL) AND transfers.careunit = 'micu' ORDER BY transfers.intime LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
how many hours does it have been since the first time patient 51858 stayed in careunit micu on the current hospital encounter?It is not neccessary to use all the tables.
SELECT SUM(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25312) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1)
CREATE TABLE INST, Here is a database schema( table schema);
what was the amount of total output that patient 25312 had received on the first intensive care unit visit?It is not neccessary to use all the tables.
SELECT COUNT(driver) FROM table_17304308_1 WHERE fin_pos = 19
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of driver for fin pos of 19It is not neccessary to use all the tables.
SELECT position FROM table_27132791_3 WHERE pro_team = "Jacksonville Bulls"
CREATE TABLE INST, Here is a database schema( table schema);
If the proteam is Jacksonville bulls what is the position?It is not neccessary to use all the tables.
SELECT team FROM table_name_13 WHERE time = "32:17"
CREATE TABLE INST, Here is a database schema( table schema);
What team was the player that received a penalty at time 32:17 playing for?It is not neccessary to use all the tables.
SELECT College/junior/club team FROM table WHERE Player = George Hulme
CREATE TABLE INST, Here is a database schema( table schema);
What team does George Hulme play for?.It is not neccessary to use all the tables.
SELECT COUNT(position) FROM table_1473672_2 WHERE player = "Rene Villemure"
CREATE TABLE INST, Here is a database schema( table schema);
How many positions does rene villemure play?It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Round = first round AND Result = 4–1, 0–1
CREATE TABLE INST, Here is a database schema( table schema);
What season had a game in the first round with a result of 4–1, 0–1?.It is not neccessary to use all the tables.
SELECT position FROM table_name_23 WHERE goals = 18 AND level = 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the Position of the winner with 18 Goals and Level of 5?It is not neccessary to use all the tables.
SELECT Loser FROM table WHERE Winner = new york giants AND Date = november 14
CREATE TABLE INST, Here is a database schema( table schema);
Who was the loser when the New York Giants were the winners on November 14?.It is not neccessary to use all the tables.
SELECT COUNT Pos. FROM table WHERE Race 1 = 2
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of positions for race 1 being 2.It is not neccessary to use all the tables.
SELECT date FROM table_name_93 WHERE score = "4–0" AND venue = "stade leopold senghor, dakar"
CREATE TABLE INST, Here is a database schema( table schema);
On what Date in Stade Leopold Senghor Dakar was the Score 4–0?It is not neccessary to use all the tables.
SELECT COUNT Rank FROM table WHERE Player = bob murphy AND Wins < 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank for bob murphy with under 4 wins?.It is not neccessary to use all the tables.
SELECT COUNT(rider_names) FROM table_27833186_1 WHERE horse_name = "OMR Tsunami"
CREATE TABLE INST, Here is a database schema( table schema);
How many different riders are there that won riding Omr Tsunami?It is not neccessary to use all the tables.
SELECT MIN First elected FROM table WHERE Incumbent = Mark W. Hannaford
CREATE TABLE INST, Here is a database schema( table schema);
What year was incumbent mark w. hannaford elected?.It is not neccessary to use all the tables.
SELECT sub_parish__sogn_ FROM table_name_66 WHERE year_built < 1883 AND parish__prestegjeld_ = "jostedal parish" AND location_of_the_church = "gaupne"
CREATE TABLE INST, Here is a database schema( table schema);
Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne?It is not neccessary to use all the tables.
SELECT MIN("Crowd") FROM table_11200 WHERE "Away team score" = '7.15 (57)'
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest crowd size for an away team that scored 7.15 (57)?It is not neccessary to use all the tables.
SELECT title FROM table_27823058_1 WHERE written_by = "Katie Palmer"
CREATE TABLE INST, Here is a database schema( table schema);
Which episodes did Katie Palmer write?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Game = 5
CREATE TABLE INST, Here is a database schema( table schema);
What's the score of Game 5?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Height = 6-5
CREATE TABLE INST, Here is a database schema( table schema);
Who is every player with a height of 6-5?.It is not neccessary to use all the tables.
SELECT MAX Money list rank FROM table WHERE Top 25 < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the greatest money list ranking that has a Top 25 higher than 2?.It is not neccessary to use all the tables.
SELECT class_aAAAA FROM table_name_56 WHERE school_year = "1990-91"
CREATE TABLE INST, Here is a database schema( table schema);
what AAAAA class has the school year of 1990-91?It is not neccessary to use all the tables.
SELECT date_of_completion FROM table_12078626_1 WHERE success = "Yes"
CREATE TABLE INST, Here is a database schema( table schema);
what's the date of completion where success is yesIt is not neccessary to use all the tables.
SELECT new_entries FROM table_name_71 WHERE fixtures = 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the value for New entries when the value for Fixtures is 2?It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_7 WHERE time = "12:49:08"
CREATE TABLE INST, Here is a database schema( table schema);
When was the time of 12:49:08 first set?It is not neccessary to use all the tables.
SELECT COUNT College FROM table WHERE Pick = 57
CREATE TABLE INST, Here is a database schema( table schema);
How many colleges did the player picked 57 attend?.It is not neccessary to use all the tables.
SELECT place FROM table_name_13 WHERE score = 68 - 73 - 66 - 74 = 281
CREATE TABLE INST, Here is a database schema( table schema);
What is the Place of the Player with a Score of 68-73-66-74=281?It is not neccessary to use all the tables.
SELECT MIN(no) FROM table_23014685_1 WHERE area_damaged = "Islamic University campus"
CREATE TABLE INST, Here is a database schema( table schema);
What number missile led to damage to the Islamic University campus?It is not neccessary to use all the tables.
SELECT date FROM table_name_18 WHERE partner = "jodi kenoyer"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date for the match where Tweedie-Yates' partner was jodi kenoyer?It is not neccessary to use all the tables.
SELECT MAX To par FROM table WHERE Total < 148
CREATE TABLE INST, Here is a database schema( table schema);
Which To par is the highest one that has a Total smaller than 148?.It is not neccessary to use all the tables.
SELECT Sport FROM table WHERE Gold > 0 AND Silver = 2
CREATE TABLE INST, Here is a database schema( table schema);
What sport has a Gold larger than 0, and a Silver of 2?.It is not neccessary to use all the tables.
SELECT 2010 FROM table WHERE 2011 = a AND 2006 = a
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2010 result of a tournament that is A in 2006 and A in 2011?.It is not neccessary to use all the tables.
SELECT COUNT Round FROM table WHERE Fastest lap = Alex Ardoin
CREATE TABLE INST, Here is a database schema( table schema);
How many rounds did Alex Ardoin achieved a fastest lap?.It is not neccessary to use all the tables.
SELECT Inclination FROM table WHERE Eccentricity = 0.06 +0.06 −0.11
CREATE TABLE INST, Here is a database schema( table schema);
What Inclination has Eccentricity of 0.06 +0.06 −0.11?.It is not neccessary to use all the tables.
SELECT T1.staff_id, T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = "Department Manager"
CREATE TABLE INST, Here is a database schema( table schema);
Return the staff ids and genders for any staff with the title Department Manager.It is not neccessary to use all the tables.
SELECT 2011 FROM table WHERE Tournament = monte carlo masters
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the 2011 tournament of monte carlo masters.It is not neccessary to use all the tables.
SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Marianne" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Which vocal type has the band mate with first name "Marianne" played the most?It is not neccessary to use all the tables.
SELECT high_assists FROM table_17322817_6 WHERE high_rebounds = "Yi Jianlian , Brook Lopez (7)"
CREATE TABLE INST, Here is a database schema( table schema);
Name the high assists for yi jianlian brook lopez (7)It is not neccessary to use all the tables.
SELECT tournament FROM table_name_77 WHERE 2004 = "1r" AND 2007 = "1r"
CREATE TABLE INST, Here is a database schema( table schema);
What tournament has 1r as a 2004 and 1r as a 2007?It is not neccessary to use all the tables.
SELECT COUNT(rank_07_11) FROM table_167354_2 WHERE world_ranking = "4"
CREATE TABLE INST, Here is a database schema( table schema);
How many figures are there for Rank 07-11 when the world ranking is 4?It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Week = 3
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance for the game in Week 3?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Year > 1992 AND Location = murcia AND Score = 0-3
CREATE TABLE INST, Here is a database schema( table schema);
What day did the team play in murcia with a score of 0-3 after 1992?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Date = december 12
CREATE TABLE INST, Here is a database schema( table schema);
What is Result, when Date is "December 12"?.It is not neccessary to use all the tables.
SELECT AVG Pick FROM table WHERE Overall < 28 AND Round = 3
CREATE TABLE INST, Here is a database schema( table schema);
What number pick was the player drafted in round 3 at #28 overall?.It is not neccessary to use all the tables.
SELECT U.S. Rap FROM table WHERE Year = 2000 AND U.S. = 105
CREATE TABLE INST, Here is a database schema( table schema);
What is the U.S. rap ranking in 2000 of the U.S. 105 single?.It is not neccessary to use all the tables.
SELECT year FROM table_181892_4 WHERE race_status = "Piston"
CREATE TABLE INST, Here is a database schema( table schema);
What year(s) was the race status piston?It is not neccessary to use all the tables.
SELECT title FROM table_12564633_1 WHERE directed_by = "Richard Thorpe"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the episode that Richard Thorpe directed?It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Formula = grand prix
CREATE TABLE INST, Here is a database schema( table schema);
How many years had a formula of Grand Prix?.It is not neccessary to use all the tables.
SELECT class FROM table_name_84 WHERE quantity < 10 AND number_s_ = "names"
CREATE TABLE INST, Here is a database schema( table schema);
Which class has fewer than 10 and number(s) names?It is not neccessary to use all the tables.
SELECT COUNT(grid) FROM table_name_10 WHERE driver = "heinz-harald frentzen"
CREATE TABLE INST, Here is a database schema( table schema);
I want the total number of Grids for heinz-harald frentzenIt is not neccessary to use all the tables.
SELECT date FROM table_name_65 WHERE venue = "cadott rock fest"
CREATE TABLE INST, Here is a database schema( table schema);
When is Cadott Rock Fest taken place?It is not neccessary to use all the tables.
SELECT title FROM table_28195898_1 WHERE № = 65
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of episode No. 65?It is not neccessary to use all the tables.
SELECT MIN(drawn) FROM table_name_39 WHERE played > 39
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of games drawn associated with over 39 games played?It is not neccessary to use all the tables.
SELECT Chassis FROM table WHERE Points = 0 AND Entrant = automobiles gonfaronnaises sportives
CREATE TABLE INST, Here is a database schema( table schema);
Which chassis used by the entrant Automobiles Gonfaronnaises Sportives scored 0 points?.It is not neccessary to use all the tables.
SELECT capacity_in_use FROM table_name_31 WHERE annual_change = "21.8%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Capacity in use with an Annual change that is 21.8%?It is not neccessary to use all the tables.
SELECT MIN("Silver") FROM table_43929 WHERE "Bronze" < '20' AND "Total" = '1' AND "Sport" = 'water polo' AND "Gold" < '0'
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest number of silvers associated with bronzes under 20, totals of 1, golds of 0, and in Water Polo?It is not neccessary to use all the tables.
SELECT MIN # of candidates FROM table WHERE # of seats won = 80
CREATE TABLE INST, Here is a database schema( table schema);
What is the least number of candidates running were there when 80 seats were won?.It is not neccessary to use all the tables.
SELECT "Country" FROM table_78775 WHERE "Date" = 'december 8, 1968'
CREATE TABLE INST, Here is a database schema( table schema);
What was the nationality of the winner on December 8, 1968?It is not neccessary to use all the tables.
SELECT MIN(goal_gain) FROM table_name_31 WHERE game < 18
CREATE TABLE INST, Here is a database schema( table schema);
What team with a Game smaller than 18 has the lowest Goal Gain?It is not neccessary to use all the tables.
SELECT Took AS office FROM table_name_76 WHERE location = "dover" AND type = "executive"
CREATE TABLE INST, Here is a database schema( table schema);
What date did the executive office in Dover take office?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Place = t2
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has a Place of t2?.It is not neccessary to use all the tables.
SELECT record FROM table_name_41 WHERE date = "july 19"
CREATE TABLE INST, Here is a database schema( table schema);
What is the record of the cubs on July 19?It is not neccessary to use all the tables.
SELECT Race 2 FROM table WHERE Race 1 = dnf AND Race 3 = dnf AND Track = winton
CREATE TABLE INST, Here is a database schema( table schema);
What Race 2 has a Race 1 of dnf, a Race 3 of dnf, and the Track Winton?.It is not neccessary to use all the tables.
SELECT location FROM table_name_36 WHERE method = "decision" AND record = "1-2"
CREATE TABLE INST, Here is a database schema( table schema);
Which location led to a decision and a record of 1-2?It is not neccessary to use all the tables.
SELECT Tie no FROM table WHERE Away team = port vale
CREATE TABLE INST, Here is a database schema( table schema);
What is the Tie no of the Port Vale Away game?.It is not neccessary to use all the tables.
SELECT safari FROM table_name_58 WHERE period = "2012 q4"
CREATE TABLE INST, Here is a database schema( table schema);
What safari has 2012 q4 as the period?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_26 WHERE date = "07-09-2012"
CREATE TABLE INST, Here is a database schema( table schema);
What opponent played on 07-09-2012?It is not neccessary to use all the tables.
SELECT city FROM table_name_42 WHERE name = "estonian university of life sciences"
CREATE TABLE INST, Here is a database schema( table schema);
In what city is the Estonian University of Life Sciences located?It is not neccessary to use all the tables.
SELECT SUM Total FROM table WHERE Gymnast = robert stanescu ( rou ) AND B Score > 8.75
CREATE TABLE INST, Here is a database schema( table schema);
What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75?.It is not neccessary to use all the tables.
SELECT SUM League Cup Apps FROM table WHERE FA Cup Goals > 0 AND FA Cup Apps < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of league cup appearances for the players with FA cup goals larger than 0 and FA cup appearances less than 2?.It is not neccessary to use all the tables.
SELECT high_assists FROM table_23248869_6 WHERE team = "Portland"
CREATE TABLE INST, Here is a database schema( table schema);
Who did the high assists in the game against Portland?It is not neccessary to use all the tables.
SELECT SUM Gold FROM table WHERE Silver > 1 AND Rank > 1 AND Total > 4 AND Bronze > 4
CREATE TABLE INST, Here is a database schema( table schema);
How many golds had a silver of more than 1, rank more than 1, total of more than 4 when the bronze was also more than 4?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Home Team = philadelphia AND Date = april 16
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the game played on April 16 with Philadelphia as home team?.It is not neccessary to use all the tables.
SELECT COUNT 1970 FROM table WHERE 2000 < 32,093 AND 1980 > 64,975
CREATE TABLE INST, Here is a database schema( table schema);
Of 2000 growth less than 32,093 and 1980 growth over 64,975, what is the 1970 total number?.It is not neccessary to use all the tables.
SELECT Results FROM table WHERE Incumbent = Jim McCrery
CREATE TABLE INST, Here is a database schema( table schema);
What were the results for incumbent Jim McCrery?.It is not neccessary to use all the tables.
SELECT District FROM table WHERE Incumbent = Mike Rogers
CREATE TABLE INST, Here is a database schema( table schema);
Name the district for mike rogers.It is not neccessary to use all the tables.
SELECT date FROM table_name_23 WHERE week = 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of week 8?It is not neccessary to use all the tables.
SELECT Location/Attendance FROM table WHERE Date = dec 2
CREATE TABLE INST, Here is a database schema( table schema);
What was the Location/Attendance on Dec 2?.It is not neccessary to use all the tables.