sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT To par FROM table WHERE Player = greg norman
CREATE TABLE INST, Here is a database schema( table schema);
What is To Par, when Player is Greg Norman?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Event = shido usa mma AND Opponent = raphael assunção
CREATE TABLE INST, Here is a database schema( table schema);
what is the record when the event is shido usa mma and the opponent is raphael assunção?.It is not neccessary to use all the tables.
SELECT "Lost" FROM table_46212 WHERE "Club" = 'club'
CREATE TABLE INST, Here is a database schema( table schema);
Which Lost has a Club of club?It is not neccessary to use all the tables.
SELECT COUNT Rank FROM table WHERE Years = 1996–2007 AND Goals > 108
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Rank for 1996–2007, when there are more than 108 goals?.It is not neccessary to use all the tables.
SELECT road_team FROM table_name_68 WHERE result = "99-90"
CREATE TABLE INST, Here is a database schema( table schema);
For the game ending in a final result of 99-90 who was the Road Team?It is not neccessary to use all the tables.
SELECT MAX Innings FROM table WHERE Runs < 342 AND Matches > 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest number of innings with less than 342 runs and more than 4 matches?.It is not neccessary to use all the tables.
SELECT location_attendance FROM table_23281862_6 WHERE high_points = "Carl Landry (25)"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game in which Carl Landry (25) did the most high points played?It is not neccessary to use all the tables.
SELECT MIN Round FROM table WHERE Position = defensive back AND Pick = 226
CREATE TABLE INST, Here is a database schema( table schema);
Name the Round which has a Position of defensive back and a Pick of 226?.It is not neccessary to use all the tables.
SELECT Points FROM table WHERE Laps Led = 0 AND Grid = 10
CREATE TABLE INST, Here is a database schema( table schema);
How many points were scored by a car that led for 0 laps and started in grid 10?.It is not neccessary to use all the tables.
SELECT AVG(crowd) FROM table_name_58 WHERE home_team = "geelong"
CREATE TABLE INST, Here is a database schema( table schema);
What was the crowd size when Geelong played at home?It is not neccessary to use all the tables.
SELECT COUNT 2006–2007 FROM table WHERE 2007–2008 = Jack Huczek
CREATE TABLE INST, Here is a database schema( table schema);
what is the total number of 2006-2007 and 2007-2008 for jack huczek?.It is not neccessary to use all the tables.
SELECT doctor FROM table_name_69 WHERE title = "city of death"
CREATE TABLE INST, Here is a database schema( table schema);
Which Doctor is featured in City of Death?It is not neccessary to use all the tables.
SELECT Time/Retired FROM table WHERE Laps = 49 AND Constructor = vanwall
CREATE TABLE INST, Here is a database schema( table schema);
What was the Vanwall time/retired with 49 laps?.It is not neccessary to use all the tables.
SELECT Galician ( Reintegrationist ) FROM table WHERE Galician ( Official ) = Adeus*
CREATE TABLE INST, Here is a database schema( table schema);
What is the Galician (reintegrationist) word of the Galician (Official) is adeus*?.It is not neccessary to use all the tables.
SELECT hebrew FROM table_26919_6 WHERE arabic = "tisʕ-"
CREATE TABLE INST, Here is a database schema( table schema);
Name the hebrew for tisʕ-It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Height > 2.12
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of the player who is taller than 2.12?.It is not neccessary to use all the tables.
SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Masters Thesis Proj%' OR name LIKE '%Masters Thesis Proj%') AND credits = 5
CREATE TABLE INST, Here is a database schema( table schema);
I need to see Masters Thesis Proj courses of 5 credits .It is not neccessary to use all the tables.
SELECT winner FROM table_name_98 WHERE course = "rest day" AND date = "13 july"
CREATE TABLE INST, Here is a database schema( table schema);
Name the winner for rest day for 13 julyIt is not neccessary to use all the tables.
SELECT MAX(enrollment) FROM table_16168849_1 WHERE institution = "St. Andrews University"
CREATE TABLE INST, Here is a database schema( table schema);
Name the maximum enrollment for st. andrews universityIt is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Venue = mcg
CREATE TABLE INST, Here is a database schema( table schema);
What was the away score at the game at MCG?.It is not neccessary to use all the tables.
SELECT second FROM table_name_2 WHERE lead = "ilian kirilov"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the second when Ilian Kirilov was the lead?It is not neccessary to use all the tables.
SELECT Height (m) FROM table WHERE City = frankfurt AND Height (ft) = 850
CREATE TABLE INST, Here is a database schema( table schema);
What is the height in meters for a building in Frankfurt that is 850 feet tall?.It is not neccessary to use all the tables.
SELECT Third place FROM table WHERE Total > 2 AND Rank < 2
CREATE TABLE INST, Here is a database schema( table schema);
How many third places has a total greater than 2 and a rank less than 2?.It is not neccessary to use all the tables.
SELECT MIN(purse__) AS $__ FROM table_11622255_1 WHERE tournament = "Ko Olina Senior Invitational"
CREATE TABLE INST, Here is a database schema( table schema);
what is the minimum purse( $ ) where tournament is ko olina senior invitationalIt is not neccessary to use all the tables.
SELECT MAX(wins) FROM table_name_38 WHERE top_5 > 0 AND events < 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the most wins associated with under 4 events with 0 top-5s?It is not neccessary to use all the tables.
SELECT MAX(10 AS _c_pts) FROM table_25887826_17 WHERE total_pts = 39
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest number of 10 C points for a team with 39 total points?It is not neccessary to use all the tables.
SELECT date FROM table_1506950_4 WHERE rounds = "66-67-70-67"
CREATE TABLE INST, Here is a database schema( table schema);
What days were the rounds of 66-67-70-67 recorded?It is not neccessary to use all the tables.
SELECT Minister FROM table WHERE Left office = 1960
CREATE TABLE INST, Here is a database schema( table schema);
Who is the mInister who left office during 1960?.It is not neccessary to use all the tables.
SELECT no FROM table_18442691_2 WHERE released = "Cannot handle non-empty timestamp argument! 2007"
CREATE TABLE INST, Here is a database schema( table schema);
When cannot handle non-empty timestamp argument! 2007 is released what is the no.?It is not neccessary to use all the tables.
SELECT Substrate FROM table WHERE OMIM = 176000
CREATE TABLE INST, Here is a database schema( table schema);
Which substrate has an OMIM of 176000?.It is not neccessary to use all the tables.
SELECT part_name, COUNT(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name ORDER BY COUNT(*) DESC
CREATE TABLE INST, Here is a database schema( table schema);
Visualize a bar chart for how many assets can each parts be used in? List the part name and the number, and I want to list Y-axis from high to low order.It is not neccessary to use all the tables.
SELECT Race 4 FROM table WHERE Driver = kevin heffernan
CREATE TABLE INST, Here is a database schema( table schema);
What's the value for race 4 for driver kevin heffernan?.It is not neccessary to use all the tables.
SELECT Elector FROM table WHERE Place of birth = san severino
CREATE TABLE INST, Here is a database schema( table schema);
What Elector has the Place of birth of San Severino?.It is not neccessary to use all the tables.
SELECT MAX Rank FROM table WHERE Name = laure manaudou
CREATE TABLE INST, Here is a database schema( table schema);
What is Laure Manaudou's highest rank?.It is not neccessary to use all the tables.
SELECT commissioned FROM table_1206583_2 WHERE builder = "Scotts, Greenock" AND name = "Chieftain"
CREATE TABLE INST, Here is a database schema( table schema);
What are the commissioned for scotts greenock and chieftain?It is not neccessary to use all the tables.
SELECT date FROM table_name_92 WHERE score = "4–6, 2–6"
CREATE TABLE INST, Here is a database schema( table schema);
Which date has a Score of 4 6, 2 6?It is not neccessary to use all the tables.
SELECT MIN Absorb (nm) FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest dye absoprtion in nm?.It is not neccessary to use all the tables.
SELECT MIN Bronze FROM table WHERE Nation = total AND Gold < 14
CREATE TABLE INST, Here is a database schema( table schema);
Which Bronze is the lowest one that has a Nation of total, and a Gold smaller than 14?.It is not neccessary to use all the tables.
SELECT date FROM table_name_24 WHERE location = "boston garden" AND record = "22-4"
CREATE TABLE INST, Here is a database schema( table schema);
On what date did they play in Boston Garden with a record of 22-4?It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Gold = 3 AND Bronze = 4 AND Total > 8
CREATE TABLE INST, Here is a database schema( table schema);
Which Rank has a Gold of 3, and a Bronze of 4, and a Total larger than 8?.It is not neccessary to use all the tables.
SELECT head_coach FROM table_name_34 WHERE shirt_sponsor = "karstadt quelle versicherungen"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the head coach of the team whose shirt sponsor is karstadt quelle versicherungen?It is not neccessary to use all the tables.
SELECT date FROM table_name_40 WHERE venue = "junction oval"
CREATE TABLE INST, Here is a database schema( table schema);
On which date was a game played at Junction Oval?It is not neccessary to use all the tables.
SELECT Assists per game FROM table WHERE Points per game = 6.8
CREATE TABLE INST, Here is a database schema( table schema);
How many assists per game did he have when he had 6.8 points per game?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Result = 5-0
CREATE TABLE INST, Here is a database schema( table schema);
Which Venue has a Result of 5-0?.It is not neccessary to use all the tables.
SELECT surface FROM table_name_91 WHERE date = "march 2, 1997"
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface on march 2 1997?It is not neccessary to use all the tables.
SELECT date FROM table_11636213_7 WHERE result = "6–2, 4–6, 6–4"
CREATE TABLE INST, Here is a database schema( table schema);
What date was the result 6–2 4–6 6–4?It is not neccessary to use all the tables.
SELECT MAX(caps) FROM table_name_5 WHERE goals = 0 AND rank = 15
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum cap number where 0 goals were scored with a rank of 15?It is not neccessary to use all the tables.
SELECT AVG("Apps") FROM table_69722 WHERE "Team" = 'smederevo'
CREATE TABLE INST, Here is a database schema( table schema);
Name the average apps for smederevoIt is not neccessary to use all the tables.
SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-23724' AND NOT patient.hospitaldischargetime IS NULL ORDER BY...
CREATE TABLE INST, Here is a database schema( table schema);
in the last hospital encounter when patient 031-23724 last got a microbiology test?It is not neccessary to use all the tables.
SELECT Elector FROM table WHERE Title = deacon of s. maria in domnica
CREATE TABLE INST, Here is a database schema( table schema);
What is listed as the Elector with the Title of Deacon of S. Maria in Domnica?.It is not neccessary to use all the tables.
SELECT Film title used in nomination FROM table WHERE Serbian title = бело одело
CREATE TABLE INST, Here is a database schema( table schema);
What is the Film title used in nomination of the Film with a Serbian title of бело одело?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Crowd > 14,000 AND Venue = junction oval
CREATE TABLE INST, Here is a database schema( table schema);
Which home team had a crowd size of 14,000 at Junction Oval?.It is not neccessary to use all the tables.
SELECT carrier FROM table_name_37 WHERE package_version = "5.0.0.742"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE CARRIER WITH 5.0.0.742 VERSION?It is not neccessary to use all the tables.
SELECT week_7_oct_12 FROM table_name_79 WHERE week_9_oct_26 = "tulsa (7-0)"
CREATE TABLE INST, Here is a database schema( table schema);
Which Week 7 Oct 12 has a Week 9 Oct 26 of tulsa (7-0)?It is not neccessary to use all the tables.
SELECT "High rebounds" FROM table_5804 WHERE "Record" = '18-14'
CREATE TABLE INST, Here is a database schema( table schema);
What is the high rebounds with a record that is 18-14?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Cap(s) = 16
CREATE TABLE INST, Here is a database schema( table schema);
When 16 is the cap who is the player?.It is not neccessary to use all the tables.
SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '021-246447' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
how did patient 021-246447 last entered hospital in a year before?It is not neccessary to use all the tables.
SELECT SUM Bronze FROM table WHERE Silver = 1 AND Rank < 4 AND Gold > 1
CREATE TABLE INST, Here is a database schema( table schema);
What shows for bronze when silver is 1, rank is smaller than 4, and gold is larger than 1?.It is not neccessary to use all the tables.
SELECT COUNT Gold FROM table WHERE Rank = 2 AND Total > 21
CREATE TABLE INST, Here is a database schema( table schema);
What's the gold medal count ranked 2 with a total of more than 21?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Opponent = new england patriots
CREATE TABLE INST, Here is a database schema( table schema);
What was the final of the New England Patriots game?.It is not neccessary to use all the tables.
SELECT completed FROM table_name_25 WHERE name = "satsuki dd-27"
CREATE TABLE INST, Here is a database schema( table schema);
When was satsuki dd-27 completed?It is not neccessary to use all the tables.
SELECT COUNT(voter_registration) FROM table_name_78 WHERE byut = 48.2
CREATE TABLE INST, Here is a database schema( table schema);
What is the voter registration that has a BYut of 48.2?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Crnry athrscl natve vssl"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients whose diagnoses short title is crnry athrscl natve vssl?It is not neccessary to use all the tables.
SELECT race FROM table_name_60 WHERE finish = "1st" AND track = "saratoga race course"
CREATE TABLE INST, Here is a database schema( table schema);
Which race had a finish of 1st at Saratoga Race Course?It is not neccessary to use all the tables.
SELECT MIN League Cup goals FROM table WHERE Scorer = denis law
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest League Cup Goals, when Scorer is Denis Law?.It is not neccessary to use all the tables.
SELECT Drawn FROM table WHERE Try Bonus = 9 AND Lost = 4
CREATE TABLE INST, Here is a database schema( table schema);
When the try bonus is 9 and the lost 4, what is the drawn?.It is not neccessary to use all the tables.
SELECT MAX(week) FROM table_13259034_2 WHERE date = "November 27, 1977"
CREATE TABLE INST, Here is a database schema( table schema);
In what week was November 27 1977?It is not neccessary to use all the tables.
SELECT years FROM table_name_56 WHERE player = "alton lister category:articles with hcards"
CREATE TABLE INST, Here is a database schema( table schema);
Alton Lister Category:Articles with hCards has what as the listed years?It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Production code = 06-03-521
CREATE TABLE INST, Here is a database schema( table schema);
What was the original air for the 06-03-521 production code?.It is not neccessary to use all the tables.
SELECT MAX(round) FROM table_name_55 WHERE nationality = "finland"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest round for the pick from Finland?It is not neccessary to use all the tables.
SELECT MAX Poles FROM table WHERE Points = 64
CREATE TABLE INST, Here is a database schema( table schema);
Name the most poles for 64 points.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Record = 22-16-6
CREATE TABLE INST, Here is a database schema( table schema);
What was the final score the game where the Thrashers over-all record went to 22-16-6?.It is not neccessary to use all the tables.
SELECT copyright_information FROM table_11222744_2 WHERE title = "AM/PM Callanetics"
CREATE TABLE INST, Here is a database schema( table schema);
where title is am/pm callanetics what are all the copyright information?It is not neccessary to use all the tables.
SELECT season FROM table_name_15 WHERE opponent = "roma"
CREATE TABLE INST, Here is a database schema( table schema);
What season has roma as the opponent?It is not neccessary to use all the tables.
SELECT MIN No. in season FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the least number in a season?.It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Gross = $35,976,000
CREATE TABLE INST, Here is a database schema( table schema);
What rank has a gross of $35,976,000?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Game = 77
CREATE TABLE INST, Here is a database schema( table schema);
What's the score of game 77?.It is not neccessary to use all the tables.
SELECT Third FROM table WHERE Second = xu xiaoming
CREATE TABLE INST, Here is a database schema( table schema);
Who is third to Xu Xiaoming at second?.It is not neccessary to use all the tables.
SELECT "La Crescenta- Montrose" FROM table_78542 WHERE "Tujunga" = 'moderate'
CREATE TABLE INST, Here is a database schema( table schema);
When Tujunga is moderate, what is La Crescenta-Montrose?It is not neccessary to use all the tables.
SELECT AVG Year FROM table WHERE Rank-Final < 2 AND Apparatus = team AND Score-Qualifying < 248.275
CREATE TABLE INST, Here is a database schema( table schema);
Name the Year with a Rank-Final smaller than 2, an Apparatus of team, and a Score-Qualifying smaller than 248.275?.It is not neccessary to use all the tables.
SELECT Chart peak FROM table WHERE Recorded = 2/19/69
CREATE TABLE INST, Here is a database schema( table schema);
Which Chart peak was Recorded on 2/19/69?.It is not neccessary to use all the tables.
SELECT member FROM table_name_50 WHERE electorate = "kennedy"
CREATE TABLE INST, Here is a database schema( table schema);
Which member has an Electorate of kennedy?It is not neccessary to use all the tables.
SELECT week FROM table_name_59 WHERE attendance = "75,866"
CREATE TABLE INST, Here is a database schema( table schema);
In What Week was the Attendance 75866?It is not neccessary to use all the tables.
SELECT MAX(byes) FROM table_name_61 WHERE against < 1794 AND losses = 6 AND draws < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest value for Byes when Against is less than 1794 when Losses is "6" and when Draws is less than 0?It is not neccessary to use all the tables.
SELECT 2012 FROM table_name_67 WHERE 2010 = "1.3" AND 2008 = "3.6"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2012 value with a 1.3 in 2010 and a 3.6 in 2008?It is not neccessary to use all the tables.
SELECT High rebounds FROM table WHERE Date = April 11
CREATE TABLE INST, Here is a database schema( table schema);
what is the high rebounds stat on april 11.It is not neccessary to use all the tables.
SELECT MIN Played FROM table WHERE Wins > 15 AND Goals against < 42
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number played of the club with more than 15 wins and less than 42 goals against?.It is not neccessary to use all the tables.
SELECT fourth FROM table_17111812_1 WHERE sixth = "Air Traffic"
CREATE TABLE INST, Here is a database schema( table schema);
Who was in 4th when in 6th is Air Traffic?It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE 2001 = a AND 2008 = a AND 2010 = qf
CREATE TABLE INST, Here is a database schema( table schema);
Which tournament's 2001 and 2008 were a when 2010 was qf?.It is not neccessary to use all the tables.
SELECT MIN Bronze FROM table WHERE Nation = west germany AND Gold > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest bronze with a Nation of west germany, and a Gold larger than 0?.It is not neccessary to use all the tables.
SELECT MAX DVD No. FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest number of DVDs?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = jul 31 AND Score = w 5-1
CREATE TABLE INST, Here is a database schema( table schema);
Name the opponent for jul 31 and score of w 5-1.It is not neccessary to use all the tables.
SELECT High rebounds FROM table WHERE High assists = Brandon Jennings (8)
CREATE TABLE INST, Here is a database schema( table schema);
Who did the high rebounds in the game in which Brandon Jennings (8) did the high assists?.It is not neccessary to use all the tables.
SELECT COUNT(candidates) FROM table_1341930_38 WHERE incumbent = "Alvin Bush"
CREATE TABLE INST, Here is a database schema( table schema);
How many incumbents come from alvin bush's district?It is not neccessary to use all the tables.
SELECT pos FROM table_name_2 WHERE team = "new york knicks"
CREATE TABLE INST, Here is a database schema( table schema);
What is the pos for the New York Knicks?It is not neccessary to use all the tables.
SELECT visitor FROM table_name_42 WHERE home = "kings"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the visiting team that played against the Kings?It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_71 WHERE points < 9 AND rank = "24th"
CREATE TABLE INST, Here is a database schema( table schema);
What's the average Year that has Points that's smaller than 9 with a Rank of 24th?It is not neccessary to use all the tables.
SELECT "Total" FROM table_59252 WHERE "Year(s) won" = '1997'
CREATE TABLE INST, Here is a database schema( table schema);
In 1997, what was the final total?It is not neccessary to use all the tables.
SELECT Hanyu Pinyin FROM table WHERE Name = jinning township
CREATE TABLE INST, Here is a database schema( table schema);
What Hanyu Pinyin is in the Jinning Township?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Loss = mccaskill (9-11)
CREATE TABLE INST, Here is a database schema( table schema);
What opponent has a loss of McCaskill (9-11)?.It is not neccessary to use all the tables.