answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT SUM(year_of_recording) FROM table_name_14 WHERE conductor = "libor pesek" | What is the year that a record was recorded with Libor Pesek as conductor? | CREATE TABLE table_name_14 (year_of_recording INTEGER, conductor VARCHAR) |
SELECT order_sung FROM table_name_43 WHERE artist = "richard marx" | What order was the performance of a Richard Marx song? | CREATE TABLE table_name_43 (order_sung VARCHAR, artist VARCHAR) |
SELECT COUNT(losses) FROM table_name_54 WHERE goals_for < 73 AND wins < 11 AND points > 24 AND position > 15 | What is the total number of losses with less than 73 goals for, less than 11 wins, more than 24 points, and a position greater than 15? | CREATE TABLE table_name_54 (losses VARCHAR, position VARCHAR, points VARCHAR, goals_for VARCHAR, wins VARCHAR) |
SELECT COUNT(validation) FROM table_15905399_1 WHERE iin_ranges = "36" | How many validations are listed for the iin range 36? | CREATE TABLE table_15905399_1 (validation VARCHAR, iin_ranges VARCHAR) |
SELECT district FROM table_1342315_12 WHERE party = "Republican" | Which district has a Republican elected? | CREATE TABLE table_1342315_12 (district VARCHAR, party VARCHAR) |
SELECT 2000 FROM table_name_18 WHERE category = "sub 1 litre" | What car was awarded sub 1 litre in 2000? | CREATE TABLE table_name_18 (category VARCHAR) |
SELECT player FROM table_name_33 WHERE country = "united states" AND total = 297 | What player from the United States had a total of 297? | CREATE TABLE table_name_33 (player VARCHAR, country VARCHAR, total VARCHAR) |
SELECT rowers FROM table_name_31 WHERE time = "6:39.49" | Who are the Rowers with a Time of 6:39.49? | CREATE TABLE table_name_31 (rowers VARCHAR, time VARCHAR) |
SELECT MIN(top_10) FROM table_1875157_1 | What is the lowest number of top 10 finishes | CREATE TABLE table_1875157_1 (top_10 INTEGER) |
SELECT attendance FROM table_name_71 WHERE visitor = "washington wizards" | Name the attendance for when the washington wizards was visiting | CREATE TABLE table_name_71 (attendance VARCHAR, visitor VARCHAR) |
SELECT COUNT(game) FROM table_name_59 WHERE score = "l 90–104 (ot)" | What is the game number when the score was l 90–104 (ot)? | CREATE TABLE table_name_59 (game VARCHAR, score VARCHAR) |
SELECT MAX(long) FROM table_name_91 WHERE car = 59 | Who has the highest Long with 59 Car? | CREATE TABLE table_name_91 (long INTEGER, car VARCHAR) |
SELECT T1.template_id, T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY COUNT(*) DESC LIMIT 1 | What is the id and type code for the template used by the most documents? | CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (Template_Type_Code VARCHAR, template_id VARCHAR) |
SELECT region FROM table_name_97 WHERE altitude__metres_ = 6854 | Say the region for 6854 altitudes | CREATE TABLE table_name_97 (region VARCHAR, altitude__metres_ VARCHAR) |
SELECT 2011 FROM table_name_92 WHERE 2012 = "a" AND 2010 = "1r" AND 2008 = "2r" | Name the 2011 for 2012 of a and 2010 of 1r with 2008 of 2r | CREATE TABLE table_name_92 (Id VARCHAR) |
SELECT COUNT(country) FROM table_2764267_2 WHERE currency = "US dollar" | Name the number of countries that have the us dollar | CREATE TABLE table_2764267_2 (country VARCHAR, currency VARCHAR) |
SELECT COUNT(top_25) FROM table_name_16 WHERE top_10 = 0 AND tournament = "masters tournament" AND top_5 > 0 | What is the total number of top-25 in the Masters Tournament, which has 0 top-10 and more than 0 top-5? | CREATE TABLE table_name_16 (top_25 VARCHAR, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR) |
SELECT extra FROM table_name_87 WHERE year > 2009 | What extra is from after 2009? | CREATE TABLE table_name_87 (extra VARCHAR, year INTEGER) |
SELECT MAX(laps) FROM table_name_63 WHERE grid > 6 AND constructor = "renault" AND time_retired = "ignition" | When renault is the constructor, the grid is over 6, and the time was labeled ignition, what's the largest amount of laps on record? | CREATE TABLE table_name_63 (laps INTEGER, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR) |
SELECT new_entries_this_round FROM table_18328569_1 WHERE winners_from_previous_round = "32" | How many new entries started in the round where winners from the previous round is 32? | CREATE TABLE table_18328569_1 (new_entries_this_round VARCHAR, winners_from_previous_round VARCHAR) |
SELECT president FROM table_name_22 WHERE location = "justus lipsius building, brussels" AND type = "scheduled" AND year > 2011 AND date = "18–19 october" | What is the President with a Location of justus lipsius building, brussels, and a Type with scheduled, and a Year larger than 2011, and a Date with 18–19 october? | CREATE TABLE table_name_22 (president VARCHAR, date VARCHAR, year VARCHAR, location VARCHAR, type VARCHAR) |
SELECT melbourne FROM table_name_1 WHERE gold_coast = "no" AND perth = "no" AND auckland = "no" AND sydney = "no" | What is the result for Melbourne when Gold Coast, Perth, Auckland, and Sydney are no? | CREATE TABLE table_name_1 (melbourne VARCHAR, sydney VARCHAR, auckland VARCHAR, gold_coast VARCHAR, perth VARCHAR) |
SELECT player FROM table_name_36 WHERE gender = "male" AND original_season = "rw: key west" | Who's the player that's male and on the original season of RW: Key West? | CREATE TABLE table_name_36 (player VARCHAR, gender VARCHAR, original_season VARCHAR) |
SELECT position FROM table_2169966_2 WHERE avg_start = "16.8" | What position did he finish in the year his average start was 16.8? | CREATE TABLE table_2169966_2 (position VARCHAR, avg_start VARCHAR) |
SELECT regular_season FROM table_name_87 WHERE playoffs = "0 mls cups" | Which regular season had the playoffs of 0 mls cups? | CREATE TABLE table_name_87 (regular_season VARCHAR, playoffs VARCHAR) |
SELECT AVG(population__2004_) FROM table_name_38 WHERE moroccan_population > 234506 | Which Population (2004) has a Moroccan population larger than 234506? | CREATE TABLE table_name_38 (population__2004_ INTEGER, moroccan_population INTEGER) |
SELECT opponent FROM table_name_1 WHERE date = "february 12" | which opponent is from February 12? | CREATE TABLE table_name_1 (opponent VARCHAR, date VARCHAR) |
SELECT COUNT(written_by) FROM table_20704243_3 WHERE directed_by = "Peter Winther" | How many were written by Peter Winther? | CREATE TABLE table_20704243_3 (written_by VARCHAR, directed_by VARCHAR) |
SELECT MAX(wins) FROM table_name_90 WHERE avg_finish = 35 AND year = 1990 AND starts < 1 | in 1990, how many wins had an avg finish of 35 and a start less than 1? | CREATE TABLE table_name_90 (wins INTEGER, starts VARCHAR, avg_finish VARCHAR, year VARCHAR) |
SELECT MAX(league) FROM table_name_7 WHERE title_playoff > 0 | What is the highest League, when Title Playoff is greater than 0? | CREATE TABLE table_name_7 (league INTEGER, title_playoff INTEGER) |
SELECT record FROM table_17288845_8 WHERE location_attendance = "Verizon Center 20,173" | Name the record for verizon center 20,173 | CREATE TABLE table_17288845_8 (record VARCHAR, location_attendance VARCHAR) |
SELECT opponent FROM table_name_17 WHERE date = "april 14" | Which opponent was present on April 14? | CREATE TABLE table_name_17 (opponent VARCHAR, date VARCHAR) |
SELECT MIN(year_made) FROM table_name_86 WHERE wheel_arrangement = "0-4-2t" | Which of the lowest years had a Wheel arrangement that was 0-4-2t? | CREATE TABLE table_name_86 (year_made INTEGER, wheel_arrangement VARCHAR) |
SELECT COUNT(solo) FROM table_18064020_21 WHERE name = "Jake Flaherty" | How many players named jake flaherty? | CREATE TABLE table_18064020_21 (solo VARCHAR, name VARCHAR) |
SELECT content FROM table_name_20 WHERE television_service = "la sorgente sat 3" | What is the content for la sorgente sat 3? | CREATE TABLE table_name_20 (content VARCHAR, television_service VARCHAR) |
SELECT date FROM table_name_52 WHERE attendance = "69,024" | What date was the game that was attended by 69,024? | CREATE TABLE table_name_52 (date VARCHAR, attendance VARCHAR) |
SELECT player FROM table_name_75 WHERE hometown = "wichita, ks" | What Player comes from the Hometown of Wichita, KS? | CREATE TABLE table_name_75 (player VARCHAR, hometown VARCHAR) |
SELECT conference FROM table_name_29 WHERE awards = "vancouver grizzlies" | Where the Vancouver Grizzlies is the awards, what is the conference? | CREATE TABLE table_name_29 (conference VARCHAR, awards VARCHAR) |
SELECT place FROM table_name_77 WHERE to_par = "+4" AND score = 74 - 70 - 74 - 74 = 292 | What place has a To par of +4 and a score of 74-70-74-74=292? | CREATE TABLE table_name_77 (place VARCHAR, to_par VARCHAR, score VARCHAR) |
SELECT current_map FROM table_name_25 WHERE namesake = "derain crater" | What is the current map designation of the feature for which derain crater was the namesake? | CREATE TABLE table_name_25 (current_map VARCHAR, namesake VARCHAR) |
SELECT COUNT(train_no) FROM table_27011761_2 WHERE arrival = "11:00" | How many trains arrive at 11:00? | CREATE TABLE table_27011761_2 (train_no VARCHAR, arrival VARCHAR) |
SELECT MIN(goals¹) FROM table_24565004_20 WHERE nationality² = "Algeria" | Name the most goals for algeria | CREATE TABLE table_24565004_20 (goals¹ INTEGER, nationality² VARCHAR) |
SELECT away FROM table_name_89 WHERE date = "14 september 2008" AND attendance > 1881 | Which Away has a Date of 14 september 2008, and an Attendance larger than 1881? | CREATE TABLE table_name_89 (away VARCHAR, date VARCHAR, attendance VARCHAR) |
SELECT horizontal_bar FROM table_name_60 WHERE pommel_horse = "15.250" | What horizontal bar score also has a pommel horse score of 15.250? | CREATE TABLE table_name_60 (horizontal_bar VARCHAR, pommel_horse VARCHAR) |
SELECT runner_s__up FROM table_name_89 WHERE date = "jan 19, 1964" | Who was the runner-up on Jan 19, 1964? | CREATE TABLE table_name_89 (runner_s__up VARCHAR, date VARCHAR) |
SELECT time_retired FROM table_name_4 WHERE grid = 6 | What is the Time/Retired for Grid 6? | CREATE TABLE table_name_4 (time_retired VARCHAR, grid VARCHAR) |
SELECT SUM(week) FROM table_name_7 WHERE attendance < 26 OFFSET 048 | How many weeks have an attendance less than 26,048? | CREATE TABLE table_name_7 (week INTEGER, attendance INTEGER) |
SELECT winning_score FROM table_1507806_1 WHERE year = 1922 | WHAT WAS THE WINNING SCORE IN YEAR 1922? | CREATE TABLE table_1507806_1 (winning_score VARCHAR, year VARCHAR) |
SELECT third_place FROM table_name_59 WHERE winning_mentor = "guy sebastian" AND runner_up = "andrew wishart" | Who was in third place when Guy Sebastian was the winning mentor and Andrew Wishart was the runner-up? | CREATE TABLE table_name_59 (third_place VARCHAR, winning_mentor VARCHAR, runner_up VARCHAR) |
SELECT SUM(pick) FROM table_name_19 WHERE player = "mickey johnson" AND round < 4 | What is the pick for Mickey Johnson with fewer than 4 rounds? | CREATE TABLE table_name_19 (pick INTEGER, player VARCHAR, round VARCHAR) |
SELECT COUNT(style) FROM table_28677723_9 WHERE total = 33 | How many styles had a total score of exactly 33? | CREATE TABLE table_28677723_9 (style VARCHAR, total VARCHAR) |
SELECT athlete FROM table_name_47 WHERE run_1 < 54.13 AND run_3 = 55.21 | Who is the athlete with a run 1 less than 54.13 and a 55.21 run 3? | CREATE TABLE table_name_47 (athlete VARCHAR, run_1 VARCHAR, run_3 VARCHAR) |
SELECT opponent FROM table_name_20 WHERE result = "loss" AND score = "24-28" | Who loss the 24-28 game? | CREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR, score VARCHAR) |
SELECT COUNT(high_points) FROM table_27698941_2 WHERE date = "October 5" | How many people led in points during the game on October 5? | CREATE TABLE table_27698941_2 (high_points VARCHAR, date VARCHAR) |
SELECT classroom, COUNT(*) FROM list WHERE grade = "0" GROUP BY classroom | For each grade 0 classroom, report the total number of students. | CREATE TABLE list (classroom VARCHAR, grade VARCHAR) |
SELECT round FROM table_23449363_1 WHERE new_entries_this_round = "24" | Which round had 24 new entries? | CREATE TABLE table_23449363_1 (round VARCHAR, new_entries_this_round VARCHAR) |
SELECT callsign FROM table_27914076_1 WHERE coverage = "Davao Mindanao Region" | Name the callsign for davao mindanao region | CREATE TABLE table_27914076_1 (callsign VARCHAR, coverage VARCHAR) |
SELECT style FROM table_name_12 WHERE results = "safe" AND choreographer = "nacho pop" | What is the Style of the dance Choreographed by Nacho Pop with result of safe? | CREATE TABLE table_name_12 (style VARCHAR, results VARCHAR, choreographer VARCHAR) |
SELECT MIN(highest_position) FROM table_13805432_2 WHERE artist = "Paul Evans" | what is the minimum highest position with artbeingt being paul evans | CREATE TABLE table_13805432_2 (highest_position INTEGER, artist VARCHAR) |
SELECT trade_name, COUNT(*) FROM medicine GROUP BY trade_name | find the number of medicines offered by each trade. | CREATE TABLE medicine (trade_name VARCHAR) |
SELECT score FROM table_name_85 WHERE year = 1990 | what was the score in 1990 | CREATE TABLE table_name_85 (score VARCHAR, year VARCHAR) |
SELECT fastest_lap FROM table_name_45 WHERE race_winner = "joan lascorz" | Who had the fastest lap where Joan Lascorz was the winner? | CREATE TABLE table_name_45 (fastest_lap VARCHAR, race_winner VARCHAR) |
SELECT record FROM table_name_40 WHERE opponent = "evangelista cyborg" | What is the Record when Evangelista Cyborg was the opponent? | CREATE TABLE table_name_40 (record VARCHAR, opponent VARCHAR) |
SELECT class FROM table_1745843_6 WHERE part_1 = "lesan" | What's the class of the verb whose part 1 is lesan? | CREATE TABLE table_1745843_6 (class VARCHAR, part_1 VARCHAR) |
SELECT event FROM table_name_13 WHERE time = "0:49" | What event has a 0:49 time? | CREATE TABLE table_name_13 (event VARCHAR, time VARCHAR) |
SELECT name FROM member WHERE NOT member_id IN (SELECT member_id FROM membership_register_branch) | Show member names without any registered branch. | CREATE TABLE member (name VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (name VARCHAR, member_id VARCHAR) |
SELECT position FROM table_name_29 WHERE nfl_club = "pittsburgh steelers" | What is the position of the pittsburgh steelers? | CREATE TABLE table_name_29 (position VARCHAR, nfl_club VARCHAR) |
SELECT score FROM table_name_85 WHERE third_place = "henri leconte" AND runner_up = "michael stich" | Name the score for henri leconte and runner-up of michael stich | CREATE TABLE table_name_85 (score VARCHAR, third_place VARCHAR, runner_up VARCHAR) |
SELECT collegiate_institution FROM table_name_56 WHERE status = "active" AND charter_date = "march 30, 2002" | What collegiate institution has an active status and a charter date of march 30, 2002? | CREATE TABLE table_name_56 (collegiate_institution VARCHAR, status VARCHAR, charter_date VARCHAR) |
SELECT head_linesman FROM table_name_66 WHERE game = "xxxv" | Who is the head linesman at game xxxv? | CREATE TABLE table_name_66 (head_linesman VARCHAR, game VARCHAR) |
SELECT democratic_ticket FROM table_name_70 WHERE office = "attorney general" | Who was on the Democratic ticket for the Office of Attorney General? | CREATE TABLE table_name_70 (democratic_ticket VARCHAR, office VARCHAR) |
SELECT date FROM table_name_56 WHERE city = "salford" | What day did they play in salford? | CREATE TABLE table_name_56 (date VARCHAR, city VARCHAR) |
SELECT team FROM table_name_33 WHERE lost = 10 | Which team has 10 losses? | CREATE TABLE table_name_33 (team VARCHAR, lost VARCHAR) |
SELECT host FROM table_name_74 WHERE country = "horrid henry" | What was the host of Horrid Henry? | CREATE TABLE table_name_74 (host VARCHAR, country VARCHAR) |
SELECT COUNT(game) FROM table_17323042_9 WHERE date = "March 15" | How many games were played on March 15? | CREATE TABLE table_17323042_9 (game VARCHAR, date VARCHAR) |
SELECT no_in_season FROM table_15185133_1 WHERE written_by = "John O'Bryan" AND directed_by = "Ethan Spaulding" | What season has an episode written by john o'bryan and directed by ethan spaulding? | CREATE TABLE table_15185133_1 (no_in_season VARCHAR, written_by VARCHAR, directed_by VARCHAR) |
SELECT arranger_s_ FROM table_28715942_2 WHERE vocal_percussionist_s_ = "Tom Lyle" | Who arranged song(s) with tom lyle on the vocal percussion? | CREATE TABLE table_28715942_2 (arranger_s_ VARCHAR, vocal_percussionist_s_ VARCHAR) |
SELECT tournament FROM table_name_88 WHERE date = "12 november 2006" | What tournament happened on 12 november 2006? | CREATE TABLE table_name_88 (tournament VARCHAR, date VARCHAR) |
SELECT away_team FROM table_name_51 WHERE tie_no = "replay" AND attendance = "24 november 1998" AND home_team = "rotherham united" | Which Away team has a Tie # of replay, and an Attendance of 24 november 1998, and a Home team of rotherham united? | CREATE TABLE table_name_51 (away_team VARCHAR, home_team VARCHAR, tie_no VARCHAR, attendance VARCHAR) |
SELECT entrant FROM table_name_73 WHERE year > 1980 AND pts = 8 AND chassis = "theodore ty02" | Who had 8 points, later than 1980, and a theodore ty02 chassis? | CREATE TABLE table_name_73 (entrant VARCHAR, chassis VARCHAR, year VARCHAR, pts VARCHAR) |
SELECT AVG(attendance_g) FROM table_name_48 WHERE tms > 18 | What was Attendance/G with Tms more than 18? | CREATE TABLE table_name_48 (attendance_g INTEGER, tms INTEGER) |
SELECT vessel_type FROM table_26168687_5 WHERE vessel_operator = "Beluga Shipping" | Name the vessel type for beluga shipping | CREATE TABLE table_26168687_5 (vessel_type VARCHAR, vessel_operator VARCHAR) |
SELECT guest_host FROM table_name_10 WHERE episode_number = 7 | What kind of Guest Host has a Episode Number of 7? | CREATE TABLE table_name_10 (guest_host VARCHAR, episode_number VARCHAR) |
SELECT written_by FROM table_name_42 WHERE original_airdate = "march 1, 1998" | Who wrote the episode that originally aired on March 1, 1998? | CREATE TABLE table_name_42 (written_by VARCHAR, original_airdate VARCHAR) |
SELECT score FROM table_name_33 WHERE player = "craig stadler" | Name the Score of craig stadler? | CREATE TABLE table_name_33 (score VARCHAR, player VARCHAR) |
SELECT date FROM table_23274514_8 WHERE location_attendance = "TD Garden 18,624" | On what date was the attendance at TD Garden 18,624? | CREATE TABLE table_23274514_8 (date VARCHAR, location_attendance VARCHAR) |
SELECT novelty FROM table_name_14 WHERE name = "tylocephale" | What is the novelty of Tylocephale? | CREATE TABLE table_name_14 (novelty VARCHAR, name VARCHAR) |
SELECT team_1 FROM table_name_64 WHERE round = "3" | Name the team 1 for round 3 | CREATE TABLE table_name_64 (team_1 VARCHAR, round VARCHAR) |
SELECT team__number2 FROM table_23812628_1 WHERE team__number1 = "River Plate" | Name the team #2 for river plate | CREATE TABLE table_23812628_1 (team__number2 VARCHAR, team__number1 VARCHAR) |
SELECT Name FROM ARTIST WHERE Name LIKE "%a%" | Find the names of all artists that have "a" in their names. | CREATE TABLE ARTIST (Name VARCHAR) |
SELECT MAX(terps_points) FROM table_22862203_2 WHERE opp_points = 53 | What is the highest number of terps points in games where the opponent made 53 points? | CREATE TABLE table_22862203_2 (terps_points INTEGER, opp_points VARCHAR) |
SELECT position FROM table_17246160_1 WHERE team = "Josef Kaufmann Racing" | What was the position for the Josef Kaufmann Racing team? | CREATE TABLE table_17246160_1 (position VARCHAR, team VARCHAR) |
SELECT home FROM table_name_82 WHERE date = "january 11" | Which Home is on january 11? | CREATE TABLE table_name_82 (home VARCHAR, date VARCHAR) |
SELECT venue FROM table_name_55 WHERE away_team = "collingwood" | Where does Collingwood play their games? | CREATE TABLE table_name_55 (venue VARCHAR, away_team VARCHAR) |
SELECT title FROM table_10715317_2 WHERE directed_by = "Peter Markle" AND written_by = "Jerry Stahl" | What is the title of the episode directed by Peter Markle and written by Jerry Stahl? | CREATE TABLE table_10715317_2 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR) |
SELECT destination FROM table_name_87 WHERE train_name = "garib nwaz exp" | What is the destination of the Garib nwaz exp train? | CREATE TABLE table_name_87 (destination VARCHAR, train_name VARCHAR) |
SELECT AVG(played) FROM table_name_55 WHERE team = "cerro corá" AND losses > 4 | Which Played has a Team of cerro corá, and Losses larger than 4? | CREATE TABLE table_name_55 (played INTEGER, team VARCHAR, losses VARCHAR) |
SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1 | Please show the most common age of editors. | CREATE TABLE editor (Age VARCHAR) |
SELECT DISTINCT name FROM nurse ORDER BY name | List the names of all distinct nurses ordered by alphabetical order? | CREATE TABLE nurse (name VARCHAR) |
SELECT T2.Name, T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID | Show the names of trains and locations of railways they are in. | CREATE TABLE railway (Location VARCHAR, Railway_ID VARCHAR); CREATE TABLE train (Name VARCHAR, Railway_ID VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.