instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What was Scotland's score at the rank 3 Competition of BHC?
|
SELECT Score Scotland's score is shown first. FROM table WHERE Competition = bhc AND Rank = 3
|
Translate the following into a SQL query
|
What is the sum of draws with 274-357 goals?
|
SELECT SUM Drawn FROM table WHERE Goals = 274-357
|
Translate the following into a SQL query
|
What is the lowest played 2 number with less than 83 losses and less than 65 draws with Chernomorets Novorossiysk in season 8?
|
SELECT MIN Played 2 FROM table WHERE Lost > 83 AND Seasons = 8 AND Club 1 = chernomorets novorossiysk AND Drawn < 65
|
Translate the following into a SQL query
|
What is the rank number with 562-506 goals before season 13?
|
SELECT COUNT Rank FROM table WHERE Goals = 562-506 AND Seasons < 13
|
Translate the following into a SQL query
|
How many seasons have goals of 261-338 with more than 111 losses?
|
SELECT COUNT Seasons FROM table WHERE Goals = 261-338 AND Lost > 111
|
Translate the following into a SQL query
|
What is the highest season number with 57 draws, rank 20, and more than 1 spell?
|
SELECT MAX Seasons FROM table WHERE Drawn = 57 AND Rank = 20 AND Spells > 1
|
Translate the following into a SQL query
|
What was the results of the game at Doha?
|
SELECT Result FROM table WHERE Venue = doha
|
Translate the following into a SQL query
|
What was the score during the competition of 1998 fifa world cup qualification?
|
SELECT Score FROM table WHERE Competition = 1998 fifa world cup qualification
|
Translate the following into a SQL query
|
What is the competition that took place on October 1, 1994?
|
SELECT Competition FROM table WHERE Date = october 1, 1994
|
Translate the following into a SQL query
|
What is the competition that had a 2-2 result?
|
SELECT Competition FROM table WHERE Result = 2-2
|
Translate the following into a SQL query
|
Where did the competition take place that had a 4-2 result?
|
SELECT Venue FROM table WHERE Result = 4-2
|
Translate the following into a SQL query
|
Where was the competition that took place that had a 5-1 result?
|
SELECT Venue FROM table WHERE Result = 5-1
|
Translate the following into a SQL query
|
Tell me the highest goals with tries less than 1 and fullback position
|
SELECT MAX Goals FROM table WHERE Tries < 1 AND Position = fullback
|
Translate the following into a SQL query
|
Tell me the lowest tries for goals more than 0 with centre position and points less than 54
|
SELECT MIN Tries FROM table WHERE Goals > 0 AND Position = centre AND Points < 54
|
Translate the following into a SQL query
|
I want to know the player with tries more than 1 and position of hooker with points less than 54
|
SELECT Player FROM table WHERE Tries > 1 AND Points < 54 AND Position = hooker
|
Translate the following into a SQL query
|
Tell me the player with points larger than 36 and goals more than 0 with tries of 12
|
SELECT Player FROM table WHERE Points > 36 AND Goals > 0 AND Tries = 12
|
Translate the following into a SQL query
|
What Tournament was the 2010 Olympic Games?
|
SELECT Tournament FROM table WHERE 2010 = olympic games
|
Translate the following into a SQL query
|
Which width had an entered service year of 2010?
|
SELECT Width FROM table WHERE Entered service = 2010
|
Translate the following into a SQL query
|
What is the most recent built year when the year of entering service was more recent than 2003, and the knots is less than 27?
|
SELECT MAX Built FROM table WHERE Entered service > 2003 AND Knots < 27
|
Translate the following into a SQL query
|
How many knots did the Ms Moby Vincent have when passengers was less than 1.6?
|
SELECT COUNT Knots FROM table WHERE Ship = ms moby vincent AND Passengers < 1.6
|
Translate the following into a SQL query
|
Where did Richmond play as the away team?
|
SELECT Venue FROM table WHERE Away team = richmond
|
Translate the following into a SQL query
|
When the phillies 1:15 pm played on April 9, what was the attendance?
|
SELECT Attendance FROM table WHERE Opponent = phillies 1:15 pm AND Date = april 9
|
Translate the following into a SQL query
|
When was there a score of 5-1?
|
SELECT Date FROM table WHERE Score = 5-1
|
Translate the following into a SQL query
|
What is the average number of silvers for nations with over 1 bronze medal?
|
SELECT AVG Silver FROM table WHERE Bronze > 1
|
Translate the following into a SQL query
|
What is the Interregnum ended for Count Palatine of Saxony of frederick augustus i, elector of saxony?
|
SELECT Interregnum ended FROM table WHERE Count Palatine of Saxony = frederick augustus i, elector of saxony
|
Translate the following into a SQL query
|
What is the Interregnum ended for Count Palatine of Saxony of john george ii, elector of saxony?
|
SELECT Interregnum ended FROM table WHERE Count Palatine of Saxony = john george ii, elector of saxony
|
Translate the following into a SQL query
|
What is the duration for Count Palatine of the Rhine of charles albert, elector of bavaria?
|
SELECT Duration FROM table WHERE Count Palatine of the Rhine = charles albert, elector of bavaria
|
Translate the following into a SQL query
|
What is the name of the Count Palatine of the Rhine with a Interregnum began of 2 april 1657 death of ferdinand iii?
|
SELECT Count Palatine of the Rhine FROM table WHERE Interregnum began = 2 april 1657 death of ferdinand iii
|
Translate the following into a SQL query
|
What is the Interregnum ended for the person with a Duration of 3 months, 6 days?
|
SELECT Interregnum ended FROM table WHERE Duration = 3 months, 6 days
|
Translate the following into a SQL query
|
What was the crowd size when the home team was Hawthorn?
|
SELECT Crowd FROM table WHERE Home team = hawthorn
|
Translate the following into a SQL query
|
What is the total share with Timeslot of 8:30 p.m., anAir Date of march 27, 2008, and a Rank greater than 65?
|
SELECT SUM Share FROM table WHERE Timeslot = 8:30 p.m. AND Air Date = march 27, 2008 AND Rank (Overall) > 65
|
Translate the following into a SQL query
|
How many viewers have an Air Date of march 20, 2008, and an 18-49 (Rating/Share) of 2.3/7?
|
SELECT Viewers (m) FROM table WHERE Air Date = march 20, 2008 AND 18-49 (Rating/Share) = 2.3/7
|
Translate the following into a SQL query
|
What is the total number of Viewers with a Rank (Night) of n/a, and a Timeslot of 8:30 p.m.?
|
SELECT COUNT Viewers (m) FROM table WHERE Rank (Night) = n/a AND Timeslot = 8:30 p.m.
|
Translate the following into a SQL query
|
How many people attended the game when Calgary was the home team and the decision was McLean?
|
SELECT COUNT Attendance FROM table WHERE Decision = mclean AND Home = calgary
|
Translate the following into a SQL query
|
What is the record of the game when Los Angeles was the home team?
|
SELECT Record FROM table WHERE Home = los angeles
|
Translate the following into a SQL query
|
What is the record of the game with a score of 1 β 5?
|
SELECT Record FROM table WHERE Score = 1 β 5
|
Translate the following into a SQL query
|
What is the least number of people to attend a game when Los Angeles was the home team?
|
SELECT MIN Attendance FROM table WHERE Home = los angeles
|
Translate the following into a SQL query
|
who is the runner- up when the tournament is santiago?
|
SELECT Runner-up FROM table WHERE Tournament = santiago
|
Translate the following into a SQL query
|
what is the score when the runner-up is richard krajicek?
|
SELECT Score FROM table WHERE Runner-up = richard krajicek
|
Translate the following into a SQL query
|
what is the tournament when the score is 7-6(0), 6-3?
|
SELECT Tournament FROM table WHERE Score = 7-6(0), 6-3
|
Translate the following into a SQL query
|
who is third place when the tournament is delray beach?
|
SELECT Third Place FROM table WHERE Tournament = delray beach
|
Translate the following into a SQL query
|
What was the score in the Continental Qualifier on February 23, 2003?
|
SELECT Score FROM table WHERE Competition = continental qualifier AND Date = february 23, 2003
|
Translate the following into a SQL query
|
What was the score for the World Cup Qualifier?
|
SELECT Score FROM table WHERE Competition = world cup qualifier
|
Translate the following into a SQL query
|
What was the result on February 18, 2003?
|
SELECT Result FROM table WHERE Date = february 18, 2003
|
Translate the following into a SQL query
|
When was the ship that had a fate of 'converted to laker, 1961; still in service' commissioned?
|
SELECT Commissioned FROM table WHERE Fate = converted to laker, 1961; still in service
|
Translate the following into a SQL query
|
When was the ship originally named sachem finally decommissioned?
|
SELECT Final decommission FROM table WHERE Original name = sachem
|
Translate the following into a SQL query
|
When did the home team score 12.18 (90)?
|
SELECT Date FROM table WHERE Home team score = 12.18 (90)
|
Translate the following into a SQL query
|
What did the away team score in the game against Richmond?
|
SELECT Away team score FROM table WHERE Home team = richmond
|
Translate the following into a SQL query
|
Which player has no 0 results and multiples ties?
|
SELECT Player FROM table WHERE No result = 0 AND Tied > 0
|
Translate the following into a SQL query
|
What is the low no result with more than 5 loss and a win ration lesser than 58.06?
|
SELECT MIN No result FROM table WHERE Lost > 5 AND % win [A ] < 58.06
|
Translate the following into a SQL query
|
Which Crowd has an Away team score of 17.8 (110)?
|
SELECT Crowd FROM table WHERE Away team score = 17.8 (110)
|
Translate the following into a SQL query
|
Name the opponent for may 12
|
SELECT Opponent FROM table WHERE Date = may 12
|
Translate the following into a SQL query
|
Name the date for Loss of schilling (5β2)
|
SELECT Date FROM table WHERE Loss = schilling (5β2)
|
Translate the following into a SQL query
|
Name the record for may 31
|
SELECT Record FROM table WHERE Date = may 31
|
Translate the following into a SQL query
|
What was the highest average for the contestant having an interview score of 8.46?
|
SELECT MAX Average FROM table WHERE Interview = 8.46
|
Translate the following into a SQL query
|
What day had a time of 29.816?
|
SELECT Date FROM table WHERE Time = 29.816
|
Translate the following into a SQL query
|
What kind of car has the NASCAR Camping World Truck Series record?
|
SELECT Car Make FROM table WHERE Record = nascar camping world truck series
|
Translate the following into a SQL query
|
Was it a home game on the date of April 6?
|
SELECT Home FROM table WHERE Date = april 6
|
Translate the following into a SQL query
|
What was the date when the home team was Dallas?
|
SELECT Date FROM table WHERE Home = dallas
|
Translate the following into a SQL query
|
What is Rhett Mclane's highest pick number?
|
SELECT MAX Pick # FROM table WHERE Player = rhett mclane
|
Translate the following into a SQL query
|
What is Colorado College's lowest pick number?
|
SELECT MIN Pick # FROM table WHERE College = colorado
|
Translate the following into a SQL query
|
What player belongs to Northwestern College?
|
SELECT Player FROM table WHERE College = northwestern
|
Translate the following into a SQL query
|
What CFL Team is Pascal Masson on?
|
SELECT CFL Team FROM table WHERE Player = pascal masson
|
Translate the following into a SQL query
|
What's the number & name for the date after 1954?
|
SELECT Number & Name FROM table WHERE Date > 1954
|
Translate the following into a SQL query
|
What's the date for princess royal class locomotive trust?
|
SELECT Date FROM table WHERE Owner(s) = princess royal class locomotive trust
|
Translate the following into a SQL query
|
What's the number & name for the description peckett 0-4-0st?
|
SELECT Number & Name FROM table WHERE Description = peckett 0-4-0st
|
Translate the following into a SQL query
|
What's the number & name for a description of lms fowler class 3f 0-6-0t?
|
SELECT Number & Name FROM table WHERE Description = lms fowler class 3f 0-6-0t
|
Translate the following into a SQL query
|
When did the green bay packers win at green bay with an attendance over 70,920?
|
SELECT Date FROM table WHERE Location = green bay AND Winner = green bay packers AND Attendance > 70,920
|
Translate the following into a SQL query
|
Who drive 74 laps in a grid larger than 9?
|
SELECT Driver FROM table WHERE Laps = 74 AND Grid > 9
|
Translate the following into a SQL query
|
Who is the player for St. Mary's team?
|
SELECT Player FROM table WHERE School/Club Team/Country = st. mary's
|
Translate the following into a SQL query
|
How tall is the player from Mississippi
|
SELECT Height in Ft. FROM table WHERE School/Club Team/Country = mississippi
|
Translate the following into a SQL query
|
What is the player number for the player from Centenary?
|
SELECT No.(s) FROM table WHERE School/Club Team/Country = centenary
|
Translate the following into a SQL query
|
How tall is player 42 from Long Beach State?
|
SELECT Height in Ft. FROM table WHERE No.(s) = 42 AND School/Club Team/Country = long beach state
|
Translate the following into a SQL query
|
What network has lap-by-laps by Bill Flemming, and Pit reporter Chris Economaki?
|
SELECT Network FROM table WHERE Lap-by-lap = bill flemming AND Pit reporters = chris economaki
|
Translate the following into a SQL query
|
Which lap-by-lap has a year after 1973, with pit reporter Bill Flemming?
|
SELECT Lap-by-lap FROM table WHERE Year > 1973 AND Pit reporters = bill flemming
|
Translate the following into a SQL query
|
What is on at 9:00 when at 10:00 it is local programming and at 8:30 it is decision house (reruns)?
|
SELECT 9:00 FROM table WHERE 10:00 = local programming AND 8:30 = decision house (reruns)
|
Translate the following into a SQL query
|
What is on at 8:00 when at 8:30 it is the bachelorette?
|
SELECT 8:00 FROM table WHERE 8:30 = the bachelorette
|
Translate the following into a SQL query
|
what is on a 8:30 when at 9:00 it is one tree hill (reruns)?
|
SELECT 8:30 FROM table WHERE 9:00 = one tree hill (reruns)
|
Translate the following into a SQL query
|
What is at 8:30 when at 9:30 it is rules of engagement (reruns)?
|
SELECT 8:30 FROM table WHERE 9:30 = rules of engagement (reruns)
|
Translate the following into a SQL query
|
What is the lowest round for Fort Lauderdale, Florida, United States, with a win and a time of 3:38?
|
SELECT MIN Round FROM table WHERE Res. = win AND Location = fort lauderdale, florida, united states AND Time = 3:38
|
Translate the following into a SQL query
|
How many rounds have a time of 2:18?
|
SELECT COUNT Round FROM table WHERE Time = 2:18
|
Translate the following into a SQL query
|
What is the lowest Grid with fewer than 65 Laps and with Driver Tim Schenken?
|
SELECT MIN Grid FROM table WHERE Laps < 65 AND Driver = tim schenken
|
Translate the following into a SQL query
|
What Driver has 1 in Grid?
|
SELECT Driver FROM table WHERE Grid = 1
|
Translate the following into a SQL query
|
What is Driver Howden Ganley's Time/Retired?
|
SELECT Time/Retired FROM table WHERE Driver = howden ganley
|
Translate the following into a SQL query
|
On what date was Hawthorn the home team?
|
SELECT Date FROM table WHERE Home team = hawthorn
|
Translate the following into a SQL query
|
Which home team opposed an away team with a score of 16.22 (118)?
|
SELECT Home team FROM table WHERE Away team score = 16.22 (118)
|
Translate the following into a SQL query
|
Who was the away team at Junction Oval?
|
SELECT Away team FROM table WHERE Venue = junction oval
|
Translate the following into a SQL query
|
Which home team played at MCG?
|
SELECT Home team FROM table WHERE Venue = mcg
|
Translate the following into a SQL query
|
Tell me the sum of draws for position less than 15 with played more than 38
|
SELECT SUM Draws FROM table WHERE Position < 15 AND Played > 38
|
Translate the following into a SQL query
|
Name the sum of played for position less than 9 and draws more than 19 with goals against more than 27
|
SELECT SUM Played FROM table WHERE Position < 9 AND Draws > 19 AND Goals against > 27
|
Translate the following into a SQL query
|
Name the recorded for translation of sleep my love, good night
|
SELECT Recorded FROM table WHERE Translation = sleep my love, good night
|
Translate the following into a SQL query
|
What is the Winter in 1906?
|
SELECT Winter FROM table WHERE Year = 1906
|
Translate the following into a SQL query
|
Which driver has a Time/Retired of 2:45:46.2?
|
SELECT Driver FROM table WHERE Time/Retired = 2:45:46.2
|
Translate the following into a SQL query
|
What position for the western michigan product picked ahead of 312?
|
SELECT Position FROM table WHERE Pick < 312 AND School/Club Team = western michigan
|
Translate the following into a SQL query
|
What date did the Chicago Bears beat the Green bay Packers 31-20?
|
SELECT Date FROM table WHERE Loser = green bay packers AND Location = green bay
|
Translate the following into a SQL query
|
When were the boston bruins the home team?
|
SELECT Date FROM table WHERE Home = boston bruins
|
Translate the following into a SQL query
|
In what nation is Bordeaux?
|
SELECT Nat. FROM table WHERE Moving from = bordeaux
|
Translate the following into a SQL query
|
Who has the lead in Norway?
|
SELECT Lead FROM table WHERE Nation = norway
|
Translate the following into a SQL query
|
Which Skip will play Joan Mccusker?
|
SELECT Skip FROM table WHERE Second = joan mccusker
|
Translate the following into a SQL query
|
Who is the Alternate for Sweden?
|
SELECT Alternate FROM table WHERE Nation = sweden
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.