answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT series FROM table_name_2 WHERE production_number = "95, br 1254" | Name the Series with Production Number of 95, br 1254? | CREATE TABLE table_name_2 (series VARCHAR, production_number VARCHAR) |
SELECT water_depth FROM table_name_11 WHERE entered_service = "2001" AND name = "cajun express" | What was the water depth that entered service in 2001 named Cajun Express? | CREATE TABLE table_name_11 (water_depth VARCHAR, entered_service VARCHAR, name VARCHAR) |
SELECT years FROM table_name_88 WHERE soap_opera = "marienhof" AND duration = "10 years" AND actor = "leonore capell" | What years did Marienhof run, which featured Leonore Capell and lasted 10 years? | CREATE TABLE table_name_88 (years VARCHAR, actor VARCHAR, soap_opera VARCHAR, duration VARCHAR) |
SELECT appointed_by FROM table_name_73 WHERE judge = "edward e. cushman" | Who appointed Judge Edward E. Cushman? | CREATE TABLE table_name_73 (appointed_by VARCHAR, judge VARCHAR) |
SELECT constructor FROM table_name_52 WHERE grid < 14 AND driver = "stefan johansson" | Who constructed stefan johansson's car with a grid under 14? | CREATE TABLE table_name_52 (constructor VARCHAR, grid VARCHAR, driver VARCHAR) |
SELECT 2 AS nd_leg FROM table_23812628_1 WHERE team__number1 = "Boca Juniors" | Name the 2nd leg for boca juniors | CREATE TABLE table_23812628_1 (team__number1 VARCHAR) |
SELECT AVG(lane) FROM table_name_83 WHERE time > 20.5 AND nationality = "trinidad and tobago" | Which Lane has a Time larger than 20.5, and a Nationality of trinidad and tobago? | CREATE TABLE table_name_83 (lane INTEGER, time VARCHAR, nationality VARCHAR) |
SELECT points FROM table_25318033_1 WHERE podiums = 0 AND position = "10th" | How many points were scored when the podiums is 0 and position is 10th? | CREATE TABLE table_25318033_1 (points VARCHAR, podiums VARCHAR, position VARCHAR) |
SELECT lost FROM table_name_15 WHERE goals_against = "5" | How many games were lost that had goals against of 5? | CREATE TABLE table_name_15 (lost VARCHAR, goals_against VARCHAR) |
SELECT municipality FROM table_name_94 WHERE rank = 44 | What Municipality has a Rank of 44? | CREATE TABLE table_name_94 (municipality VARCHAR, rank VARCHAR) |
SELECT model FROM table_name_20 WHERE builder__family_ = "zhuzhou" AND power_output__kw_ = "9600" | What model has a builder of zhuzhou, and a power output of 9600 (kw)? | CREATE TABLE table_name_20 (model VARCHAR, builder__family_ VARCHAR, power_output__kw_ VARCHAR) |
SELECT year_s__won FROM table_name_61 WHERE total > 148 AND to_par < 17 AND country = "new zealand" | Which Year(s) won has a Total larger than 148, and a To par smaller than 17, and a Country of new zealand? | CREATE TABLE table_name_61 (year_s__won VARCHAR, country VARCHAR, total VARCHAR, to_par VARCHAR) |
SELECT COUNT(season__number) FROM table_23279434_1 WHERE production_code = "AM10" | Which season used production code "am10"? | CREATE TABLE table_23279434_1 (season__number VARCHAR, production_code VARCHAR) |
SELECT COUNT(party) FROM table_1342393_17 WHERE incumbent = "Whitmell P. Martin" | how many party with incumbent being whitmell p. martin | CREATE TABLE table_1342393_17 (party VARCHAR, incumbent VARCHAR) |
SELECT tie_no FROM table_name_96 WHERE away_team = "bradford park avenue" | What was the tie number when bradford park avenue was the away team? | CREATE TABLE table_name_96 (tie_no VARCHAR, away_team VARCHAR) |
SELECT AVG(long) FROM table_name_51 WHERE gain < 16 AND loss < 6 | Which average Long has a Gain smaller than 16, and a Loss smaller than 6? | CREATE TABLE table_name_51 (long INTEGER, gain VARCHAR, loss VARCHAR) |
SELECT MIN(olympics_so_far) FROM table_name_80 WHERE sailors > 1 AND first_og > 1948 AND class = "flying dutchman" | What is the lowest value for Olympics, when Sailors is greater than 1, when First OG is after 1948, and when Class is "Flying Dutchman"? | CREATE TABLE table_name_80 (olympics_so_far INTEGER, class VARCHAR, sailors VARCHAR, first_og VARCHAR) |
SELECT _number___county FROM table_name_8 WHERE location = "fountain city" | What county is Fountain City? | CREATE TABLE table_name_8 (_number___county VARCHAR, location VARCHAR) |
SELECT score FROM table_name_35 WHERE opponents = "pkns fc" AND date = "january 8, 2006" | Which Score has Opponents of pkns fc, and a Date of january 8, 2006? | CREATE TABLE table_name_35 (score VARCHAR, opponents VARCHAR, date VARCHAR) |
SELECT artist_name FROM artist WHERE country = "UK" AND gender = "Male" | What are the names of artists who are Male and are from UK? | CREATE TABLE artist (artist_name VARCHAR, country VARCHAR, gender VARCHAR) |
SELECT AVG(year) FROM table_name_5 WHERE runner_up = "portugal" AND third_place = "italy" AND best_goalkeeper = "nuno hidalgo" | What year was the runner-up Portugal with Italy in third place, and the gold keeper Nuno Hidalgo? | CREATE TABLE table_name_5 (year INTEGER, best_goalkeeper VARCHAR, runner_up VARCHAR, third_place VARCHAR) |
SELECT to_par FROM table_name_33 WHERE score < 70 AND player = "matt kowal" | Which To Par has a Score smaller than 70, and a Player of matt kowal? | CREATE TABLE table_name_33 (to_par VARCHAR, score VARCHAR, player VARCHAR) |
SELECT venue FROM table_name_72 WHERE year < 2009 AND event = "3000 m" AND competition = "world youth championships" | Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships? | CREATE TABLE table_name_72 (venue VARCHAR, competition VARCHAR, year VARCHAR, event VARCHAR) |
SELECT original_title FROM table_name_78 WHERE year = 1983 AND country = "italy" | Which Original title has a Year of 1983, and a Country of italy? | CREATE TABLE table_name_78 (original_title VARCHAR, year VARCHAR, country VARCHAR) |
SELECT spectators FROM table_name_57 WHERE date = "11 november 2011" | Name the spectators for 11 november 2011 | CREATE TABLE table_name_57 (spectators VARCHAR, date VARCHAR) |
SELECT COUNT(location_of_the_church) FROM table_178381_1 WHERE year_built = "1957" AND church_name = "Askrova bedehuskapell" | On how many locations is there a church named Askrova Bedehuskapell, built in 1957? | CREATE TABLE table_178381_1 (location_of_the_church VARCHAR, year_built VARCHAR, church_name VARCHAR) |
SELECT home_team FROM table_name_40 WHERE away_team = "hull city" | What is the home team that played Hull City? | CREATE TABLE table_name_40 (home_team VARCHAR, away_team VARCHAR) |
SELECT score FROM table_name_19 WHERE opponent = "@ blue jays" AND date = "october 6" | Opponent of @ blue jays, and a Date of october 6 had what score? | CREATE TABLE table_name_19 (score VARCHAR, opponent VARCHAR, date VARCHAR) |
SELECT COUNT(first_elected) FROM table_2668173_4 WHERE result = "Lost re-election Anti-Masonic gain" | How many times did the incumbent was first elected and then lost re-election anti-masonic gain? | CREATE TABLE table_2668173_4 (first_elected VARCHAR, result VARCHAR) |
SELECT dates FROM table_name_6 WHERE rally_hq = "kingscliff" | Which dates have a Rally HQ of kingscliff? | CREATE TABLE table_name_6 (dates VARCHAR, rally_hq VARCHAR) |
SELECT opponent_in_final FROM table_name_55 WHERE surface = "carpet" | Who was the opponent on carpet in a final? | CREATE TABLE table_name_55 (opponent_in_final VARCHAR, surface VARCHAR) |
SELECT COUNT(*) FROM bank | How many bank branches are there? | CREATE TABLE bank (Id VARCHAR) |
SELECT MAX(attendance) FROM table_name_92 WHERE opponent = "buffalo bills" AND week > 14 | What is the highest number of people in attendance in the game against the Buffalo Bills in a week later than 14? | CREATE TABLE table_name_92 (attendance INTEGER, opponent VARCHAR, week VARCHAR) |
SELECT COUNT(attendance) FROM table_name_54 WHERE score = "7-3" AND loss = "worrell (0-1)" | How many people were in attendance when the Washington Nationals had a score of 7-3 and a loss of Worrell (0-1)? | CREATE TABLE table_name_54 (attendance VARCHAR, score VARCHAR, loss VARCHAR) |
SELECT name FROM table_21795986_1 WHERE withdrawn = "19/05/2002" | When 19/05/2002 is the date of withdrawn what is the name? | CREATE TABLE table_21795986_1 (name VARCHAR, withdrawn VARCHAR) |
SELECT location FROM table_name_43 WHERE date = "11/08/1975*" | What is the Location of the game on 11/08/1975*? | CREATE TABLE table_name_43 (location VARCHAR, date VARCHAR) |
SELECT chassis FROM table_name_69 WHERE entrant = "patrick racing" AND start > 6 | What chassis has patrick racing as an entrant, with a start greater than 6? | CREATE TABLE table_name_69 (chassis VARCHAR, entrant VARCHAR, start VARCHAR) |
SELECT AVG(attendance) FROM table_name_86 WHERE date = "september 26, 1971" | What was the Attendance on September 26, 1971? | CREATE TABLE table_name_86 (attendance INTEGER, date VARCHAR) |
SELECT rookie FROM table_name_59 WHERE week = 6 | Who was the rookie that played week 6? | CREATE TABLE table_name_59 (rookie VARCHAR, week VARCHAR) |
SELECT song FROM table_name_53 WHERE work_done = "guest vocals" AND year = 2006 AND artist_s_ = "cobra starship" | Which 2006 Cobra Starship song has work done of guest vocals? | CREATE TABLE table_name_53 (song VARCHAR, artist_s_ VARCHAR, work_done VARCHAR, year VARCHAR) |
SELECT total_points FROM table_name_98 WHERE assists = "7" | What was the total number of points when there were 7 assists? | CREATE TABLE table_name_98 (total_points VARCHAR, assists VARCHAR) |
SELECT location FROM table_22862203_2 WHERE record = "9-1" | Where were games played when the record was 9-1? | CREATE TABLE table_22862203_2 (location VARCHAR, record VARCHAR) |
SELECT MAX(game) FROM table_name_8 WHERE series = "flyers win 3–0" | Which Game has a Series of flyers win 3–0? Question 3 | CREATE TABLE table_name_8 (game INTEGER, series VARCHAR) |
SELECT score FROM table_name_36 WHERE leading_scorer = "devin brown (24)" | What score has devin brown (24) as the leading scorer? | CREATE TABLE table_name_36 (score VARCHAR, leading_scorer VARCHAR) |
SELECT pole_position FROM table_name_35 WHERE date = "8 september" | Name the pole position for 8 september | CREATE TABLE table_name_35 (pole_position VARCHAR, date VARCHAR) |
SELECT COUNT(year) FROM table_name_97 WHERE award = "american music awards" | What year has american music awards? | CREATE TABLE table_name_97 (year VARCHAR, award VARCHAR) |
SELECT class_a FROM table_14601528_2 WHERE class_aAAAA = Pearland | Name the class a for pearland | CREATE TABLE table_14601528_2 (class_a VARCHAR, class_aAAAA VARCHAR, Pearland VARCHAR) |
SELECT mark FROM table_name_88 WHERE lane < 5 AND react = 0.217 | What is Mark, when Lane is less than 5, and when React is 0.217? | CREATE TABLE table_name_88 (mark VARCHAR, lane VARCHAR, react VARCHAR) |
SELECT pick FROM table_name_8 WHERE nationality = "canada" AND player = "ian schultz" | What is the pick of player ian schultz from Canada? | CREATE TABLE table_name_8 (pick VARCHAR, nationality VARCHAR, player VARCHAR) |
SELECT MAX(overall) FROM table_name_89 WHERE player = "james davis" AND round > 5 | Name the most overall for james davis and round more than 5 | CREATE TABLE table_name_89 (overall INTEGER, player VARCHAR, round VARCHAR) |
SELECT attendance FROM table_name_63 WHERE tie_no = "5" | Which Attendance has a Tie number of 5? | CREATE TABLE table_name_63 (attendance VARCHAR, tie_no VARCHAR) |
SELECT opponent FROM table_name_77 WHERE attendance = "14,029" | What Opponent has the Attendance of 14,029? | CREATE TABLE table_name_77 (opponent VARCHAR, attendance VARCHAR) |
SELECT MAX(all_bills_sponsored) FROM table_18852984_2 | What is the greatest number of bills sponsored in any year? | CREATE TABLE table_18852984_2 (all_bills_sponsored INTEGER) |
SELECT directed_by FROM table_29897962_1 WHERE us_viewers__million_ = "3.55" | Who directed the episode that had 3.55 million viewers? | CREATE TABLE table_29897962_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR) |
SELECT points FROM table_name_23 WHERE season > 2011 AND series = "macau grand prix" | How many points did Costa score in the Macau Grand Prix since 2011? | CREATE TABLE table_name_23 (points VARCHAR, season VARCHAR, series VARCHAR) |
SELECT COUNT(*) FROM CHARACTERISTICS | How many characteristics are there? | CREATE TABLE CHARACTERISTICS (Id VARCHAR) |
SELECT season_no FROM table_21781578_2 WHERE production_code = "E2110" | What was the season number for production code E2110? | CREATE TABLE table_21781578_2 (season_no VARCHAR, production_code VARCHAR) |
SELECT MIN(match2) FROM table_24538140_2 | What is the lowest score of all games for match 2? | CREATE TABLE table_24538140_2 (match2 INTEGER) |
SELECT constellation FROM table_name_54 WHERE right_ascension___j2000__ = "18h17m41.1s" | Tell me the constellation which has a right ascension of 18h17m41.1s | CREATE TABLE table_name_54 (constellation VARCHAR, right_ascension___j2000__ VARCHAR) |
SELECT us_air_date FROM table_10470082_8 WHERE writer = "Jim Morris" | When did the episode written by Jim Morris air? | CREATE TABLE table_10470082_8 (us_air_date VARCHAR, writer VARCHAR) |
SELECT county FROM table_name_61 WHERE city = "changhua" | Which County has a City of changhua? | CREATE TABLE table_name_61 (county VARCHAR, city VARCHAR) |
SELECT size_difference FROM table_name_29 WHERE prefix = "exa" | What is the size difference for exa? | CREATE TABLE table_name_29 (size_difference VARCHAR, prefix VARCHAR) |
SELECT country FROM table_name_96 WHERE tournament = "indian wells masters" | For the Indian Wells Masters tournament, what was the country? | CREATE TABLE table_name_96 (country VARCHAR, tournament VARCHAR) |
SELECT link_abilities FROM table_11703336_1 WHERE predecessors = "TI-85" | What is the link abilities when the predecessors is ti-85? | CREATE TABLE table_11703336_1 (link_abilities VARCHAR, predecessors VARCHAR) |
SELECT score FROM table_name_68 WHERE outcome = "runner-up" AND opponent = "tim gullikson" | What is the Score of the of the Tournament against Tim Gullikson with Outcome of runner-up? | CREATE TABLE table_name_68 (score VARCHAR, outcome VARCHAR, opponent VARCHAR) |
SELECT district FROM table_1341604_26 WHERE incumbent = "Ike Skelton" | What district is incumbent ike skelton from? | CREATE TABLE table_1341604_26 (district VARCHAR, incumbent VARCHAR) |
SELECT player FROM table_name_90 WHERE nationality = "turkey" AND height < 183 AND shirt_no < 19 AND birth_date = "june 27, 1993 (age20)" | What player that has a Nationality of Turkey, a Height smaller than 183, a shirt no smaller than 19, and a birth date of June 27, 1993 (age20)? | CREATE TABLE table_name_90 (player VARCHAR, birth_date VARCHAR, shirt_no VARCHAR, nationality VARCHAR, height VARCHAR) |
SELECT COUNT(rape__art_190_stgb_) FROM table_name_27 WHERE embezzlement__art_138_stgb_ = 820 AND total_convictions < 94 OFFSET 574 | What is the total number of Rapes that have Embezzlements a figure of 820 and total number of convictions less than 94,574? | CREATE TABLE table_name_27 (rape__art_190_stgb_ VARCHAR, embezzlement__art_138_stgb_ VARCHAR, total_convictions VARCHAR) |
SELECT company FROM table_name_28 WHERE country = "greece" AND author = "aeschylus" | what is the company when the country is greece and the author is aeschylus? | CREATE TABLE table_name_28 (company VARCHAR, country VARCHAR, author VARCHAR) |
SELECT odds_of_winning__1in_ FROM table_20195922_3 WHERE divisions = "6th" | How many odd of winning have 6th as the division? | CREATE TABLE table_20195922_3 (odds_of_winning__1in_ VARCHAR, divisions VARCHAR) |
SELECT position FROM table_name_10 WHERE height = 2.09 | Name the position with height of 2.09 | CREATE TABLE table_name_10 (position VARCHAR, height VARCHAR) |
SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' ORDER BY salary DESC | display all the information for all employees who have the letters D or S in their first name and also arrange the result in descending order by salary. | CREATE TABLE employees (salary VARCHAR, first_name VARCHAR) |
SELECT fastest_lap FROM table_name_68 WHERE round = "5" AND winning_driver = "james winslow" | What is Fastest Lap, when Round is 5, and when Winning Driver is James Winslow? | CREATE TABLE table_name_68 (fastest_lap VARCHAR, round VARCHAR, winning_driver VARCHAR) |
SELECT ihsaa_football_class FROM table_name_50 WHERE location = "wabash" AND school = "wabash" | Which IHSAA Football Class has a Location of wabash, and a School of wabash? | CREATE TABLE table_name_50 (ihsaa_football_class VARCHAR, location VARCHAR, school VARCHAR) |
SELECT high_points FROM table_27744844_5 WHERE date = "November 6" | Which player scored the most points and how many were scored on November 6? | CREATE TABLE table_27744844_5 (high_points VARCHAR, date VARCHAR) |
SELECT COUNT(year) FROM table_name_77 WHERE nominated_work = "general" AND category = "choice breakthrough artist" | what year has general nominated in the category or choice breakthrough artist? | CREATE TABLE table_name_77 (year VARCHAR, nominated_work VARCHAR, category VARCHAR) |
SELECT CLASS FROM race GROUP BY CLASS ORDER BY COUNT(*) DESC LIMIT 1 | What is the race class with most number of races. | CREATE TABLE race (CLASS VARCHAR) |
SELECT laps FROM table_name_56 WHERE driver = "ronnie peterson" | What number of laps were done by driver Ronnie Peterson? | CREATE TABLE table_name_56 (laps VARCHAR, driver VARCHAR) |
SELECT british FROM table_name_55 WHERE letter = "o /oʊ/" | What is the British letter with o /oʊ/? | CREATE TABLE table_name_55 (british VARCHAR, letter VARCHAR) |
SELECT MAX(total) FROM table_name_15 WHERE tournament > 0 AND regular_season > 8 | Name the highest total for the tournament more than 0 and regular season after 8 | CREATE TABLE table_name_15 (total INTEGER, tournament VARCHAR, regular_season VARCHAR) |
SELECT SUM(sacks) FROM table_name_59 WHERE year = "2006" AND solo < 62 | How many sacks have 2006 as the year, and a solo less than 62? | CREATE TABLE table_name_59 (sacks INTEGER, year VARCHAR, solo VARCHAR) |
SELECT MIN(length__in_m_) FROM table_206361_2 WHERE average_climb___percentage_ = 59 | What is the minimum length of the locations where the average climb percentage is exactly 59%? | CREATE TABLE table_206361_2 (length__in_m_ INTEGER, average_climb___percentage_ VARCHAR) |
SELECT music_director FROM table_name_86 WHERE year > 2003 | Name a music director, belonging to a year after 2003? | CREATE TABLE table_name_86 (music_director VARCHAR, year INTEGER) |
SELECT team FROM table_name_31 WHERE game = "capital bowl iv" | What teams played in Capital Bowl IV? | CREATE TABLE table_name_31 (team VARCHAR, game VARCHAR) |
SELECT MAX(division) FROM table_1046454_1 | what is the maximum division | CREATE TABLE table_1046454_1 (division INTEGER) |
SELECT COUNT(*) FROM member WHERE Membership_card = 'Black' | How many members have the black membership card? | CREATE TABLE member (Membership_card VARCHAR) |
SELECT competition FROM table_name_32 WHERE date = "november 17, 2003" | What competition listed is dated November 17, 2003? | CREATE TABLE table_name_32 (competition VARCHAR, date VARCHAR) |
SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid | Find the first name and age of students who have a pet. | CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR) |
SELECT MAX(crowd) FROM table_name_39 WHERE venue = "arden street oval" | Tell me the most crowd for arden street oval venue | CREATE TABLE table_name_39 (crowd INTEGER, venue VARCHAR) |
SELECT COUNT(year) FROM table_name_51 WHERE chassis = "coloni c3" | How many years was the chassis a Coloni C3? | CREATE TABLE table_name_51 (year VARCHAR, chassis VARCHAR) |
SELECT assists FROM table_name_36 WHERE total_points = "2" | How many assists were there when the total points was 2? | CREATE TABLE table_name_36 (assists VARCHAR, total_points VARCHAR) |
SELECT magazine_type FROM table_name_94 WHERE magazine_run = "march 3, 2009–february 5, 2010" | What is the magazine type that ran from March 3, 2009–February 5, 2010? | CREATE TABLE table_name_94 (magazine_type VARCHAR, magazine_run VARCHAR) |
SELECT constructor FROM table_name_37 WHERE chassis = "fw20" | Who was the constructor for a FW20 chassis? | CREATE TABLE table_name_37 (constructor VARCHAR, chassis VARCHAR) |
SELECT location FROM table_name_74 WHERE tournament = "security pacific senior classic" | Where was the security pacific senior classic? | CREATE TABLE table_name_74 (location VARCHAR, tournament VARCHAR) |
SELECT record FROM table_17765888_1 WHERE date = "November 26, 1961" | What is the record for November 26, 1961? | CREATE TABLE table_17765888_1 (record VARCHAR, date VARCHAR) |
SELECT SUM(year) FROM table_name_61 WHERE theme = "timber trade" | What year was the timber trade? | CREATE TABLE table_name_61 (year INTEGER, theme VARCHAR) |
SELECT location FROM table_name_23 WHERE name = "pine valley" | Where is pine valley? | CREATE TABLE table_name_23 (location VARCHAR, name VARCHAR) |
SELECT team FROM table_name_61 WHERE score = "l 87–115 (ot)" | Which team scored l 87–115 (ot)? | CREATE TABLE table_name_61 (team VARCHAR, score VARCHAR) |
SELECT AVG(bronze) FROM table_name_18 WHERE nation = "united kingdom" AND silver < 0 | How many bronze medals for the United Kingdom when the silver was less than 0? | CREATE TABLE table_name_18 (bronze INTEGER, nation VARCHAR, silver VARCHAR) |
SELECT date FROM table_name_97 WHERE location = "gillette stadium" AND result = "40-21" | What was the date of the game played at Gillette Stadium with a score of 40-21? | CREATE TABLE table_name_97 (date VARCHAR, location VARCHAR, result VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.