instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the lowest 2nd (m) when the points were larger than 251.6? | SELECT MIN 2nd (m) FROM table WHERE Points > 251.6 |
Translate the following into a SQL query | What city ranked 7? | SELECT City FROM table WHERE Rank = 7 |
Translate the following into a SQL query | How many floors were there with a building rank of less than 3 and a height of 300 / 985 m (ft)? | SELECT COUNT Floors FROM table WHERE Height* m (ft) = 300 / 985 AND Rank < 3 |
Translate the following into a SQL query | What is the rank of Etihad Tower 5, with less than 62 floors? | SELECT MIN Rank FROM table WHERE Floors < 62 AND Name = etihad tower 5 |
Translate the following into a SQL query | What city has a building ranked greater than 15 with floors greater than 43? | SELECT City FROM table WHERE Rank > 15 AND Floors > 43 |
Translate the following into a SQL query | Which league is for baseball with Laredo Apaches? | SELECT League FROM table WHERE Sport = baseball AND Club = laredo apaches |
Translate the following into a SQL query | Which league has arena football in the club Laredo Lobos? | SELECT League FROM table WHERE Sport = arena football AND Club = laredo lobos |
Translate the following into a SQL query | Which was the home team for game 3? | SELECT Home Team FROM table WHERE Game = game 3 |
Translate the following into a SQL query | What was the TV time for Chicago's road game against Phoenix on June 18? | SELECT TV Time FROM table WHERE Road Team = phoenix AND Date = june 18 |
Translate the following into a SQL query | What was the TV time for the road game against Phoenix where the score was 98-99? | SELECT TV Time FROM table WHERE Home Team = phoenix AND Result = 98-99 |
Translate the following into a SQL query | Who was the home team on June 9? | SELECT Home Team FROM table WHERE Date = june 9 |
Translate the following into a SQL query | What was the TV time for the game on June 9? | SELECT TV Time FROM table WHERE Date = june 9 |
Translate the following into a SQL query | At which Conference was the Division in the East, and the Home Stadium named fedexfield? | SELECT Conference FROM table WHERE Division = east AND Home Stadium = fedexfield |
Translate the following into a SQL query | What is the name of the Home Stadium in which the Division is in the south, and Conference is national, as well as being in the city named charlotte, North Carolina? | SELECT Home Stadium FROM table WHERE Division = south AND Conference = national AND City = charlotte, north carolina |
Translate the following into a SQL query | Which Home Stadium has American as its Conference as well as nashville, tennessee as the city? | SELECT Home Stadium FROM table WHERE Conference = american AND City = nashville, tennessee |
Translate the following into a SQL query | What is the name of the Conference which Division is south, and the Home Stadium is georgia dome? | SELECT Conference FROM table WHERE Division = south AND Home Stadium = georgia dome |
Translate the following into a SQL query | Which Division does the City being jacksonville, florida belong to? | SELECT Division FROM table WHERE City = jacksonville, florida |
Translate the following into a SQL query | Who won Women's doubles when Raina Tzvetkova won women's singles before 2000? | SELECT Women's doubles FROM table WHERE Year < 2000 AND Women's singles = raina tzvetkova |
Translate the following into a SQL query | Who won men's singles when petya nedelcheva diana dimova won women's doubles and vladimir metodiev krasimir yankov won men's doubles? | SELECT Men's singles FROM table WHERE Women's doubles = petya nedelcheva diana dimova AND Men's doubles = vladimir metodiev krasimir yankov |
Translate the following into a SQL query | Who won men's singles when petya nedelcheva won women's singles, petya nedelcheva diana dimova won women's doubles, stilian makarski diana dimova won mixed doubles, and stilian makarski peyo boichinov won men's doubles? | SELECT Men's singles FROM table WHERE Women's singles = petya nedelcheva AND Women's doubles = petya nedelcheva diana dimova AND Mixed doubles = stilian makarski diana dimova AND Men's doubles = stilian makarski peyo boichinov |
Translate the following into a SQL query | Who won women's singles in 1986? | SELECT Women's singles FROM table WHERE Year = 1986 |
Translate the following into a SQL query | What score has 1/22 as the date? | SELECT Score FROM table WHERE Date = 1/22 |
Translate the following into a SQL query | What score has 12/1 as the date? | SELECT Score FROM table WHERE Date = 12/1 |
Translate the following into a SQL query | Which source has a Cost free, and an Activity of some, and an Editor of markitup? | SELECT Open source FROM table WHERE Cost ( US$ ) = free AND Activity = some AND Editor = markitup |
Translate the following into a SQL query | Which site has a Cost free and a Editor of jsvi? | SELECT Site FROM table WHERE Cost ( US$ ) = free AND Editor = jsvi |
Translate the following into a SQL query | What is the cost of an Open Source that is no? | SELECT Cost ( US$ ) FROM table WHERE Open source = no |
Translate the following into a SQL query | What venue has a weight (kg) greater than 55, and won as the result? | SELECT Venue FROM table WHERE Weight (kg) > 55 AND Result = won |
Translate the following into a SQL query | Which group has a weight (kg) less than 55? | SELECT Group FROM table WHERE Weight (kg) < 55 |
Translate the following into a SQL query | Which position has 45 picks? | SELECT Position FROM table WHERE Pick # = 45 |
Translate the following into a SQL query | What is the record of the game before week 5 and a bye game site? | SELECT Record FROM table WHERE Week < 5 AND Game Site = bye |
Translate the following into a SQL query | Which Seasons have Entries larger than 52, and Poles of 33? | SELECT Seasons FROM table WHERE Entries > 52 AND Poles = 33 |
Translate the following into a SQL query | Which Seasons have a Poles larger than 29, and Entries larger than 191? | SELECT Seasons FROM table WHERE Poles > 29 AND Entries > 191 |
Translate the following into a SQL query | What ist the Away Leg with an Opposition that is aarhus gymnastik forening? | SELECT Away Leg FROM table WHERE Opposition = aarhus gymnastik forening |
Translate the following into a SQL query | What 2007 has 236 for 2006? | SELECT 2007 FROM table WHERE 2006 = 236 |
Translate the following into a SQL query | What 2011 has 2r as 2010, and a 2008 of A? | SELECT 2011 FROM table WHERE 2010 = 2r AND 2008 = a |
Translate the following into a SQL query | What is the 2012 that has tournament played as the tournament? | SELECT 2012 FROM table WHERE Tournament = tournament played |
Translate the following into a SQL query | Which artist had a place larger than 1 with 229 points? | SELECT Artist FROM table WHERE Place > 1 AND Points = 229 |
Translate the following into a SQL query | Which January is the lowest one that has an Opponent of florida panthers, and Points smaller than 59? | SELECT MIN January FROM table WHERE Opponent = florida panthers AND Points < 59 |
Translate the following into a SQL query | Which Record has a Game of 41? | SELECT Record FROM table WHERE Game = 41 |
Translate the following into a SQL query | Which Score has a January larger than 21, and Points of 63? | SELECT Score FROM table WHERE January > 21 AND Points = 63 |
Translate the following into a SQL query | How many Points have a Record of 25–10–11, and a January larger than 28? | SELECT COUNT Points FROM table WHERE Record = 25–10–11 AND January > 28 |
Translate the following into a SQL query | what province was established in 1870 | SELECT Province FROM table WHERE Established = 1870 |
Translate the following into a SQL query | Who is the Incumbent that has a District of ohio 13 in Democratic Party? | SELECT Incumbent FROM table WHERE District = ohio 13 |
Translate the following into a SQL query | What is the score of champion Ken Rosewall in 1957? | SELECT Score FROM table WHERE Champion = ken rosewall AND Year = 1957 |
Translate the following into a SQL query | What is the surface of the match with Brian Gottfried as the runner-up? | SELECT Surface FROM table WHERE Runner-up = brian gottfried |
Translate the following into a SQL query | What is the score of the match with anders järryd as the runner-up? | SELECT Score FROM table WHERE Runner-up = anders järryd |
Translate the following into a SQL query | What is the low bronze total for the team with 4 total and under 1 gold? | SELECT MIN Bronze FROM table WHERE Total = 4 AND Gold < 1 |
Translate the following into a SQL query | What is the average total for teams with over 3 bronzes and over 8 golds? | SELECT AVG Total FROM table WHERE Bronze > 3 AND Gold > 8 |
Translate the following into a SQL query | What is the low silver total associated with under 1 total? | SELECT MIN Silver FROM table WHERE Total < 1 |
Translate the following into a SQL query | What is the number of points associated with the highest position under 9 and a current position of 22? | SELECT Points FROM table WHERE Highest position < 9 AND Position = 22 |
Translate the following into a SQL query | Performer 3 of paul merton, and a Performer 4 of sandi toksvig is which performer 1? | SELECT Performer 1 FROM table WHERE Performer 3 = paul merton AND Performer 4 = sandi toksvig |
Translate the following into a SQL query | Episode of 16 involves which performer 1? | SELECT Performer 1 FROM table WHERE Episode = 16 |
Translate the following into a SQL query | Performer 2 of compilation 1 had what performer 1? | SELECT Performer 1 FROM table WHERE Performer 2 = compilation 1 |
Translate the following into a SQL query | Which Schwaben has an Oberbayern of fc ingolstadt 04 and a Mittelfranken of sv seligenporten | SELECT Schwaben FROM table WHERE Oberbayern = fc ingolstadt 04 AND Mittelfranken = sv seligenporten |
Translate the following into a SQL query | Which Schwaben has a Oberbayern of fc bayern munich ii and a Mittelfranken of 1. fc nuremberg ii? | SELECT Schwaben FROM table WHERE Oberbayern = fc bayern munich ii AND Mittelfranken = 1. fc nuremberg ii |
Translate the following into a SQL query | Who was the incumbent for south carolina 3 district? | SELECT Incumbent FROM table WHERE District = south carolina 3 |
Translate the following into a SQL query | When was the incumbent from the south carolina 1 district first elected? | SELECT First elected FROM table WHERE District = south carolina 1 |
Translate the following into a SQL query | Who was the incumbent that was first elected in 1892 and retired to run for the senate democratic hold? | SELECT Incumbent FROM table WHERE First elected = 1892 AND Result = retired to run for the senate democratic hold |
Translate the following into a SQL query | Who was the incumbent that retired to run for the senate democratic hold? | SELECT Incumbent FROM table WHERE Result = retired to run for the senate democratic hold |
Translate the following into a SQL query | What was the result of W. Jasper Talbert who was first elected in 1892? | SELECT Result FROM table WHERE First elected = 1892 AND Incumbent = w. jasper talbert |
Translate the following into a SQL query | Which Nationality has a 2.24 of xo, and a 2.20 of xo? | SELECT Nationality FROM table WHERE 2.24 = xo AND 2.20 = xo |
Translate the following into a SQL query | Which Athlete has a 2.24 of xo, and a 2.20 of o, and a 2.15 of o? | SELECT Athlete FROM table WHERE 2.24 = xo AND 2.20 = o AND 2.15 = o |
Translate the following into a SQL query | What is the earliest election with more than 7 candidates nominated, a percentage of the popular vote of 2.75%, and 0 seats won? | SELECT MIN Election FROM table WHERE # of candidates nominated > 7 AND % of popular vote = 2.75% AND # of seats won < 0 |
Translate the following into a SQL query | How much Played has a Lost larger than 14, and Drawn of 8, and a Team of ipatinga? | SELECT SUM Played FROM table WHERE Lost > 14 AND Drawn = 8 AND Team = ipatinga |
Translate the following into a SQL query | How many Drawn have a Difference of 3, and Points smaller than 52? | SELECT COUNT Drawn FROM table WHERE Difference = 3 AND Points < 52 |
Translate the following into a SQL query | Which Points is the highest one that has a Position smaller than 4, and a Team of são paulo, and Drawn larger than 12? | SELECT MAX Points FROM table WHERE Position < 4 AND Team = são paulo AND Drawn > 12 |
Translate the following into a SQL query | How many Lost have Points larger than 40, and a Position of 11, and a Played smaller than 38? | SELECT SUM Lost FROM table WHERE Points > 40 AND Position = 11 AND Played < 38 |
Translate the following into a SQL query | What is the lowest number of games loss with a Points difference of 40 - 17, and over 6 games? | SELECT MIN Lost FROM table WHERE Points difference = 40 - 17 AND Games > 6 |
Translate the following into a SQL query | How many games lost for teams with over 6 games? | SELECT MIN Lost FROM table WHERE Games > 6 |
Translate the following into a SQL query | What are the highest number of games drawn for games numbered under 6? | SELECT MAX Drawn FROM table WHERE Games < 6 |
Translate the following into a SQL query | How many games drawn with a Points difference of 31 - 33, and under 4 games lost? | SELECT SUM Drawn FROM table WHERE Points difference = 31 - 33 AND Lost < 4 |
Translate the following into a SQL query | Which Outcome has a Surface of hard (i), and a Date of 28 january 2003? | SELECT Outcome FROM table WHERE Surface = hard (i) AND Date = 28 january 2003 |
Translate the following into a SQL query | Which Tournament has an Outcome of winner, and a Surface of hard (i)? | SELECT Tournament FROM table WHERE Outcome = winner AND Surface = hard (i) |
Translate the following into a SQL query | Which Date has a Score of 6–1, 6–2? | SELECT Date FROM table WHERE Score = 6–1, 6–2 |
Translate the following into a SQL query | Which Surface has an Opponent of oleksandra kravets? | SELECT Surface FROM table WHERE Opponent = oleksandra kravets |
Translate the following into a SQL query | Which Surface has a Date of 3 october 2003? | SELECT Surface FROM table WHERE Date = 3 october 2003 |
Translate the following into a SQL query | Which Surface has a Score of 6–4, 6–2? | SELECT Surface FROM table WHERE Score = 6–4, 6–2 |
Translate the following into a SQL query | Which Rank is the lowest one that has a % Change of 3.3%, and a Total Cargo (Metric Tonnes) smaller than 2,456,724? | SELECT MIN Rank FROM table WHERE % Change = 3.3% AND Total Cargo (Metric Tonnes) < 2,456,724 |
Translate the following into a SQL query | How many ranks have a Code (IATA/ICAO) of ord/kord? | SELECT COUNT Rank FROM table WHERE Code (IATA/ICAO) = ord/kord |
Translate the following into a SQL query | Which Total Cargo (Metric Tonnes) is the highest one that has a Rank smaller than 4, and an Airport of shanghai pudong international airport? | SELECT MAX Total Cargo (Metric Tonnes) FROM table WHERE Rank < 4 AND Airport = shanghai pudong international airport |
Translate the following into a SQL query | Which Rank is the average one that has a % Change of 0.7%, and a Total Cargo (Metric Tonnes) smaller than 1,556,203? | SELECT AVG Rank FROM table WHERE % Change = 0.7% AND Total Cargo (Metric Tonnes) < 1,556,203 |
Translate the following into a SQL query | What is the Per capita income where Median family income is $72,288? | SELECT Per capita income FROM table WHERE Median family income = $72,288 |
Translate the following into a SQL query | What is the average grid for the +2.2 secs time/retired? | SELECT AVG Grid FROM table WHERE Time/Retired = +2.2 secs |
Translate the following into a SQL query | Which Facility ID has a City of license of springfield, ma, and a ERP / Power W smaller than 230? | SELECT MAX Facility ID FROM table WHERE City of license = springfield, ma AND ERP / Power W < 230 |
Translate the following into a SQL query | Which Frequency has a Facility ID of 13598? | SELECT Frequency FROM table WHERE Facility ID = 13598 |
Translate the following into a SQL query | WHich Facility ID has a Call sign of wnpr? | SELECT AVG Facility ID FROM table WHERE Call sign = wnpr |
Translate the following into a SQL query | Which Frequency has a Facility ID of 13598? | SELECT Frequency FROM table WHERE Facility ID = 13598 |
Translate the following into a SQL query | What is the rank that has a 1st less than 132.5 and a Fin nationality. | SELECT Overall WC points (Rank) FROM table WHERE 1st (m) < 132.5 AND Nationality = fin |
Translate the following into a SQL query | What is the highest number of points that has a 1st of 121.5? | SELECT MAX Points FROM table WHERE 1st (m) = 121.5 |
Translate the following into a SQL query | What is the total number of 1sts that Martin Schmitt had where he less than 235.7 points? | SELECT COUNT 1st (m) FROM table WHERE Name = martin schmitt AND Points < 235.7 |
Translate the following into a SQL query | What is the total number of attendance for games where buffalo was the home team? | SELECT COUNT Attendance FROM table WHERE Home = buffalo |
Translate the following into a SQL query | What was the score of the game on April 28 where Buffalo were the visiting team? | SELECT Score FROM table WHERE Visitor = buffalo AND Date = april 28 |
Translate the following into a SQL query | What date was the game where the visiting team was philadelphia? | SELECT Date FROM table WHERE Visitor = philadelphia |
Translate the following into a SQL query | Who got the gold in seoul before 2002? | SELECT Gold FROM table WHERE Year < 2002 AND Location = seoul |
Translate the following into a SQL query | Where did sohn bong-gak win silver? | SELECT Location FROM table WHERE Silver = sohn bong-gak |
Translate the following into a SQL query | Who won the bronze when jin kanno won the gold? | SELECT Bronze FROM table WHERE Gold = jin kanno |
Translate the following into a SQL query | Which Score has an Outcome of runner-up, and a Tournament of johannesburg? | SELECT Score FROM table WHERE Outcome = runner-up AND Tournament = johannesburg |
Translate the following into a SQL query | Which Surface has an Opponent of kerry melville reid, and a Score of 6–3, 2–6, 3–6? | SELECT Surface FROM table WHERE Opponent = kerry melville reid AND Score = 6–3, 2–6, 3–6 |
Translate the following into a SQL query | Which Outcome has an Opponent of wendy turnbull, and a Surface of grass? | SELECT Outcome FROM table WHERE Opponent = wendy turnbull AND Surface = grass |
Translate the following into a SQL query | Which Tournament has a Date of 22 january 1979? | SELECT Tournament FROM table WHERE Date = 22 january 1979 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.