instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the engine when the transmission was 4-speed automatic, and acceleration 0β100km/h (0β62mph) was 10.4 s? | SELECT Engine FROM table WHERE Transmission = 4-speed automatic AND Acceleration 0β100km/h (0β62mph) = 10.4 s |
Translate the following into a SQL query | What is the Power when the acceleration 0β100km/h (0β62mph) is 9.1 s? | SELECT Power FROM table WHERE Acceleration 0β100km/h (0β62mph) = 9.1 s |
Translate the following into a SQL query | What is the transmission when the engine is 2.0l, and acceleration 0β100km/h (0β62mph) is 10.5 s? | SELECT Transmission FROM table WHERE Engine = 2.0l AND Acceleration 0β100km/h (0β62mph) = 10.5 s |
Translate the following into a SQL query | What is the production when engine is 2.7l, and acceleration 0β100km/h (0β62mph) is 8.5 s? | SELECT Production FROM table WHERE Engine = 2.7l AND Acceleration 0β100km/h (0β62mph) = 8.5 s |
Translate the following into a SQL query | What is the transmission when the production was 2002-2005? | SELECT Transmission FROM table WHERE Production = 2002-2005 |
Translate the following into a SQL query | What is the acceleration 0β100km/h (0β62mph) when the transmission is 5-speed manual? | SELECT Acceleration 0β100km/h (0β62mph) FROM table WHERE Transmission = 5-speed manual |
Translate the following into a SQL query | What is the highest year for the Bethesda Game Studios Developer? | SELECT MAX Year FROM table WHERE Developer(s) = bethesda game studios |
Translate the following into a SQL query | What is the lowest year for the game called The Elder Scrolls v: Skyrim? | SELECT MIN Year FROM table WHERE Game = the elder scrolls v: skyrim |
Translate the following into a SQL query | What game was developed by Naughty Dog? | SELECT Genre FROM table WHERE Developer(s) = naughty dog |
Translate the following into a SQL query | What is the imed/avicenna listed for a medical school offshore in saint kitts and nevis which was established before 2000 and will give you an MD? | SELECT IMED/Avicenna Listed FROM table WHERE Regional/Offshore = offshore AND Country/Territory = saint kitts and nevis AND Degree = md AND Established < 2000 |
Translate the following into a SQL query | What country has a medical school established in 1969 with both an IMED and avicenna? | SELECT Country/Territory FROM table WHERE IMED/Avicenna Listed = both AND Established = 1969 |
Translate the following into a SQL query | What is the average year that the medical school in dominican republic was established? | SELECT AVG Established FROM table WHERE Country/Territory = dominican republic |
Translate the following into a SQL query | What are the most wins with byes more than 0 and 1637 against? | SELECT MAX Wins FROM table WHERE Against = 1637 AND Byes > 0 |
Translate the following into a SQL query | What are the total byes for the Red Cliffs with more than 4 losses and more than 2422 against? | SELECT COUNT Byes FROM table WHERE Losses > 4 AND Sunrayia FL = red cliffs AND Against > 2422 |
Translate the following into a SQL query | What's the total wins for Wentworth with less than 0 byes? | SELECT COUNT Wins FROM table WHERE Sunrayia FL = wentworth AND Byes < 0 |
Translate the following into a SQL query | Which venue had an opponent of Sunderland and a result of a 1-1 draw? | SELECT Venue FROM table WHERE Opponent = sunderland AND Result = 1-1 |
Translate the following into a SQL query | What is the number of attendance values for ties having an opponent of Middlesbrough and result of 3-1? | SELECT COUNT Attendance FROM table WHERE Opponent = middlesbrough AND Result = 3-1 |
Translate the following into a SQL query | Which venue ended in a 3-0 result? | SELECT Venue FROM table WHERE Result = 3-0 |
Translate the following into a SQL query | Where was a 0-5 game played? | SELECT Venue FROM table WHERE Result = 0-5 |
Translate the following into a SQL query | What is the average rank of a player with fewer than 3 matches? | SELECT AVG Rank FROM table WHERE Matches < 3 |
Translate the following into a SQL query | Who was the opponent on April 21? | SELECT Opponent FROM table WHERE Date = april 21 |
Translate the following into a SQL query | What's the record on April 12 when the location was The Omni? | SELECT Record FROM table WHERE Location/Attendance = the omni AND Date = april 12 |
Translate the following into a SQL query | What date was the score "score"? | SELECT Date FROM table WHERE Score = score |
Translate the following into a SQL query | What was the score on April 12? | SELECT Score FROM table WHERE Date = april 12 |
Translate the following into a SQL query | What's the score of game 77? | SELECT Score FROM table WHERE Game = 77 |
Translate the following into a SQL query | What date had a record of 43-34? | SELECT Date FROM table WHERE Record = 43-34 |
Translate the following into a SQL query | What Artist had a Percentage of 17.14%? | SELECT Artist FROM table WHERE Percentage = 17.14% |
Translate the following into a SQL query | What Percentage has a Place of 5? | SELECT Percentage FROM table WHERE Place = 5 |
Translate the following into a SQL query | Which BR number has an LMS number over 14768? | SELECT BR number FROM table WHERE LMS Number > 14768 |
Translate the following into a SQL query | what is the frequency when the city of license is belleville? | SELECT Frequency FROM table WHERE City of license = belleville |
Translate the following into a SQL query | what is the class when the power is 22500 watts? | SELECT Class FROM table WHERE Power = 22500 watts |
Translate the following into a SQL query | what is the class when the identifier is cjbc-1-fm? | SELECT Class FROM table WHERE Identifier = cjbc-1-fm |
Translate the following into a SQL query | what is the recnet when the city of license is peterborough? | SELECT RECNet FROM table WHERE City of license = peterborough |
Translate the following into a SQL query | what is the power when the city of license is belleville? | SELECT Power FROM table WHERE City of license = belleville |
Translate the following into a SQL query | what is the identifier when the power is 22500 watts? | SELECT Identifier FROM table WHERE Power = 22500 watts |
Translate the following into a SQL query | What is the Opponents in the game with a Date of nov. 25? | SELECT MIN Opponents FROM table WHERE Date = nov. 25 |
Translate the following into a SQL query | How many games does leandro love have? | SELECT Games FROM table WHERE Name = leandro love |
Translate the following into a SQL query | What is the lowest number of goals joe keenan, who has more than 1 assists, had in 2007/08? | SELECT MIN Goals FROM table WHERE Years = 2007/08 AND Name = joe keenan AND Assists > 1 |
Translate the following into a SQL query | What is the lowest number of goals of the player with 9 (0) games and less than 0 assists? | SELECT MIN Goals FROM table WHERE Games = 9 (0) AND Assists < 0 |
Translate the following into a SQL query | How many finals had more than 0 goals and 8 assists? | SELECT Finals FROM table WHERE Goals > 0 AND Assists = 8 |
Translate the following into a SQL query | When the nationality is united states, and the time is 58.06, and the heat is larger than 5 what is the lowest rank? | SELECT MIN Rank FROM table WHERE Nationality = united states AND Time = 58.06 AND Heat > 5 |
Translate the following into a SQL query | What is the highest rank when the lane is larger than 6, and the heat is 3, and the nationality is colombia? | SELECT MAX Rank FROM table WHERE Lane > 6 AND Heat = 3 AND Nationality = colombia |
Translate the following into a SQL query | What is the total lane for a heat larger than 7? | SELECT COUNT Lane FROM table WHERE Heat > 7 |
Translate the following into a SQL query | What is the highest heat when the nationality is poland, and the lane is smaller than 6? | SELECT MAX Heat FROM table WHERE Nationality = poland AND Lane < 6 |
Translate the following into a SQL query | Which Lead Pitch/mm has a Body Width/mm larger than 10.16? | SELECT SUM Lead Pitch/mm FROM table WHERE Body Width/mm > 10.16 |
Translate the following into a SQL query | How much Body Width/mm has a Part Number of tsop40/44, and a Body Length/mm smaller than 18.42? | SELECT SUM Body Width/mm FROM table WHERE Part Number = tsop40/44 AND Body Length/mm < 18.42 |
Translate the following into a SQL query | Which Lead Pitch/mm has a Part Number of tsop24/28? | SELECT MAX Lead Pitch/mm FROM table WHERE Part Number = tsop24/28 |
Translate the following into a SQL query | What is the highest amount of silver when gold is 1 and bronze larger than 0? | SELECT MAX Silver FROM table WHERE Gold = 1 AND Bronze > 0 |
Translate the following into a SQL query | What is the Time of the Athlete with a Reaction time of 0.164? | SELECT SUM Time FROM table WHERE Reaction time = 0.164 |
Translate the following into a SQL query | What is the Time of the Athlete in Lane 4? | SELECT COUNT Time FROM table WHERE Lane = 4 |
Translate the following into a SQL query | What is the Lane of the Athlete from Great Britain with a Reaction time of less than 0.218 and a Time larger than 44.74? | SELECT SUM Lane FROM table WHERE Reaction time < 0.218 AND Time > 44.74 AND Nationality = great britain |
Translate the following into a SQL query | What is the time in week 3? | SELECT TV Time FROM table WHERE Week = 3 |
Translate the following into a SQL query | What is the week with attendance of 73,572? | SELECT MAX Week FROM table WHERE Attendance = 73,572 |
Translate the following into a SQL query | What week was the opponent the San Diego Chargers? | SELECT COUNT Week FROM table WHERE Opponent = san diego chargers |
Translate the following into a SQL query | What week was the result of l 38β21? | SELECT MAX Week FROM table WHERE Result = l 38β21 |
Translate the following into a SQL query | What's the total of Rank for the County of Galway and has a Total that's larger than 13? | SELECT SUM Rank FROM table WHERE County = galway AND Total > 13 |
Translate the following into a SQL query | What County has an Opposition of Antrim and the Player Bernie Forde? | SELECT County FROM table WHERE Opposition = antrim AND Player = bernie forde |
Translate the following into a SQL query | What's the highest Rank for the County of Offaly, the Player of Mark Corrigan, and the Total that is smaller than 8? | SELECT MAX Rank FROM table WHERE County = offaly AND Player = mark corrigan AND Total < 8 |
Translate the following into a SQL query | Which Channel has an Opponent of washington redskins? | SELECT Channel FROM table WHERE Opponent = washington redskins |
Translate the following into a SQL query | Which attendance has a Channel of espn, and a Date of september 5, 2002? | SELECT Attendance FROM table WHERE Channel = espn AND Date = september 5, 2002 |
Translate the following into a SQL query | Which Date has a Result of w 27β20? | SELECT Date FROM table WHERE Result = w 27β20 |
Translate the following into a SQL query | Which Week has an Attendance of 63,447? | SELECT Week FROM table WHERE Attendance = 63,447 |
Translate the following into a SQL query | Which Date has a Stadium of giants stadium, and a Week smaller than 13, and an Opponent of seattle seahawks? | SELECT Date FROM table WHERE Stadium = giants stadium AND Week < 13 AND Opponent = seattle seahawks |
Translate the following into a SQL query | Who was the athlete with react of 0.185? | SELECT Athlete FROM table WHERE React = 0.185 |
Translate the following into a SQL query | What's the smallest react of Zimbabwe, ranked after 1 in a lane after 3 and a time less than 20.3? | SELECT MIN React FROM table WHERE Lane > 3 AND Time < 20.3 AND Nationality = zimbabwe AND Rank > 1 |
Translate the following into a SQL query | What is the total number of white (Hispanic/Non-Hispanic) having a black (Hispanic/Non-Hispanic) of 9.9 and Hispanic under 99.5? | SELECT COUNT White (both Hispanic and Non-Hispanic) FROM table WHERE Black (Both Hispanic and Non-Hispanic) = 9.9 AND Hispanic (Of any Race) < 99.5 |
Translate the following into a SQL query | What is the average black value (Hispanic/Non-Hispanic) having a white (Hispanic/Non-Hispanic) under 61.9, Multiracial (Hispanic/Non-Hispanic) under 12.5 and Hispanic under 99.4? | SELECT AVG Black (Both Hispanic and Non-Hispanic) FROM table WHERE White (both Hispanic and Non-Hispanic) < 61.9 AND Multiracial (Both Hispanic and Non-Hispanic) < 12.5 AND Hispanic (Of any Race) < 99.4 |
Translate the following into a SQL query | What is the highest Amerindian (Hispanic/Non-Hispanic) value having a Black (Hispanic/Non-Hispanic) of 15.7 and White (Hispanic/Non-Hispanic) over 69.5? | SELECT MAX Amerindian (Both Hispanic and Non-Hispanic) FROM table WHERE Black (Both Hispanic and Non-Hispanic) = 15.7 AND White (both Hispanic and Non-Hispanic) > 69.5 |
Translate the following into a SQL query | What is the Black (Hispanic/Non-Hispanic) value having a white (Hispanic/Non-Hispanic) under 80.6, Asian (Hispanic/Non-Hispanic) of 0.1, Amerindian (Hispanic/Non-Hispanic) under 0.6000000000000001, and municipality of Vega Baja? | SELECT Black (Both Hispanic and Non-Hispanic) FROM table WHERE White (both Hispanic and Non-Hispanic) < 80.6 AND n Asia (Both Hispanic and Non-Hispanic) = 0.1 AND Amerindian (Both Hispanic and Non-Hispanic) < 0.6000000000000001 AND Municipality (2010) = vega baja |
Translate the following into a SQL query | What season had 3rd position, a 36 pld, and a bbl div? | SELECT Season FROM table WHERE Pos. = 3rd AND Pld. = 36 AND Div. = bbl |
Translate the following into a SQL query | What season has 36 pld, a bbl div, and 6th position? | SELECT Season FROM table WHERE Pld. = 36 AND Div. = bbl AND Pos. = 6th |
Translate the following into a SQL query | What season had 6th position and 36 points? | SELECT Season FROM table WHERE Pos. = 6th AND Pts. = 36 |
Translate the following into a SQL query | What season had 1st position, 33 pld, and 58 points? | SELECT Season FROM table WHERE Pos. = 1st AND Pld. = 33 AND Pts. = 58 |
Translate the following into a SQL query | Which player had a Cross Code Debut of the RL test v France, International Debut of RU Test v Ireland in years after 1955? | SELECT Player FROM table WHERE Cross Code Debut = rl test v france AND Year > 1955 AND Int'l Debut = ru test v ireland |
Translate the following into a SQL query | Which School has a Mascot of generals? | SELECT School FROM table WHERE Mascot = generals |
Translate the following into a SQL query | Which School has an IHSAA Class of aaa, and a Mascot of saints? | SELECT School FROM table WHERE IHSAA Class = aaa AND Mascot = saints |
Translate the following into a SQL query | What is the highest enrollment in Lagrange where the mascot is panthers? | SELECT MAX Enrollment FROM table WHERE Location = lagrange AND Mascot = panthers |
Translate the following into a SQL query | What is the enrollment at the school of Hamilton community? | SELECT AVG Enrollment FROM table WHERE School = hamilton community |
Translate the following into a SQL query | What school that has a IHSAA Class of AA, in Butler? | SELECT School FROM table WHERE IHSAA Class = aa AND Location = butler |
Translate the following into a SQL query | What is the mascot at Hamilton Community? | SELECT Mascot FROM table WHERE School = hamilton community |
Translate the following into a SQL query | What school is in Lagrange, with an IHSAA Class of aaa? | SELECT School FROM table WHERE Location = lagrange AND IHSAA Class = aaa |
Translate the following into a SQL query | What school is in Ligonier? | SELECT School FROM table WHERE Location = ligonier |
Translate the following into a SQL query | What is the total in 2000β2012, with more than 2 silver, 0 Bronze, and a Rank smaller than 70? | SELECT SUM Total FROM table WHERE Years = 2000β2012 AND Silver > 2 AND Bronze = 0 AND Rank < 70 |
Translate the following into a SQL query | What nation scored 7 in shooting in 1920? | SELECT Nation FROM table WHERE Sport = shooting AND Total = 7 AND Years = 1920 |
Translate the following into a SQL query | What's the average Round of Pete Laframboise? | SELECT AVG Round FROM table WHERE Player = pete laframboise |
Translate the following into a SQL query | What country is Pick 100? | SELECT Nationality FROM table WHERE Pick = 100 |
Translate the following into a SQL query | Who were the rowers for Great britain? | SELECT Rowers FROM table WHERE Country = great britain |
Translate the following into a SQL query | What country has a time of 7:28.66 and a rank less than 3? | SELECT Country FROM table WHERE Rank < 3 AND Time = 7:28.66 |
Translate the following into a SQL query | What are the notes when the time was 7:42.92 and the rank is more than 1? | SELECT Notes FROM table WHERE Rank > 1 AND Time = 7:42.92 |
Translate the following into a SQL query | What's the score of Tie number 11? | SELECT Score FROM table WHERE Tie no = 11 |
Translate the following into a SQL query | What's the tie number when the away team was Mansfield Town? | SELECT Tie no FROM table WHERE Away team = mansfield town |
Translate the following into a SQL query | What date was Newcastle United the away team? | SELECT Date FROM table WHERE Away team = newcastle united |
Translate the following into a SQL query | Who was the away team when Brighton & Hove Albion was home? | SELECT Away team FROM table WHERE Home team = brighton & hove albion |
Translate the following into a SQL query | What's the tie number of Chelsea when they were home? | SELECT Tie no FROM table WHERE Home team = chelsea |
Translate the following into a SQL query | What's the score when Orient was home? | SELECT Score FROM table WHERE Home team = orient |
Translate the following into a SQL query | What designer has a restaurant named The Citizen? | SELECT Designer FROM table WHERE Restaurant Name = the citizen |
Translate the following into a SQL query | What is the original name of the place by designer Glen Peloso with a Location of n/a? | SELECT Original Name FROM table WHERE Designer = glen peloso AND Location = n/a |
Translate the following into a SQL query | What chef that has a location in Toronto, ON, that has n/a as the original name, and a Restaurant Name of Bagel World? | SELECT Chef FROM table WHERE Location = toronto, on AND Original Name = n/a AND Restaurant Name = bagel world |
Translate the following into a SQL query | What is the name of the restaurant originally named Essence? | SELECT Restaurant Name FROM table WHERE Original Name = essence |
Translate the following into a SQL query | What designer has a restaurant named of Cork & Cabbage? | SELECT Designer FROM table WHERE Restaurant Name = cork & cabbage |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.