instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Who is the person that has 119.5 m?
SELECT Name FROM table WHERE 1st (m) = 119.5
Translate the following into a SQL query
What is the highest 2nd in (m) that has a Rank more than 2 and Points more than 249.3
SELECT MAX 2nd (m) FROM table WHERE Rank > 2 AND Points > 249.3
Translate the following into a SQL query
Which 2nd (m) has a 1st (m) of 120.5 and Points smaller than 249.9?
SELECT AVG 2nd (m) FROM table WHERE 1st (m) = 120.5 AND Points < 249.9
Translate the following into a SQL query
What is the first date of election for the incumbent that was re-elected in the South Carolina 1 district?
SELECT First elected FROM table WHERE Result = re-elected AND District = south carolina 1
Translate the following into a SQL query
Who was the incumbent who was first elected in 1876?
SELECT Incumbent FROM table WHERE First elected = 1876
Translate the following into a SQL query
Who was the Democratic incumbent in the South Carolina 5 District?
SELECT Incumbent FROM table WHERE Party = democratic AND District = south carolina 5
Translate the following into a SQL query
What is the first elected date for the incumbent in the South Carolina 4 district?
SELECT First elected FROM table WHERE District = south carolina 4
Translate the following into a SQL query
Which area has a telephone of (052) of 3862279?
SELECT Area (km 2 ) FROM table WHERE Telephone (052) = 3862279
Translate the following into a SQL query
What is the sum of area with a population of 5,615 and number more than 6?
SELECT SUM Area (km 2 ) FROM table WHERE Population (people) = 5,615 AND Number > 6
Translate the following into a SQL query
Which driver had points over 252 in the season of 2012 with a percentage of possible points at 55.60%?
SELECT Driver FROM table WHERE Points > 252 AND Season = 2012 AND Percentage of possible points = 55.60%
Translate the following into a SQL query
What is the number of races that took place with points of 257?
SELECT SUM Races FROM table WHERE Points = 257
Translate the following into a SQL query
What is the number of points that driver fernando alonso has in the season he had 20 races?
SELECT SUM Points FROM table WHERE Races = 20 AND Driver = fernando alonso
Translate the following into a SQL query
What was the average Points of the season driver Fernando Alonso had a percentage of possible points of 53.05%?
SELECT AVG Points FROM table WHERE Driver = fernando alonso AND Percentage of possible points = 53.05%
Translate the following into a SQL query
What position has 217 as the pick?
SELECT Position FROM table WHERE Pick = 217
Translate the following into a SQL query
Which score has a record of 18-21-7?
SELECT Score FROM table WHERE Record = 18-21-7
Translate the following into a SQL query
What is the lowest value for apps in 2009 season in a division less than 1?
SELECT MIN Apps FROM table WHERE Season = 2009 AND Division < 1
Translate the following into a SQL query
What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29?
SELECT SUM Goals FROM table WHERE Team = torpedo moscow AND Division = 1 AND Apps < 29
Translate the following into a SQL query
Which Remixed by has a Version of album version, and an Album of les mots?
SELECT Remixed by FROM table WHERE Version = album version AND Album = les mots
Translate the following into a SQL query
How long was the instrumental version in 1986?
SELECT Length FROM table WHERE Year = 1986 AND Version = instrumental
Translate the following into a SQL query
Which long version was remixed in 1986?
SELECT Remixed by FROM table WHERE Year = 1986 AND Version = long version
Translate the following into a SQL query
Who was Canada's lead?
SELECT Lead FROM table WHERE Country = canada
Translate the following into a SQL query
What was Canada's skip?
SELECT Skip FROM table WHERE Country = canada
Translate the following into a SQL query
Which country has a Lead of sarah wazney?
SELECT Country FROM table WHERE Lead = sarah wazney
Translate the following into a SQL query
Which Lead has a Third of jeanne ellegaard?
SELECT Lead FROM table WHERE Third = jeanne ellegaard
Translate the following into a SQL query
Which Skip has a Third of sara carlsson?
SELECT Skip FROM table WHERE Third = sara carlsson
Translate the following into a SQL query
Which Skip has a Second of vicki adams?
SELECT Skip FROM table WHERE Second = vicki adams
Translate the following into a SQL query
Enrollment that has a School of south central (union mills) has what sum?
SELECT SUM Enrollment FROM table WHERE School = south central (union mills)
Translate the following into a SQL query
Mascot of blazers involves what city?
SELECT City FROM table WHERE Mascot = blazers
Translate the following into a SQL query
County of 46 laporte is what school?
SELECT School FROM table WHERE County = 46 laporte
Translate the following into a SQL query
What is the average Laps that shows spun off for time?
SELECT AVG Laps FROM table WHERE Time = spun off
Translate the following into a SQL query
What is the average Laps for the Mexico team with a grid number of more than 1?
SELECT AVG Laps FROM table WHERE Grid > 1 AND Team = mexico
Translate the following into a SQL query
What is name of the drive with a Time of +13.315?
SELECT Driver FROM table WHERE Time = +13.315
Translate the following into a SQL query
What is the total grid number that has 14 laps and a time of +29.483?
SELECT COUNT Grid FROM table WHERE Laps = 14 AND Time = +29.483
Translate the following into a SQL query
What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid?
SELECT COUNT Laps FROM table WHERE Time = collision AND Team = switzerland AND Grid < 11
Translate the following into a SQL query
What is the time of the game after week 4 against the Baltimore Ravens?
SELECT Time ( ET ) FROM table WHERE Week > 4 AND Opponent = baltimore ravens
Translate the following into a SQL query
What nominated work has seattle international film festival as the award?
SELECT Nominated work FROM table WHERE Award = seattle international film festival
Translate the following into a SQL query
What award has breakthrough performance as the category?
SELECT Award FROM table WHERE Category = breakthrough performance
Translate the following into a SQL query
What category has showest award for the category awards?
SELECT Category FROM table WHERE Award = showest award
Translate the following into a SQL query
What category has a year after 2004?
SELECT Category FROM table WHERE Year > 2004
Translate the following into a SQL query
Which Opponent had a Score of 6-3, 6-2?
SELECT Opponent FROM table WHERE Score = 6-3, 6-2
Translate the following into a SQL query
Which Score had an Opponent of chris evert-lloyd?
SELECT Score FROM table WHERE Opponent = chris evert-lloyd
Translate the following into a SQL query
Which Surface had an Opponent of chris evert-lloyd?
SELECT Surface FROM table WHERE Opponent = chris evert-lloyd
Translate the following into a SQL query
Which Surface had a Date of june 13, 1983?
SELECT Surface FROM table WHERE Date = june 13, 1983
Translate the following into a SQL query
What was the highest attendance for a game where Geelong was the home team?
SELECT MAX Crowd FROM table WHERE Home team = geelong
Translate the following into a SQL query
What was the away team score when the home team was the Brisbane Lions?
SELECT Away team score FROM table WHERE Home team = brisbane lions
Translate the following into a SQL query
When did the home team score 23.13 (151)?
SELECT Date FROM table WHERE Home team score = 23.13 (151)
Translate the following into a SQL query
What was the largest attendance at the Telstra Dome, when the home team was the Western Bulldogs?
SELECT MAX Crowd FROM table WHERE Ground = telstra dome AND Home team = western bulldogs
Translate the following into a SQL query
What is the full amount of Total Cargo (in Metric Tonnes) where the Code (IATA/ICAO) is pvg/zspd, and the rank is less than 3?
SELECT SUM Total Cargo (Metric Tonnes) FROM table WHERE Code (IATA/ICAO) = pvg/zspd AND Rank < 3
Translate the following into a SQL query
What is the Date at memorial stadium β€’ minneapolis, mn with an Attendance of 20,000, and a Result of w52-0?
SELECT Date FROM table WHERE Site = memorial stadium β€’ minneapolis, mn AND Attendance = 20,000 AND Result = w52-0
Translate the following into a SQL query
What is the Opponent name at memorial stadium β€’ minneapolis, mn on 10/20/1928?
SELECT Opponent# FROM table WHERE Site = memorial stadium β€’ minneapolis, mn AND Date = 10/20/1928
Translate the following into a SQL query
What is the Attendance number when the Opponent was purdue?
SELECT Attendance FROM table WHERE Opponent# = purdue
Translate the following into a SQL query
What is the Site when the Result was w52-0?
SELECT Site FROM table WHERE Result = w52-0
Translate the following into a SQL query
What is the Attendance on 11/10/1928?
SELECT Attendance FROM table WHERE Date = 11/10/1928
Translate the following into a SQL query
Who was the Winner at Campbelltown Sports Stadium?
SELECT Winner FROM table WHERE Venue = campbelltown sports stadium
Translate the following into a SQL query
When Sydney Roosters won with a Crown of more than 7,426, what was the Venue?
SELECT Venue FROM table WHERE Winner = sydney roosters AND Crowd > 7,426
Translate the following into a SQL query
What was the second leg score from the group stage on matchday 5?
SELECT Second leg FROM table WHERE Phase = group stage AND Round = matchday 5
Translate the following into a SQL query
What was the draw date from the qualifying phase and a round of first qualifying round?
SELECT Draw date FROM table WHERE Phase = qualifying AND Round = first qualifying round
Translate the following into a SQL query
what year did enrique alciati make a statue
SELECT Year Erected FROM table WHERE Artist = enrique alciati
Translate the following into a SQL query
what artist cam from uruguay
SELECT Artist FROM table WHERE Country = uruguay
Translate the following into a SQL query
When 1990-1995 > 0.37, 2000-2005 of 1.37, what's the highest for 1995-2000?
SELECT MAX 1995-2000 FROM table WHERE 1990-1995 > 0.37 AND 2000-2005 = 1.37
Translate the following into a SQL query
When 2000-2005 is smaller than 2.52, and 1990-1995 is less than 0.37, what's the total of 1995-2000?
SELECT SUM 1995-2000 FROM table WHERE 2000-2005 < 2.52 AND 1990-1995 < 0.37
Translate the following into a SQL query
What's China's highest 1985-1990 assuming a 2000-2005 larger than 3.08?
SELECT MAX 1985-1990 FROM table WHERE Region/country = china AND 2000-2005 > 3.08
Translate the following into a SQL query
What is the women's singles before 1965 with kaj lindfors ann-louise von essen being mixed doubles?
SELECT Women's singles FROM table WHERE Year < 1965 AND Mixed doubles = kaj lindfors ann-louise von essen
Translate the following into a SQL query
When did mika heinonen susanna dahlberg win mixed doubles?
SELECT AVG Year FROM table WHERE Mixed doubles = mika heinonen susanna dahlberg
Translate the following into a SQL query
How many years did pia pajunen nina sundberg win women's doubles?
SELECT COUNT Year FROM table WHERE Women's doubles = pia pajunen nina sundberg
Translate the following into a SQL query
Who won women's singles in 1961?
SELECT Women's singles FROM table WHERE Year = 1961
Translate the following into a SQL query
Score of 0–3 (11–21, 14–21) had what outcome?
SELECT Outcome FROM table WHERE Score = 0–3 (11–21, 14–21)
Translate the following into a SQL query
Venue of thessaloniki (without participation) had what score?
SELECT Score FROM table WHERE Venue = thessaloniki (without participation)
Translate the following into a SQL query
Outcome of 13, and a Year of 2007 happened in what venue?
SELECT Venue FROM table WHERE Outcome = 13 AND Year = 2007
Translate the following into a SQL query
Which Eruptions have a Location of pacific ring of fire, and a Volcanic Explosivity Index of 6, and a Country of peru?
SELECT Eruptions FROM table WHERE Location = pacific ring of fire AND Volcanic Explosivity Index = 6 AND Country = peru
Translate the following into a SQL query
How many fatalities does Italy have?
SELECT Fatalities FROM table WHERE Country = italy
Translate the following into a SQL query
How many years have a Location of pacific ring of fire, and Eruptions of pinatubo?
SELECT SUM Year FROM table WHERE Location = pacific ring of fire AND Eruptions = pinatubo
Translate the following into a SQL query
What is the Standings of Eintracht Braunschweig?
SELECT Standings FROM table WHERE Champions = eintracht braunschweig
Translate the following into a SQL query
Year larger than 2001 has what average points?
SELECT AVG Points FROM table WHERE Year > 2001
Translate the following into a SQL query
Team of Honda and a point total of 238 is what highest year?
SELECT MAX Year FROM table WHERE Team = honda AND Points = 238
Translate the following into a SQL query
Wins of 0 involves what team?
SELECT Team FROM table WHERE Wins = 0
Translate the following into a SQL query
what player has a pick of 5
SELECT Player FROM table WHERE Pick = 5
Translate the following into a SQL query
Which District has a First elected of 1858, and a Result of retired republican gain, and an Incumbent of william millward?
SELECT District FROM table WHERE First elected = 1858 AND Result = retired republican gain AND Incumbent = william millward
Translate the following into a SQL query
Which Result has a District of pennsylvania 13?
SELECT Result FROM table WHERE District = pennsylvania 13
Translate the following into a SQL query
Which First elected is the lowest one that has an Incumbent of william stewart?
SELECT MIN First elected FROM table WHERE Incumbent = william stewart
Translate the following into a SQL query
Who was the Player when College/Junior/Club Team (League) was regina pats (whl)?
SELECT Player FROM table WHERE College/Junior/Club Team (League) = regina pats (whl)
Translate the following into a SQL query
What is the date of the game with an attendance larger than 62,491?
SELECT Date FROM table WHERE Attendance > 62,491
Translate the following into a SQL query
What is the attendance of the game on week 4?
SELECT Attendance FROM table WHERE Week = 4
Translate the following into a SQL query
How many extra points are there that Herrnstein had with less than 2 touchdowns and less than 0 field goals?
SELECT AVG Extra points FROM table WHERE Touchdowns < 2 AND Player = herrnstein AND Field goals < 0
Translate the following into a SQL query
How many touchdowns are there that has field goals less than 0 and 0 extra points?
SELECT SUM Touchdowns FROM table WHERE Extra points = 0 AND Field goals < 0
Translate the following into a SQL query
How many field goals are there that have 8 touchdowns and more than 49 points?
SELECT SUM Field goals FROM table WHERE Touchdowns = 8 AND Points > 49
Translate the following into a SQL query
What's the number of touchdowns that Snow made that had 0 field goals, more than 5 points, and more than 0 extra points?
SELECT MIN Touchdowns FROM table WHERE Points > 5 AND Field goals = 0 AND Player = snow AND Extra points > 0
Translate the following into a SQL query
For an IATA of MLE, what is the ICAO?
SELECT ICAO FROM table WHERE IATA = mle
Translate the following into a SQL query
For an ICAO of VCCT, what is the IATA?
SELECT IATA FROM table WHERE ICAO = vcct
Translate the following into a SQL query
Which city has an ICAO of VCCJ?
SELECT City FROM table WHERE ICAO = vccj
Translate the following into a SQL query
Which ICAO is found in Vavuniya?
SELECT ICAO FROM table WHERE City = vavuniya
Translate the following into a SQL query
Which country has Weerawila Airport?
SELECT Country FROM table WHERE Airport = weerawila airport
Translate the following into a SQL query
Which opponent has april 1 as the date?
SELECT Opponent FROM table WHERE Date = april 1
Translate the following into a SQL query
What opponent has tomko (1-1) as a loss?
SELECT Opponent FROM table WHERE Loss = tomko (1-1)
Translate the following into a SQL query
What opponent has 8-10 as the record?
SELECT Opponent FROM table WHERE Record = 8-10
Translate the following into a SQL query
Whcih was the Class AAA in school year 2006-07?
SELECT Class AAA FROM table WHERE School Year = 2006-07
Translate the following into a SQL query
What team was class AA in years 1994-95?
SELECT Class AA FROM table WHERE School Year = 1994-95
Translate the following into a SQL query
Who was Class AA in School Year 1994-95?
SELECT Class AA FROM table WHERE School Year = 1994-95
Translate the following into a SQL query
What's the date of the game that has the Bulls as a visiting team?
SELECT Date FROM table WHERE Visitor = bulls
Translate the following into a SQL query
What is the average game number that took place after February 13 against the Toronto Maple Leafs and more than 47 points were scored?
SELECT AVG Game FROM table WHERE February > 13 AND Opponent = toronto maple leafs AND Points > 47