question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
What are the country names, area and population which has both roller coasters with speed higher | CREATE TABLE country (name VARCHAR, area VARCHAR, population VARCHAR, Country_ID VARCHAR); CREATE TABLE roller_coaster (Country_ID VARCHAR, speed INTEGER) | SELECT T1.name, T1.area, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed > 60 INTERSECT SELECT T1.name, T1.area, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed < 55 |
The 1977 Japanese Grand Prix in the open wheel discipline has what session? | CREATE TABLE table_name_78 (session VARCHAR, discipline VARCHAR, event VARCHAR) | SELECT session FROM table_name_78 WHERE discipline = "open wheel" AND event = "1977 japanese grand prix" |
What year did the ship Europa, have the dates of 14 – 23 October? | CREATE TABLE table_name_32 (year INTEGER, ship VARCHAR, dates VARCHAR) | SELECT AVG(year) FROM table_name_32 WHERE ship = "europa" AND dates = "14 – 23 october" |
What is the total in 2000–2012, with more than 2 silver, 0 Bronze, and a Rank smaller than 70? | CREATE TABLE table_name_71 (total INTEGER, rank VARCHAR, bronze VARCHAR, years VARCHAR, silver VARCHAR) | SELECT SUM(total) FROM table_name_71 WHERE years = "2000–2012" AND silver > 2 AND bronze = 0 AND rank < 70 |
What is the average capacity for the venue where the team kommunalnik played? | CREATE TABLE table_name_29 (capacity INTEGER, team VARCHAR) | SELECT AVG(capacity) FROM table_name_29 WHERE team = "kommunalnik" |
What LNER Class has a Class of 3? | CREATE TABLE table_name_86 (LNER VARCHAR, class VARCHAR) | SELECT LNER AS class FROM table_name_86 WHERE class = "3" |
What is the record from the 2,500 in attendance? | CREATE TABLE table_name_12 (record VARCHAR, attendance VARCHAR) | SELECT record FROM table_name_12 WHERE attendance = "2,500" |
How many were in attendance when the result was l 20-17? | CREATE TABLE table_name_42 (attendance VARCHAR, result VARCHAR) | SELECT attendance FROM table_name_42 WHERE result = "l 20-17" |
What's the 2010 result when 2006 is a? | CREATE TABLE table_name_20 (Id VARCHAR) | SELECT 2010 FROM table_name_20 WHERE 2006 = "a" |
Find the name of the most popular party form. | CREATE TABLE party_forms (form_id VARCHAR); CREATE TABLE forms (form_name VARCHAR, form_id VARCHAR) | SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id = t2.form_id GROUP BY t2.form_id ORDER BY COUNT(*) DESC LIMIT 1 |
What was the score when the mavericks were visitors? | CREATE TABLE table_name_23 (score VARCHAR, visitor VARCHAR) | SELECT score FROM table_name_23 WHERE visitor = "mavericks" |
When 4744 is the avg. trips per mile (x1000) what is the current stock? | CREATE TABLE table_17839_1 (current_stock VARCHAR, avg_trips_per_mile__×1000_ VARCHAR) | SELECT current_stock FROM table_17839_1 WHERE avg_trips_per_mile__×1000_ = 4744 |
What is the (MT) time which has kansas city chiefs as an opponent on nov 11? | CREATE TABLE table_name_13 (time___mt__ VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT time___mt__ FROM table_name_13 WHERE opponent = "kansas city chiefs" AND date = "nov 11" |
When was the earliest season of Juncadella's career? | CREATE TABLE table_25538763_1 (season INTEGER) | SELECT MIN(season) FROM table_25538763_1 |
Which college is Jordan Phillips playing for? | CREATE TABLE table_name_85 (college VARCHAR, player VARCHAR) | SELECT college FROM table_name_85 WHERE player = "jordan phillips" |
What's the branding for frequency 1233khz? | CREATE TABLE table_name_5 (branding VARCHAR, frequency VARCHAR) | SELECT branding FROM table_name_5 WHERE frequency = "1233khz" |
How high is the Attendance with a Record of 29-25? | CREATE TABLE table_name_68 (attendance INTEGER, record VARCHAR) | SELECT MAX(attendance) FROM table_name_68 WHERE record = "29-25" |
Which Year has an Edition of 41st? | CREATE TABLE table_name_58 (year VARCHAR, edition VARCHAR) | SELECT year FROM table_name_58 WHERE edition = "41st" |
What is the earliest season with a premiere of february5,2007? | CREATE TABLE table_name_90 (episodes INTEGER, premiere VARCHAR) | SELECT MIN(episodes) FROM table_name_90 WHERE premiere = "february5,2007" |
What is the grid number for troy corser with under 22 laps? | CREATE TABLE table_name_48 (grid INTEGER, rider VARCHAR, laps VARCHAR) | SELECT SUM(grid) FROM table_name_48 WHERE rider = "troy corser" AND laps < 22 |
What is the record when they played New York? | CREATE TABLE table_name_64 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_64 WHERE opponent = "new york" |
Show the crime rate of counties with a city having white percentage more than 90. | CREATE TABLE county_public_safety (Crime_rate VARCHAR, County_ID VARCHAR); CREATE TABLE city (County_ID VARCHAR, White INTEGER) | SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID WHERE T1.White > 90 |
how many broadcaste dates features the overtones | CREATE TABLE table_29135051_3 (broadcast_date VARCHAR, singer_s_ VARCHAR) | SELECT COUNT(broadcast_date) FROM table_29135051_3 WHERE singer_s_ = "The Overtones" |
Who is the winner of the European Poker Tour Grand Final? | CREATE TABLE table_name_11 (winner VARCHAR, event VARCHAR) | SELECT winner FROM table_name_11 WHERE event = "european poker tour grand final" |
Who was the network who had Ken Squier as a host and 13.9 million viewers? | CREATE TABLE table_name_74 (network VARCHAR, host VARCHAR, viewers VARCHAR) | SELECT network FROM table_name_74 WHERE host = "ken squier" AND viewers = "13.9 million" |
What is the Academy Award for the Film Educating Peter? | CREATE TABLE table_name_34 (academy_award VARCHAR, film VARCHAR) | SELECT academy_award FROM table_name_34 WHERE film = "educating peter" |
What chapter number is Shiqiu? | CREATE TABLE table_1216675_1 (chapter INTEGER, pinyin VARCHAR) | SELECT MIN(chapter) FROM table_1216675_1 WHERE pinyin = "Shiqiu" |
During what period did Ricky Ponting play? | CREATE TABLE table_21100348_10 (period VARCHAR, player VARCHAR) | SELECT period FROM table_21100348_10 WHERE player = "Ricky Ponting" |
When was the lock with 10 caps born? | CREATE TABLE table_name_20 (date_of_birth__age_ VARCHAR, position VARCHAR, caps VARCHAR) | SELECT date_of_birth__age_ FROM table_name_20 WHERE position = "lock" AND caps = 10 |
What position shows for canada, and an NHL team of new york islanders, and a Pick # of 113? | CREATE TABLE table_name_29 (position VARCHAR, pick__number VARCHAR, nationality VARCHAR, nhl_team VARCHAR) | SELECT position FROM table_name_29 WHERE nationality = "canada" AND nhl_team = "new york islanders" AND pick__number = "113" |
How many opponents were in North Carolina state game? | CREATE TABLE table_20928649_1 (opponents VARCHAR, opponent VARCHAR) | SELECT COUNT(opponents) FROM table_20928649_1 WHERE opponent = "North Carolina State" |
Who is the player with a t5 place and a 75-70=145 score? | CREATE TABLE table_name_47 (player VARCHAR, place VARCHAR, score VARCHAR) | SELECT player FROM table_name_47 WHERE place = "t5" AND score = 75 - 70 = 145 |
What is the venue when melbourne is the away team? | CREATE TABLE table_name_25 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_25 WHERE away_team = "melbourne" |
what is th area where the municipaity is labrador? | CREATE TABLE table_1691800_2 (area__km²_ VARCHAR, municipality VARCHAR) | SELECT area__km²_ FROM table_1691800_2 WHERE municipality = "Labrador" |
What is the Overall Record when Since Beginning of Big 12 is ou, 27-3? | CREATE TABLE table_name_11 (overall_record VARCHAR, since_beginning_of_big_12 VARCHAR) | SELECT overall_record FROM table_name_11 WHERE since_beginning_of_big_12 = "ou, 27-3" |
What venue has a Result of 3-0? | CREATE TABLE table_name_73 (venue VARCHAR, result VARCHAR) | SELECT venue FROM table_name_73 WHERE result = "3-0" |
What years were the Iowa State school/club team have a jazz club? | CREATE TABLE table_11545282_19 (years_for_jazz VARCHAR, school_club_team VARCHAR) | SELECT years_for_jazz FROM table_11545282_19 WHERE school_club_team = "Iowa State" |
What was Jack Nicklaus's score after round 1? | CREATE TABLE table_name_97 (score INTEGER, player VARCHAR) | SELECT MIN(score) FROM table_name_97 WHERE player = "jack nicklaus" |
For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees. | CREATE TABLE Circulation_History (document_id VARCHAR, employee_id VARCHAR) | SELECT document_id, COUNT(DISTINCT employee_id) FROM Circulation_History GROUP BY document_id |
where is citv located | CREATE TABLE table_1397655_1 (city VARCHAR, station VARCHAR) | SELECT city FROM table_1397655_1 WHERE station = "CITV" |
Name the part one for to give | CREATE TABLE table_1745843_9 (part_1 VARCHAR, verb_meaning VARCHAR) | SELECT part_1 FROM table_1745843_9 WHERE verb_meaning = "to give" |
What is the value in 2008 when the value for Tournament is year? | CREATE TABLE table_name_77 (tournament VARCHAR) | SELECT 2008 FROM table_name_77 WHERE tournament = "year" |
What's the highest silver and 1 gold that the nation of djibouti received with a total less than 3? | CREATE TABLE table_name_25 (silver INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR) | SELECT MAX(silver) FROM table_name_25 WHERE gold = 1 AND nation = "djibouti" AND total < 3 |
Which 2011 has a 1999 of A, and a 2004 of 2r, and a Career SR of 0 / 10? | CREATE TABLE table_name_96 (career_sr VARCHAR) | SELECT 2011 FROM table_name_96 WHERE 1999 = "a" AND 2004 = "2r" AND career_sr = "0 / 10" |
Name the years as tallest when floors are larger than 18 | CREATE TABLE table_name_4 (years_as_tallest VARCHAR, floors INTEGER) | SELECT years_as_tallest FROM table_name_4 WHERE floors > 18 |
who are the candidates where the district is florida 8? | CREATE TABLE table_1341672_10 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1341672_10 WHERE district = "Florida 8" |
What is the episode when the original performaer is diana ross? | CREATE TABLE table_29547777_1 (episode VARCHAR, original_performer VARCHAR) | SELECT episode FROM table_29547777_1 WHERE original_performer = "Diana Ross" |
What round is player phil graham in? | CREATE TABLE table_name_8 (round VARCHAR, player VARCHAR) | SELECT round FROM table_name_8 WHERE player = "phil graham" |
What is the weight of the display that has an internal storage of 16-64 GB and uses a wi-fi, 3G wireless network? | CREATE TABLE table_name_33 (weight VARCHAR, internal_storage VARCHAR, wireless_network VARCHAR) | SELECT weight FROM table_name_33 WHERE internal_storage = "16-64 gb" AND wireless_network = "wi-fi, 3g" |
Name the score for march 29, 1997 | CREATE TABLE table_20745759_1 (score VARCHAR, date VARCHAR) | SELECT score FROM table_20745759_1 WHERE date = "March 29, 1997" |
What's the most against when the draws are more than 0? | CREATE TABLE table_name_43 (against INTEGER, draws INTEGER) | SELECT MAX(against) FROM table_name_43 WHERE draws > 0 |
Who placed t7 with a score of 70-71=141? | CREATE TABLE table_name_16 (player VARCHAR, place VARCHAR, score VARCHAR) | SELECT player FROM table_name_16 WHERE place = "t7" AND score = 70 - 71 = 141 |
What is the Company Name, when the Accreditation Level is Joyn Hot Fixes, and when the Accreditation Status is Approved (Awarded 17.05.13)? | CREATE TABLE table_name_13 (company_name VARCHAR, accreditation_level VARCHAR, accreditation_status VARCHAR) | SELECT company_name FROM table_name_13 WHERE accreditation_level = "joyn hot fixes" AND accreditation_status = "approved (awarded 17.05.13)" |
Which team had a season 1954-55? | CREATE TABLE table_name_80 (teams VARCHAR, season VARCHAR) | SELECT teams FROM table_name_80 WHERE season = "1954-55" |
What is the total number of Super Cup, when Title Playoff is "0", when Total is greater than 9, and when League is less than 11? | CREATE TABLE table_name_97 (super_cup VARCHAR, league VARCHAR, title_playoff VARCHAR, total VARCHAR) | SELECT COUNT(super_cup) FROM table_name_97 WHERE title_playoff = 0 AND total > 9 AND league < 11 |
Which event happened in 1988? | CREATE TABLE table_name_91 (name VARCHAR, year VARCHAR) | SELECT name FROM table_name_91 WHERE year = "1988" |
What is the title for year 1991 and a date of March 21? | CREATE TABLE table_name_87 (title VARCHAR, year VARCHAR, date VARCHAR) | SELECT title FROM table_name_87 WHERE year = 1991 AND date = "march 21" |
What was the margin of victory in the year when the honoree was Tommy Armour? | CREATE TABLE table_1515346_2 (margin_of_victory VARCHAR, honoree_s_ VARCHAR) | SELECT margin_of_victory FROM table_1515346_2 WHERE honoree_s_ = "Tommy Armour" |
What is the previous experience of the player from East Jordan, Michigan? | CREATE TABLE table_14342367_13 (previous_experience VARCHAR, hometown VARCHAR) | SELECT previous_experience FROM table_14342367_13 WHERE hometown = "East Jordan, Michigan" |
What was the score on October 29? | CREATE TABLE table_23308178_4 (score VARCHAR, date VARCHAR) | SELECT score FROM table_23308178_4 WHERE date = "October 29" |
Count the Money ( £ ) of south africa with a To par of +1, and a Player of ernie els? | CREATE TABLE table_name_50 (money___£__ VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR) | SELECT money___£__ FROM table_name_50 WHERE country = "south africa" AND to_par = "+1" AND player = "ernie els" |
Which player has rank 1? | CREATE TABLE table_name_24 (player VARCHAR, rank VARCHAR) | SELECT player FROM table_name_24 WHERE rank = 1 |
What were the Points in the game with a Score of 2–7? | CREATE TABLE table_name_67 (points INTEGER, score VARCHAR) | SELECT SUM(points) FROM table_name_67 WHERE score = "2–7" |
What's the least enrolled when the mascot was the Trojans? | CREATE TABLE table_name_8 (enrollment INTEGER, mascot VARCHAR) | SELECT MIN(enrollment) FROM table_name_8 WHERE mascot = "trojans" |
Which Score has a Tie no of 1? | CREATE TABLE table_name_22 (score VARCHAR, tie_no VARCHAR) | SELECT score FROM table_name_22 WHERE tie_no = "1" |
What is the district for the parish, Brough? | CREATE TABLE table_name_58 (district VARCHAR, name VARCHAR) | SELECT district FROM table_name_58 WHERE name = "brough" |
What is the number of laps with a Constructor of renault, and a driver of jacques villeneuve? | CREATE TABLE table_name_73 (laps VARCHAR, constructor VARCHAR, driver VARCHAR) | SELECT laps FROM table_name_73 WHERE constructor = "renault" AND driver = "jacques villeneuve" |
What is the Score with a Team that is @ portland? | CREATE TABLE table_name_1 (score VARCHAR, team VARCHAR) | SELECT score FROM table_name_1 WHERE team = "@ portland" |
What college or club team did Steve Jones play for? | CREATE TABLE table_name_48 (college_junior_club_team__league_ VARCHAR, player VARCHAR) | SELECT college_junior_club_team__league_ FROM table_name_48 WHERE player = "steve jones" |
Name the points for Engine of chevrolet 265c | CREATE TABLE table_name_99 (points VARCHAR, engine VARCHAR) | SELECT points FROM table_name_99 WHERE engine = "chevrolet 265c" |
what is the rank when the bronze is less than 0? | CREATE TABLE table_name_63 (rank VARCHAR, bronze INTEGER) | SELECT COUNT(rank) FROM table_name_63 WHERE bronze < 0 |
How many opponents fought on 1982-12-03? | CREATE TABLE table_12206918_2 (opponent VARCHAR, date VARCHAR) | SELECT COUNT(opponent) FROM table_12206918_2 WHERE date = "1982-12-03" |
What was the attendance at the Travers Stakes in 1977? | CREATE TABLE table_24089503_1 (travers_stakes VARCHAR, year VARCHAR) | SELECT travers_stakes FROM table_24089503_1 WHERE year = 1977 |
How many Car numbers have a Driver of erik darnell, and a Pos smaller than 2? | CREATE TABLE table_name_93 (car__number VARCHAR, driver VARCHAR, pos VARCHAR) | SELECT COUNT(car__number) FROM table_name_93 WHERE driver = "erik darnell" AND pos < 2 |
Who were the opponents during the 2006 fed cup europe/africa group ii against greece? | CREATE TABLE table_name_15 (opponents VARCHAR, edition VARCHAR, against VARCHAR) | SELECT opponents FROM table_name_15 WHERE edition = "2006 fed cup europe/africa group ii" AND against = "greece" |
What level has 11880 macroblocks and high 10 profile is 6000? | CREATE TABLE table_237036_2 (level VARCHAR, macroblocks_s VARCHAR, high_10_profile VARCHAR) | SELECT level FROM table_237036_2 WHERE macroblocks_s = 11880 AND high_10_profile = 6000 |
What was location and attendance for the game where the Celtics played San Antonio? | CREATE TABLE table_27722408_8 (location_attendance VARCHAR, team VARCHAR) | SELECT location_attendance FROM table_27722408_8 WHERE team = "San Antonio" |
Which winning team beat the New York Yankees? | CREATE TABLE table_10548224_1 (winning_team VARCHAR, losing_team VARCHAR) | SELECT winning_team FROM table_10548224_1 WHERE losing_team = "New York Yankees" |
What is the Elector with a Faction of roman, and an Elevated with 1244, may 28? | CREATE TABLE table_name_56 (elector VARCHAR, faction VARCHAR, elevated VARCHAR) | SELECT elector FROM table_name_56 WHERE faction = "roman" AND elevated = "1244, may 28" |
Which country has doosan infracore as then company name? | CREATE TABLE table_237199_1 (country VARCHAR, company_name VARCHAR) | SELECT country FROM table_237199_1 WHERE company_name = "Doosan Infracore" |
Decision of parent, and a Home of philadelphia, and a Record of 20–16–7 is on what date? | CREATE TABLE table_name_23 (date VARCHAR, record VARCHAR, decision VARCHAR, home VARCHAR) | SELECT date FROM table_name_23 WHERE decision = "parent" AND home = "philadelphia" AND record = "20–16–7" |
Name the largest ethnic group for kosančić | CREATE TABLE table_2562572_20 (largest_ethnic_group__2002_ VARCHAR, settlement VARCHAR) | SELECT largest_ethnic_group__2002_ FROM table_2562572_20 WHERE settlement = "Kosančić" |
How many new conferences are in the NCLL deep south conference? | CREATE TABLE table_26476336_2 (new_conference VARCHAR, new_classification VARCHAR) | SELECT COUNT(new_conference) FROM table_26476336_2 WHERE new_classification = "NCLL Deep South Conference" |
What is the latest episode number with the title of Jerusalem? | CREATE TABLE table_19517621_4 (episode__number INTEGER, title VARCHAR) | SELECT MAX(episode__number) FROM table_19517621_4 WHERE title = "Jerusalem" |
What is the 2nd leg that Team 1 is Union Berlin? | CREATE TABLE table_name_46 (team_1 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_46 WHERE team_1 = "union berlin" |
Which Date has a Result of w, and a Score of 3-0? | CREATE TABLE table_name_94 (date VARCHAR, result VARCHAR, score VARCHAR) | SELECT date FROM table_name_94 WHERE result = "w" AND score = "3-0" |
Who is the Spouse of the Duchess that has a Birth on 29 october 1451? | CREATE TABLE table_name_47 (spouse VARCHAR, birth VARCHAR) | SELECT spouse FROM table_name_47 WHERE birth = "29 october 1451" |
What is the sum of Wins when draws shows 0 in 1964? | CREATE TABLE table_name_46 (wins INTEGER, draws VARCHAR, season VARCHAR) | SELECT SUM(wins) FROM table_name_46 WHERE draws = 0 AND season = 1964 |
What is the listed crowd at junction oval? | CREATE TABLE table_name_54 (crowd VARCHAR, venue VARCHAR) | SELECT crowd FROM table_name_54 WHERE venue = "junction oval" |
How large was the crowd at the Kardinia Park venue games? | CREATE TABLE table_name_69 (crowd INTEGER, venue VARCHAR) | SELECT SUM(crowd) FROM table_name_69 WHERE venue = "kardinia park" |
What was the earliest season recorded for any team | CREATE TABLE table_1560673_1 (first_season INTEGER) | SELECT MIN(first_season) FROM table_1560673_1 |
Name the score for pacers visitor on 14 april 2008 | CREATE TABLE table_name_16 (score VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT score FROM table_name_16 WHERE visitor = "pacers" AND date = "14 april 2008" |
hat was Hawthorn's score as the away team? | CREATE TABLE table_name_83 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_83 WHERE away_team = "hawthorn" |
Show all directors. | CREATE TABLE film (directed_by VARCHAR) | SELECT DISTINCT directed_by FROM film |
How many FA Trophies had a total of 27, 2 FA cups, and a league larger than 24? | CREATE TABLE table_name_82 (fa_trophy INTEGER, league VARCHAR, total VARCHAR, fa_cup VARCHAR) | SELECT SUM(fa_trophy) FROM table_name_82 WHERE total = 27 AND fa_cup = 2 AND league > 24 |
What wss the average round drafted for xavier players? | CREATE TABLE table_name_5 (round INTEGER, school VARCHAR) | SELECT AVG(round) FROM table_name_5 WHERE school = "xavier" |
What is the result of the ajc craven plate (wfa) race? | CREATE TABLE table_name_88 (result VARCHAR, race VARCHAR) | SELECT result FROM table_name_88 WHERE race = "ajc craven plate (wfa)" |
Can you tell me the sum of Draws that has the Against larger than 1106, and the Wins larger than 13? | CREATE TABLE table_name_44 (draws INTEGER, against VARCHAR, wins VARCHAR) | SELECT SUM(draws) FROM table_name_44 WHERE against > 1106 AND wins > 13 |
Who is the composer on the tracks less than 4? | CREATE TABLE table_name_36 (composer VARCHAR, track INTEGER) | SELECT composer FROM table_name_36 WHERE track < 4 |
What is the number of the round in which Ron Hansen was drafted and the overall is greater than 332? | CREATE TABLE table_name_60 (round VARCHAR, name VARCHAR, overall VARCHAR) | SELECT COUNT(round) FROM table_name_60 WHERE name = "ron hansen" AND overall > 332 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.