instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What was the try bonus for the team with 25 tries for?
|
SELECT Try bonus FROM table WHERE Tries for = 25
|
Translate the following into a SQL query
|
How many points for did Bridgend Athletic RFC score?
|
SELECT Points for FROM table WHERE Club = bridgend athletic rfc
|
Translate the following into a SQL query
|
How many tries for did the team with a try bonus of 5 score?
|
SELECT Tries for FROM table WHERE Try bonus = 5
|
Translate the following into a SQL query
|
How many points against did the team that allowed 42 tries against allow?
|
SELECT Points against FROM table WHERE Tries against = 42
|
Translate the following into a SQL query
|
What is the average number of bronze medals associated with 0 silver, 1 total, and ranks over 16?
|
SELECT AVG Bronze FROM table WHERE Total = 1 AND Silver = 0 AND Rank > 16
|
Translate the following into a SQL query
|
What is the highest total number of medals associated with 1 gold, more than 0 silver, and 2 bronze?
|
SELECT MAX Total FROM table WHERE Bronze = 2 AND Gold = 1 AND Silver > 0
|
Translate the following into a SQL query
|
What is the total number of Total values associated with mroe than 3 silvers, more than 2 bronze, and a rank of 3?
|
SELECT COUNT Total FROM table WHERE Silver > 3 AND Rank = 3 AND Bronze > 2
|
Translate the following into a SQL query
|
What is the smallest Silver value associated with teams having more than 0 gold, 0 bronze, and a rank of 14?
|
SELECT MIN Silver FROM table WHERE Bronze = 0 AND Rank = 14 AND Gold > 0
|
Translate the following into a SQL query
|
What is the qual 1 for conquest racing?
|
SELECT Qual 1 FROM table WHERE Team = conquest racing
|
Translate the following into a SQL query
|
Graham rahal for n/h/l racing has a qual 2 greater than 59.384 and how much lowest best?
|
SELECT MIN Best FROM table WHERE Team = n/h/l racing AND Name = graham rahal AND Qual 2 > 59.384
|
Translate the following into a SQL query
|
What is the total best for Bruno junqueira
|
SELECT SUM Best FROM table WHERE Name = bruno junqueira
|
Translate the following into a SQL query
|
What is the Mascot of Brook?
|
SELECT Mascot FROM table WHERE Location = brook
|
Translate the following into a SQL query
|
When was the first year when Fowler joined?
|
SELECT MIN Year Left FROM table WHERE Location = fowler
|
Translate the following into a SQL query
|
What is the molecular target of bacterium?
|
SELECT Molecular Target FROM table WHERE Marine Organism Ξ± = bacterium
|
Translate the following into a SQL query
|
What is the organism that has a disease area of cancer and has 4/4 clinical trial b?
|
SELECT Marine Organism Ξ± FROM table WHERE Disease Area = cancer AND Clinical Trials Ξ² = 4/4
|
Translate the following into a SQL query
|
What is the molecular target of the organism that has a disease area of antiviral?
|
SELECT Molecular Target FROM table WHERE Disease Area = antiviral
|
Translate the following into a SQL query
|
On what date was the record 62β84?
|
SELECT Date FROM table WHERE Record = 62β84
|
Translate the following into a SQL query
|
What was the record on September 4?
|
SELECT Record FROM table WHERE Date = september 4
|
Translate the following into a SQL query
|
What was the record on September 26?
|
SELECT Record FROM table WHERE Date = september 26
|
Translate the following into a SQL query
|
Who was the opponent with a Loss of Leal (1β4)?
|
SELECT Opponent FROM table WHERE Loss = leal (1β4)
|
Translate the following into a SQL query
|
In the Class T, what is the total of the 1958 UTA?
|
SELECT COUNT 1958 UTA FROM table WHERE Class = t
|
Translate the following into a SQL query
|
What was the result of the match played on 13 October 1993?
|
SELECT Result FROM table WHERE Date = 13 october 1993
|
Translate the following into a SQL query
|
When did the team score 21 goals?
|
SELECT Date FROM table WHERE Goal = 21
|
Translate the following into a SQL query
|
What was the score of the match played on 14 October 1998, resulting in more than 10 goals?
|
SELECT Score FROM table WHERE Date = 14 october 1998 AND Goal > 10
|
Translate the following into a SQL query
|
What is the total number of years that Scuderia Guastalla was an entrant?
|
SELECT COUNT Year FROM table WHERE Entrant = scuderia guastalla
|
Translate the following into a SQL query
|
What was the earliest year that Scuderia Ferrari was an entrant with 0 points?
|
SELECT MIN Year FROM table WHERE Points = 0 AND Entrant = scuderia ferrari
|
Translate the following into a SQL query
|
What is the total number of years that has a chassis of Ferrari 625 and 2 points?
|
SELECT COUNT Year FROM table WHERE Chassis = ferrari 625 AND Points = 2
|
Translate the following into a SQL query
|
What players played mixed doubles when zhang xi played mixed singles?
|
SELECT Mixed doubles FROM table WHERE Women's singles = zhang xi
|
Translate the following into a SQL query
|
What player played women's singles when marcus ellis heather olver played mixed doubles?
|
SELECT Women's singles FROM table WHERE Mixed doubles = marcus ellis heather olver
|
Translate the following into a SQL query
|
What player played women's doubles when lee jae-jin lee eun-woo played mixed doubles?
|
SELECT Women's doubles FROM table WHERE Mixed doubles = lee jae-jin lee eun-woo
|
Translate the following into a SQL query
|
What year did helle nielsen marie rΓΈpke play womens' doubles?
|
SELECT Year FROM table WHERE Women's doubles = helle nielsen marie rΓΈpke
|
Translate the following into a SQL query
|
What is the latest year that chou tien-chen played men's singles?
|
SELECT MAX Year FROM table WHERE Men's singles = chou tien-chen
|
Translate the following into a SQL query
|
Which 2006 Cobra Starship song has work done of guest vocals?
|
SELECT Song FROM table WHERE Work done = guest vocals AND Year = 2006 AND Artist(s) = cobra starship
|
Translate the following into a SQL query
|
What is the decile sum with a roll smaller than 25, and franz josef area?
|
SELECT SUM Decile FROM table WHERE Roll < 25 AND Area = franz josef
|
Translate the following into a SQL query
|
What is the area with decile of 8, and a 25 roll?
|
SELECT Area FROM table WHERE Decile = 8 AND Roll = 25
|
Translate the following into a SQL query
|
What is the overall pick average with the pick # lower than 15?
|
SELECT AVG Overall FROM table WHERE Pick # < 15
|
Translate the following into a SQL query
|
What is the lowest rank for Spain when more than 10 medals were won, 3 of which were bronze?
|
SELECT MIN Rank FROM table WHERE Bronze = 3 AND Total > 10
|
Translate the following into a SQL query
|
What is the Qual listed on the Year of 1954?
|
SELECT Qual FROM table WHERE Year = 1954
|
Translate the following into a SQL query
|
Which Year has a Qual of 144.683 and Lap larger than 27?
|
SELECT Year FROM table WHERE Laps > 27 AND Qual = 144.683
|
Translate the following into a SQL query
|
What's the Qual listed with a Rank of 27?
|
SELECT Qual FROM table WHERE Rank = 27
|
Translate the following into a SQL query
|
Which Team has a Year of 1978?
|
SELECT Team FROM table WHERE Year = 1978
|
Translate the following into a SQL query
|
Which Engine has a Team of Chesterfield Racing and include a Chassis of March 761?
|
SELECT Engine FROM table WHERE Team = chesterfield racing AND Chassis = march 761
|
Translate the following into a SQL query
|
What is the smallest year with a Mintage smaller than 10,000?
|
SELECT MIN Year FROM table WHERE Mintage < 10,000
|
Translate the following into a SQL query
|
Which loss has a Date of april 26?
|
SELECT Loss FROM table WHERE Date = april 26
|
Translate the following into a SQL query
|
Which date has an Opponent of angels, and a Loss of sanderson (0β1)?
|
SELECT Date FROM table WHERE Opponent = angels AND Loss = sanderson (0β1)
|
Translate the following into a SQL query
|
What is the largest Attendance with a Loss of darling (0β1)?
|
SELECT MAX Attendance FROM table WHERE Loss = darling (0β1)
|
Translate the following into a SQL query
|
What is the maximum capacity of the San Agustin Gym?
|
SELECT Maximum Seating Capacity FROM table WHERE Arena/Venue = san agustin gym
|
Translate the following into a SQL query
|
Where is the Cagayan de Oro city located?
|
SELECT Province/Region FROM table WHERE Location = cagayan de oro city
|
Translate the following into a SQL query
|
Where is the Holy Cross of Davao College campus located?
|
SELECT Province/Region FROM table WHERE Home Campus = holy cross of davao college
|
Translate the following into a SQL query
|
Which campus has the San Agustin gym?
|
SELECT Home Campus FROM table WHERE Arena/Venue = san agustin gym
|
Translate the following into a SQL query
|
What year did the San Agustin gym open?
|
SELECT Year Opened FROM table WHERE Arena/Venue = san agustin gym
|
Translate the following into a SQL query
|
Which player has a total bigger than 285 and a to par of +14?
|
SELECT Player FROM table WHERE Total > 285 AND To par = +14
|
Translate the following into a SQL query
|
What is the highest total with a t12 finish?
|
SELECT MAX Total FROM table WHERE Finish = t12
|
Translate the following into a SQL query
|
Which country has a finish of t4?
|
SELECT Country FROM table WHERE Finish = t4
|
Translate the following into a SQL query
|
What year won has a total less than 281?
|
SELECT Year(s) Won FROM table WHERE Total < 281
|
Translate the following into a SQL query
|
Which chassis is ranked 24th?
|
SELECT Chassis FROM table WHERE Rank = 24th
|
Translate the following into a SQL query
|
Which chassis was made in 1993?
|
SELECT Chassis FROM table WHERE Year = 1993
|
Translate the following into a SQL query
|
Which team is from earlier than 1994?
|
SELECT Team FROM table WHERE Year < 1994
|
Translate the following into a SQL query
|
What rank is later than 1994?
|
SELECT Rank FROM table WHERE Year > 1994
|
Translate the following into a SQL query
|
What year did the King team have fewer than 10 points?
|
SELECT AVG Year FROM table WHERE Team = king AND Points < 10
|
Translate the following into a SQL query
|
What are the average points for the Project Indy team that has the Ford xb engine?
|
SELECT AVG Points FROM table WHERE Engine = ford xb AND Team = project indy
|
Translate the following into a SQL query
|
Name the became consort for marriage of 4 april 1721
|
SELECT Became Consort FROM table WHERE Marriage = 4 april 1721
|
Translate the following into a SQL query
|
Name the birth of the person that has a spouse of frederick iv and became consort of 4 april 1721
|
SELECT Birth FROM table WHERE Spouse = frederick iv AND Became Consort = 4 april 1721
|
Translate the following into a SQL query
|
Name the became consort for ceased to be consort of 4 april 1588 husband's death
|
SELECT Became Consort FROM table WHERE Ceased to be Consort = 4 april 1588 husband's death
|
Translate the following into a SQL query
|
Name the marriage of the person who is married for christian viii
|
SELECT Marriage FROM table WHERE Spouse = christian viii
|
Translate the following into a SQL query
|
Who has 48 points in the class of 500 cc?
|
SELECT Team FROM table WHERE Points = 48 AND Class = 500 cc
|
Translate the following into a SQL query
|
How many wins does Benelli have before 1962?
|
SELECT COUNT Wins FROM table WHERE Team = benelli AND Year < 1962
|
Translate the following into a SQL query
|
Which is Natural Wood Keyboard with a Model of clps306?
|
SELECT Natural Wood Keyboard FROM table WHERE Model = clps306
|
Translate the following into a SQL query
|
Which Graded Hammer (Non GH3) has a Model of cvp501?
|
SELECT Graded Hammer (Non GH3) FROM table WHERE Model = cvp501
|
Translate the following into a SQL query
|
Which Natural Wood Keyboard has a CLP380 ?
|
SELECT Natural Wood Keyboard FROM table WHERE Model = clp380
|
Translate the following into a SQL query
|
Which Graded Hammer Three (GH3) shows Model of clp320?
|
SELECT Graded Hammer Three (GH3) FROM table WHERE Model = clp320
|
Translate the following into a SQL query
|
What was the date for the French Grand Prix?
|
SELECT Date FROM table WHERE Name = french grand prix
|
Translate the following into a SQL query
|
What was the name for the race in the Miramas circuit?
|
SELECT Name FROM table WHERE Circuit = miramas
|
Translate the following into a SQL query
|
Which circuit was Delage the winning constructor for?
|
SELECT Circuit FROM table WHERE Winning constructor = delage
|
Translate the following into a SQL query
|
What is the name for the Monza circuit race were Bugatti was the winning constructor?
|
SELECT Name FROM table WHERE Winning constructor = bugatti AND Circuit = monza
|
Translate the following into a SQL query
|
Which report shows that Frank Lockhart was a winning driver?
|
SELECT Report FROM table WHERE Winning drivers = frank lockhart
|
Translate the following into a SQL query
|
What Ranking has Gold less than 20 and the Event 1976 Toronto?
|
SELECT Ranking FROM table WHERE Gold < 20 AND Event = 1976 toronto
|
Translate the following into a SQL query
|
What Gold has a Silver greater than 30 and a Total less than 107?
|
SELECT Gold FROM table WHERE Silver > 30 AND Total < 107
|
Translate the following into a SQL query
|
What is the highest Bronze with the Event 1972 Heidelberg and Total less than 5?
|
SELECT MAX Bronze FROM table WHERE Event = 1972 heidelberg AND Total < 5
|
Translate the following into a SQL query
|
What is the Total with the Event 2004 Athens and Gold less than 20?
|
SELECT SUM Total FROM table WHERE Event = 2004 athens AND Gold < 20
|
Translate the following into a SQL query
|
What is the lowest Bronze with a Ranking of 22nd of 32 and Gold larger than 4?
|
SELECT MIN Bronze FROM table WHERE Ranking = 22nd of 32 AND Gold > 4
|
Translate the following into a SQL query
|
Which polling firm put T. Papadopoulos at 31%?
|
SELECT Polling Firm FROM table WHERE T. Papadopoulos = 31%
|
Translate the following into a SQL query
|
What was the percentage for T. Papadopoulos when I. Kasoulidis was 27.1%?
|
SELECT T. Papadopoulos FROM table WHERE I. Kasoulidis = 27.1%
|
Translate the following into a SQL query
|
What was the percentage for K. Themistokleous when I. Kasoulidis was 30.1%?
|
SELECT K. Themistokleous FROM table WHERE I. Kasoulidis = 30.1%
|
Translate the following into a SQL query
|
What was the percentage for T. Papadopoulos when D. Christofias was 28.4%?
|
SELECT T. Papadopoulos FROM table WHERE D. Christofias = 28.4%
|
Translate the following into a SQL query
|
Which tournament has a 2007 of 2r, and a 2011 of 2r?
|
SELECT Tournament FROM table WHERE 2007 = 2r AND 2011 = 2r
|
Translate the following into a SQL query
|
What is the number of titles for the city of gyΕr with a rank larger than 4?
|
SELECT SUM Titles FROM table WHERE City = gyΕr AND Rank > 4
|
Translate the following into a SQL query
|
What is the Score of the Toronto Maple Leafs home game on February 1?
|
SELECT Score FROM table WHERE Home = toronto maple leafs AND Date = february 1
|
Translate the following into a SQL query
|
What is the score of the Boston Bruins away game on March 13?
|
SELECT Score FROM table WHERE Visitor = boston bruins AND Date = march 13
|
Translate the following into a SQL query
|
What visiting team has a record of 9β5β2?
|
SELECT Visitor FROM table WHERE Record = 9β5β2
|
Translate the following into a SQL query
|
What is the score of the game with a record of 12β8β3?
|
SELECT Score FROM table WHERE Record = 12β8β3
|
Translate the following into a SQL query
|
What is the date that the Montreal Canadiens hosted a game with a record of 14β11β3?
|
SELECT Date FROM table WHERE Home = montreal canadiens AND Record = 14β11β3
|
Translate the following into a SQL query
|
What is the country of Craig Stadler?
|
SELECT Country FROM table WHERE Player = craig stadler
|
Translate the following into a SQL query
|
What is the average total of Gay Brewer from the United States with a to par of 9?
|
SELECT AVG Total FROM table WHERE Country = united states AND To par = 9 AND Player = gay brewer
|
Translate the following into a SQL query
|
What was the finish by the player from West Germany?
|
SELECT Finish FROM table WHERE Country = west germany
|
Translate the following into a SQL query
|
What is the smallest goal during the 2006 fifa world cup qualification competition?
|
SELECT MIN Goal FROM table WHERE Competition = 2006 fifa world cup qualification
|
Translate the following into a SQL query
|
Name the representative for party of whig
|
SELECT Representative FROM table WHERE Party = whig
|
Translate the following into a SQL query
|
Name the total number of years for chassis of maserati 250f and points less than 0
|
SELECT COUNT Year FROM table WHERE Chassis = maserati 250f AND Points < 0
|
Translate the following into a SQL query
|
Name the engine with chassis of maserati 250f and entrant of luigi piotti with year less than 1957
|
SELECT Engine FROM table WHERE Chassis = maserati 250f AND Entrant = luigi piotti AND Year < 1957
|
Translate the following into a SQL query
|
Name the sum of points for chassis of maserati 250f and entrant of officine alfieri maserati
|
SELECT SUM Points FROM table WHERE Chassis = maserati 250f AND Entrant = officine alfieri maserati
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.