instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What percentage of others have an SZDSZ of 4% and a Fidesz of 60%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (others VARCHAR, szdsz VARCHAR, fidesz VARCHAR) | SELECT others FROM table_name_10 WHERE szdsz = "4%" AND fidesz = "60%" |
Write a SQL query that answers the following question: What is the percentage of others with a Fidesz of 62% and a Jobbik of 4%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (others VARCHAR, fidesz VARCHAR, jobbik VARCHAR) | SELECT others FROM table_name_93 WHERE fidesz = "62%" AND jobbik = "4%" |
Write a SQL query that answers the following question: On what date do others have 5% with an SZDSZ of 5%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (date VARCHAR, others VARCHAR, szdsz VARCHAR) | SELECT date FROM table_name_14 WHERE others = "5%" AND szdsz = "5%" |
Write a SQL query that answers the following question: What is the SZDSZ percentage with a Jobbik of 5% and a Fidesz of 68%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (szdsz VARCHAR, jobbik VARCHAR, fidesz VARCHAR) | SELECT szdsz FROM table_name_60 WHERE jobbik = "5%" AND fidesz = "68%" |
Write a SQL query that answers the following question: What is the Jobbik percentage with a Fidesz of 61% and others of 2%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (jobbik VARCHAR, fidesz VARCHAR, others VARCHAR) | SELECT jobbik FROM table_name_41 WHERE fidesz = "61%" AND others = "2%" |
Write a SQL query that answers the following question: What's listed for the Turnout % with a Ngilu of 3,429? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (turnout__percentage VARCHAR, ngilu VARCHAR) | SELECT turnout__percentage FROM table_name_11 WHERE ngilu = "3,429" |
Write a SQL query that answers the following question: What's listed for the Turnout % with a Raila of 519,180? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (turnout__percentage VARCHAR, raila VARCHAR) | SELECT turnout__percentage FROM table_name_70 WHERE raila = "519,180" |
Write a SQL query that answers the following question: What's listed for the Turnout % with a Ngilu of 30,535? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (turnout__percentage VARCHAR, ngilu VARCHAR) | SELECT turnout__percentage FROM table_name_32 WHERE ngilu = "30,535" |
Write a SQL query that answers the following question: What's listed for the Registered Voters with a Ngilu of 3,429? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (registered_voters VARCHAR, ngilu VARCHAR) | SELECT registered_voters FROM table_name_68 WHERE ngilu = "3,429" |
Write a SQL query that answers the following question: What is listed for the Province with a Wamalwa of 4,431? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (province VARCHAR, wamalwa VARCHAR) | SELECT province FROM table_name_82 WHERE wamalwa = "4,431" |
Write a SQL query that answers the following question: What's listed for the Wamalwa that has a Turnout % of 55.9%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (wamalwa VARCHAR, turnout__percentage VARCHAR) | SELECT wamalwa FROM table_name_32 WHERE turnout__percentage = "55.9%" |
Write a SQL query that answers the following question: What were the average partial failures when the rocket was Ariane 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (partial_failures INTEGER, rocket VARCHAR) | SELECT AVG(partial_failures) FROM table_name_87 WHERE rocket = "ariane 5" |
Write a SQL query that answers the following question: What are average launches with 0 failures, rocket of Soyuz, and less than 12 successes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (launches INTEGER, successes VARCHAR, failures VARCHAR, rocket VARCHAR) | SELECT AVG(launches) FROM table_name_3 WHERE failures = 0 AND rocket = "soyuz" AND successes < 12 |
Write a SQL query that answers the following question: What is the sum of launches with Long March 3 and 0 failures? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (launches INTEGER, rocket VARCHAR, failures VARCHAR) | SELECT SUM(launches) FROM table_name_4 WHERE rocket = "long march 3" AND failures > 0 |
Write a SQL query that answers the following question: What is the least amount of failures with 1 launch and 0 partial failures? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (failures INTEGER, launches VARCHAR, partial_failures VARCHAR) | SELECT MIN(failures) FROM table_name_28 WHERE launches = 1 AND partial_failures < 0 |
Write a SQL query that answers the following question: What were the average launches for Ariane 5 and 0 partial failures? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (launches INTEGER, rocket VARCHAR, partial_failures VARCHAR) | SELECT AVG(launches) FROM table_name_63 WHERE rocket = "ariane 5" AND partial_failures < 0 |
Write a SQL query that answers the following question: What was the race of the jockey in na group in 4th place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (race VARCHAR, group VARCHAR, result VARCHAR) | SELECT race FROM table_name_15 WHERE group = "na" AND result = "4th" |
Write a SQL query that answers the following question: How far did p. carbery run to get 2nd? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (distance VARCHAR, jockey VARCHAR, result VARCHAR) | SELECT distance FROM table_name_67 WHERE jockey = "p. carbery" AND result = "2nd" |
Write a SQL query that answers the following question: What is the Removal that has a Trim of xe (2009)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (transmission VARCHAR, trim VARCHAR) | SELECT transmission FROM table_name_32 WHERE trim = "xe (2009)" |
Write a SQL query that answers the following question: What is the Torque that has a Power of hp (kw), and a Trim of xr (2009)? Question 6 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (torque VARCHAR, power VARCHAR, trim VARCHAR) | SELECT torque FROM table_name_18 WHERE power = "hp (kw)" AND trim = "xr (2009)" |
Write a SQL query that answers the following question: Which Round is the lowest one that has a College/Junior/Club Team (League) of oshawa generals (oha), and a Player of bob kelly? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (round INTEGER, college_junior_club_team__league_ VARCHAR, player VARCHAR) | SELECT MIN(round) FROM table_name_83 WHERE college_junior_club_team__league_ = "oshawa generals (oha)" AND player = "bob kelly" |
Write a SQL query that answers the following question: What surface was used when she played with Remi Tezuka? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (surface VARCHAR, partner VARCHAR) | SELECT surface FROM table_name_76 WHERE partner = "remi tezuka" |
Write a SQL query that answers the following question: What Results has the Record of 28-12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (results VARCHAR, record VARCHAR) | SELECT results FROM table_name_94 WHERE record = "28-12" |
Write a SQL query that answers the following question: What Results has a Seed #12 and a Year that's smaller than 1996 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (results VARCHAR, seed VARCHAR, year VARCHAR) | SELECT results FROM table_name_36 WHERE seed = "#12" AND year < 1996 |
Write a SQL query that answers the following question: What's the highest Year with the Record of 18-12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (year INTEGER, record VARCHAR) | SELECT MAX(year) FROM table_name_23 WHERE record = "18-12" |
Write a SQL query that answers the following question: What's the highest Year with the Region of Southeast? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (year INTEGER, region VARCHAR) | SELECT MAX(year) FROM table_name_11 WHERE region = "southeast" |
Write a SQL query that answers the following question: What Record has a Year that's larger than 2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (record VARCHAR, year INTEGER) | SELECT record FROM table_name_11 WHERE year > 2012 |
Write a SQL query that answers the following question: What is the Laker's record when they played against Kansas City Kings? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_84 WHERE opponent = "kansas city kings" |
Write a SQL query that answers the following question: Name the pronunciation for 傳 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (pronunciation_a VARCHAR, word VARCHAR) | SELECT pronunciation_a FROM table_name_83 WHERE word = "傳" |
Write a SQL query that answers the following question: Name the pronunciation for meaning of king | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (pronunciation_a VARCHAR, meaning_a VARCHAR) | SELECT pronunciation_a FROM table_name_85 WHERE meaning_a = "king" |
Write a SQL query that answers the following question: Name the word with pronunciation b of *sɨks | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (word VARCHAR, pronunciation_b VARCHAR) | SELECT word FROM table_name_55 WHERE pronunciation_b = "*sɨks" |
Write a SQL query that answers the following question: Name the pronunciation for meaning b of border, frontier | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (pronunciation_b VARCHAR, meaning_b VARCHAR) | SELECT pronunciation_b FROM table_name_64 WHERE meaning_b = "border, frontier" |
Write a SQL query that answers the following question: Name the pronunciation b for meaning of grind | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (pronunciation_b VARCHAR, meaning_a VARCHAR) | SELECT pronunciation_b FROM table_name_56 WHERE meaning_a = "grind" |
Write a SQL query that answers the following question: What is the 2008 value that was 2nd in 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (Id VARCHAR) | SELECT 2008 FROM table_name_87 WHERE 2006 = "2nd" |
Write a SQL query that answers the following question: What is the average total that is 1st in 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (total INTEGER) | SELECT AVG(total) FROM table_name_8 WHERE 2010 = "1st" |
Write a SQL query that answers the following question: What is the 2008 value with a 7 in 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (Id VARCHAR) | SELECT 2008 FROM table_name_94 WHERE 2010 = "7" |
Write a SQL query that answers the following question: What is the Location for the woodburn dragstrip? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (location VARCHAR, name VARCHAR) | SELECT location FROM table_name_12 WHERE name = "woodburn dragstrip" |
Write a SQL query that answers the following question: What State has an Opened (closing date if defunct) that shows 1960? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (state VARCHAR, opened__closing_date_if_defunct_ VARCHAR) | SELECT state FROM table_name_28 WHERE opened__closing_date_if_defunct_ = "1960" |
Write a SQL query that answers the following question: What is the Location for the route 66 raceway? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (location VARCHAR, name VARCHAR) | SELECT location FROM table_name_70 WHERE name = "route 66 raceway" |
Write a SQL query that answers the following question: What is the Location for the newington international airport? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (location VARCHAR, name VARCHAR) | SELECT location FROM table_name_6 WHERE name = "newington international airport" |
Write a SQL query that answers the following question: What is the Name with an Opened (closing date if defunct) of 1995 and has a Length of miles (m), in Illinois? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (name VARCHAR, state VARCHAR, opened__closing_date_if_defunct_ VARCHAR, length VARCHAR) | SELECT name FROM table_name_9 WHERE opened__closing_date_if_defunct_ = "1995" AND length = "miles (m)" AND state = "illinois" |
Write a SQL query that answers the following question: What is the Score with an Opponent that is amanda brown brenda remilton? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (score VARCHAR, opponents VARCHAR) | SELECT score FROM table_name_45 WHERE opponents = "amanda brown brenda remilton" |
Write a SQL query that answers the following question: What is the Score with an Outcome of runner-up, and a Partner that is elizabeth little? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (score VARCHAR, outcome VARCHAR, partner VARCHAR) | SELECT score FROM table_name_1 WHERE outcome = "runner-up" AND partner = "elizabeth little" |
Write a SQL query that answers the following question: Who was the pitcher on June 8, 1961? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (pitcher VARCHAR, date VARCHAR) | SELECT pitcher FROM table_name_88 WHERE date = "june 8, 1961" |
Write a SQL query that answers the following question: What team had the record asscoiated with the 9th inning? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (team VARCHAR, inn VARCHAR) | SELECT team FROM table_name_54 WHERE inn = "9th" |
Write a SQL query that answers the following question: In what venue did the Boston Red Sox play in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (venue VARCHAR, team VARCHAR) | SELECT venue FROM table_name_49 WHERE team = "boston red sox" |
Write a SQL query that answers the following question: Who was the pitcher with the record recorded in the 7th inning? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (pitcher VARCHAR, inn VARCHAR) | SELECT pitcher FROM table_name_55 WHERE inn = "7th" |
Write a SQL query that answers the following question: When David E. Finley was the incumbent what was the result? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_name_8 WHERE incumbent = "david e. finley" |
Write a SQL query that answers the following question: When someone was first elected in 1898 what was the result? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (result VARCHAR, first_elected VARCHAR) | SELECT result FROM table_name_53 WHERE first_elected = "1898" |
Write a SQL query that answers the following question: What party has an incumbent of Stanyarne Wilson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_name_86 WHERE incumbent = "stanyarne wilson" |
Write a SQL query that answers the following question: When the incumbent was William Elliott, what was the result? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_name_75 WHERE incumbent = "william elliott" |
Write a SQL query that answers the following question: Score of 2-1, and a Competition of pl, and a Date of december 22, 2006 had what opponents? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (opponents VARCHAR, date VARCHAR, score VARCHAR, competition VARCHAR) | SELECT opponents FROM table_name_84 WHERE score = "2-1" AND competition = "pl" AND date = "december 22, 2006" |
Write a SQL query that answers the following question: Date of april 3, 2007 had what score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_2 WHERE date = "april 3, 2007" |
Write a SQL query that answers the following question: Competition of pl, and a Score of 1-1, and a Opponents of kelantan had what date? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (date VARCHAR, opponents VARCHAR, competition VARCHAR, score VARCHAR) | SELECT date FROM table_name_5 WHERE competition = "pl" AND score = "1-1" AND opponents = "kelantan" |
Write a SQL query that answers the following question: Venue of klfa stadium, cheras, and a Score of 3-3 had what competition? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (competition VARCHAR, venue VARCHAR, score VARCHAR) | SELECT competition FROM table_name_71 WHERE venue = "klfa stadium, cheras" AND score = "3-3" |
Write a SQL query that answers the following question: Opponents of police, and a Venue of selayang municipal council stadium had what date? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (date VARCHAR, opponents VARCHAR, venue VARCHAR) | SELECT date FROM table_name_35 WHERE opponents = "police" AND venue = "selayang municipal council stadium" |
Write a SQL query that answers the following question: Competition of fa cup rd 1 had what venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (venue VARCHAR, competition VARCHAR) | SELECT venue FROM table_name_69 WHERE competition = "fa cup rd 1" |
Write a SQL query that answers the following question: Who was the visiting team on January 27? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_24 WHERE date = "january 27" |
Write a SQL query that answers the following question: What is the home team that played on February 25? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (home VARCHAR, date VARCHAR) | SELECT home FROM table_name_43 WHERE date = "february 25" |
Write a SQL query that answers the following question: Name the date with chicago visiting | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (date VARCHAR, visitor VARCHAR) | SELECT date FROM table_name_64 WHERE visitor = "chicago" |
Write a SQL query that answers the following question: Name the home with chicago visiting | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (home VARCHAR, visitor VARCHAR) | SELECT home FROM table_name_76 WHERE visitor = "chicago" |
Write a SQL query that answers the following question: What is the highest number of apps of the player with more than 63 goals and an avge of 0.45? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (apps INTEGER, goals VARCHAR, avge VARCHAR) | SELECT MAX(apps) FROM table_name_55 WHERE goals > 63 AND avge = 0.45 |
Write a SQL query that answers the following question: What is the total avge of John Hall, who has less than 63 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (avge VARCHAR, name VARCHAR, goals VARCHAR) | SELECT COUNT(avge) FROM table_name_25 WHERE name = "john hall" AND goals < 63 |
Write a SQL query that answers the following question: When did Kim Thompson win with 278 score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (year INTEGER, score VARCHAR, champion VARCHAR) | SELECT SUM(year) FROM table_name_87 WHERE score = "278" AND champion = "kim thompson" |
Write a SQL query that answers the following question: Where did Steve Gotsche win? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (venue VARCHAR, champion VARCHAR) | SELECT venue FROM table_name_26 WHERE champion = "steve gotsche" |
Write a SQL query that answers the following question: What is the sum of Rank with a build year earlier than 2007 for the howard johnson hotel bucharest? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (rank INTEGER, built VARCHAR, building VARCHAR) | SELECT SUM(rank) FROM table_name_39 WHERE built < 2007 AND building = "howard johnson hotel bucharest" |
Write a SQL query that answers the following question: What is the Height (m/ft) for bucharest Built in 2009, and a Rank of 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (height__m_ft_ VARCHAR, rank VARCHAR, city VARCHAR, built VARCHAR) | SELECT height__m_ft_ FROM table_name_47 WHERE city = "bucharest" AND built = 2009 AND rank = 13 |
Write a SQL query that answers the following question: What city is the bucharest tower center (btc) located in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (city VARCHAR, building VARCHAR) | SELECT city FROM table_name_47 WHERE building = "bucharest tower center (btc)" |
Write a SQL query that answers the following question: What is the name of the building in Bucharest with a rank of less than 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (building VARCHAR, city VARCHAR, rank VARCHAR) | SELECT building FROM table_name_90 WHERE city = "bucharest" AND rank < 12 |
Write a SQL query that answers the following question: What city was the building built in 1988? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (city VARCHAR, built VARCHAR) | SELECT city FROM table_name_93 WHERE built = 1988 |
Write a SQL query that answers the following question: What is the score of the Boston Bruins game from April 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (score VARCHAR, home VARCHAR, date VARCHAR) | SELECT score FROM table_name_39 WHERE home = "boston bruins" AND date = "april 11" |
Write a SQL query that answers the following question: What is the record of the Hartford Whalers home team with the April 13 game date? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (record VARCHAR, home VARCHAR, date VARCHAR) | SELECT record FROM table_name_7 WHERE home = "hartford whalers" AND date = "april 13" |
Write a SQL query that answers the following question: What is the score of the visiting Hartford Whalers game from April 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (score VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT score FROM table_name_8 WHERE visitor = "hartford whalers" AND date = "april 11" |
Write a SQL query that answers the following question: Which Passengers have Carriers of air canada? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (passengers VARCHAR, carriers VARCHAR) | SELECT passengers FROM table_name_65 WHERE carriers = "air canada" |
Write a SQL query that answers the following question: Which Metropolitan area has an Airport of toronto pearson international airport? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (metropolitan_area VARCHAR, airport VARCHAR) | SELECT metropolitan_area FROM table_name_94 WHERE airport = "toronto pearson international airport" |
Write a SQL query that answers the following question: What is the link for january 31 – february 3, 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (link VARCHAR, date_of_polling VARCHAR) | SELECT link FROM table_name_64 WHERE date_of_polling = "january 31 – february 3, 2011" |
Write a SQL query that answers the following question: On what date of polling was the Polling Firm forum research with 7 green and less than 30 liberals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (date_of_polling VARCHAR, liberal VARCHAR, polling_firm VARCHAR, green VARCHAR) | SELECT date_of_polling FROM table_name_2 WHERE polling_firm = "forum research" AND green = 7 AND liberal < 30 |
Write a SQL query that answers the following question: Which september 26–28, 2011 polling firm had a Link of html, less than 36 liberals, and less than 8 green? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (polling_firm VARCHAR, date_of_polling VARCHAR, green VARCHAR, link VARCHAR, liberal VARCHAR) | SELECT polling_firm FROM table_name_96 WHERE link = "html" AND liberal < 36 AND green < 8 AND date_of_polling = "september 26–28, 2011" |
Write a SQL query that answers the following question: What june 21–22, 2011 polling has green smaller than 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (polling_firm VARCHAR, green VARCHAR, date_of_polling VARCHAR) | SELECT polling_firm FROM table_name_89 WHERE green < 13 AND date_of_polling = "june 21–22, 2011" |
Write a SQL query that answers the following question: What is listed under the Years as tallest, that has Floors of 31? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (years_as_tallest VARCHAR, floors VARCHAR) | SELECT years_as_tallest FROM table_name_83 WHERE floors = 31 |
Write a SQL query that answers the following question: What's the lowest Floors with Feet that's larger htan 262, has a Name of Standard Bank Building, and Metres that's larger htan 138.8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (floors INTEGER, metres VARCHAR, feet VARCHAR, name VARCHAR) | SELECT MIN(floors) FROM table_name_29 WHERE feet > 262 AND name = "standard bank building" AND metres > 138.8 |
Write a SQL query that answers the following question: What is the sum of Metres wiht a Feet that's smaller than 196? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (metres VARCHAR, feet INTEGER) | SELECT COUNT(metres) FROM table_name_51 WHERE feet < 196 |
Write a SQL query that answers the following question: What is the highest weight of the position scrum half? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (weight__kg_ INTEGER, position VARCHAR) | SELECT MAX(weight__kg_) FROM table_name_24 WHERE position = "scrum half" |
Write a SQL query that answers the following question: What is the power of the engine with a torque of n·m (lb·ft) at1,500rpm? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (power VARCHAR, torque VARCHAR) | SELECT power FROM table_name_15 WHERE torque = "n·m (lb·ft) at1,500rpm" |
Write a SQL query that answers the following question: Which torque value is associated with the 1.3 16V multijet engine? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (torque VARCHAR, engine VARCHAR) | SELECT torque FROM table_name_86 WHERE engine = "1.3 16v multijet" |
Write a SQL query that answers the following question: What is the lowest against value with less than 2 draws, 10 points, and less than 4 lost? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (against INTEGER, lost VARCHAR, drawn VARCHAR, points VARCHAR) | SELECT MIN(against) FROM table_name_17 WHERE drawn < 2 AND points = 10 AND lost < 4 |
Write a SQL query that answers the following question: What is the average position with an against value less than 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (position INTEGER, against INTEGER) | SELECT AVG(position) FROM table_name_76 WHERE against < 11 |
Write a SQL query that answers the following question: What is the largest value for lost with a position greater than 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (lost INTEGER, position INTEGER) | SELECT MAX(lost) FROM table_name_89 WHERE position > 10 |
Write a SQL query that answers the following question: What is the total of all against values for the Corinthians with less than 3 lost? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (against VARCHAR, team VARCHAR, lost VARCHAR) | SELECT COUNT(against) FROM table_name_4 WHERE team = "corinthians" AND lost < 3 |
Write a SQL query that answers the following question: What is the lowest against value with less than 9 points and more than 6 lost? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (against INTEGER, points VARCHAR, lost VARCHAR) | SELECT MIN(against) FROM table_name_29 WHERE points < 9 AND lost > 6 |
Write a SQL query that answers the following question: What tournament located is mississippi was nov 5 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (tournament VARCHAR, date VARCHAR, location VARCHAR) | SELECT tournament FROM table_name_83 WHERE date = "nov 5" AND location = "mississippi" |
Write a SQL query that answers the following question: what is the 1st prize for may 21 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (date VARCHAR) | SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_19 WHERE date = "may 21" |
Write a SQL query that answers the following question: Who is the director of the game with HIroshi Sato as the producer on the GBA platform? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (director VARCHAR, producer VARCHAR, platform_s_ VARCHAR) | SELECT director FROM table_name_41 WHERE producer = "hiroshi sato" AND platform_s_ = "gba" |
Write a SQL query that answers the following question: Who is the director of Last Window: The Secret of Cape West 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (director VARCHAR, title VARCHAR) | SELECT director FROM table_name_93 WHERE title = "last window: the secret of cape west 3" |
Write a SQL query that answers the following question: What is the platform of the 2010 game with Shuichiro Nishiya as director? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (platform_s_ VARCHAR, year VARCHAR, director VARCHAR) | SELECT platform_s_ FROM table_name_5 WHERE year = 2010 AND director = "shuichiro nishiya" |
Write a SQL query that answers the following question: Which Opponent is on October of 29? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (opponent VARCHAR, october VARCHAR) | SELECT opponent FROM table_name_66 WHERE october = 29 |
Write a SQL query that answers the following question: WHich October has a Record of 1–0–0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (october INTEGER, record VARCHAR) | SELECT MIN(october) FROM table_name_50 WHERE record = "1–0–0" |
Write a SQL query that answers the following question: Which Opponent has a October larger than 20 with a Score of 2–2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (opponent VARCHAR, october VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_42 WHERE october > 20 AND score = "2–2" |
Write a SQL query that answers the following question: What year was the score 269? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (year VARCHAR, score VARCHAR) | SELECT COUNT(year) FROM table_name_34 WHERE score = 269 |
Write a SQL query that answers the following question: What is the average number of points for a team in the 250cc class with fewer than 0 wins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (points INTEGER, class VARCHAR, wins VARCHAR) | SELECT AVG(points) FROM table_name_96 WHERE class = "250cc" AND wins < 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.