answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT stage FROM table_name_5 WHERE mountains_classification = "mariano piccoli" AND winner = "giuseppe citterio" | Which stage has a mountains classification of Mariano Piccoli and was won by Giuseppe Citterio? | CREATE TABLE table_name_5 (stage VARCHAR, mountains_classification VARCHAR, winner VARCHAR) |
SELECT SUM(total) FROM table_name_45 WHERE league_cup < 1 AND fa_cup < 1 | What is the total when the league cup is less than 1, and the fa cup is less than 1? | CREATE TABLE table_name_45 (total INTEGER, league_cup VARCHAR, fa_cup VARCHAR) |
SELECT surface FROM table_2151643_3 WHERE year = 1983 | What was the surface for events held in 1983? | CREATE TABLE table_2151643_3 (surface VARCHAR, year VARCHAR) |
SELECT SUM(evening_gown) FROM table_name_53 WHERE average = 9.06 AND swimsuit < 8.76 | Tell me the sum of evening gown for average of 9.06 and swimsuit less than 8.76 | CREATE TABLE table_name_53 (evening_gown INTEGER, average VARCHAR, swimsuit VARCHAR) |
SELECT province_of_1936 FROM table_221375_1 WHERE district = "Viana do Castelo" | Name province of 1936 viana do castelo | CREATE TABLE table_221375_1 (province_of_1936 VARCHAR, district VARCHAR) |
SELECT MAX(position) FROM table_name_24 WHERE against = 12 AND points < 11 AND drawn > 2 AND played > 9 | What is the highest position of the team with an against of 12, less than 11 points, more than 2 drawn, and more than 9 played? | CREATE TABLE table_name_24 (position INTEGER, played VARCHAR, drawn VARCHAR, against VARCHAR, points VARCHAR) |
SELECT official_name FROM table_300283_1 WHERE name_in_spanish = "Cripán" | What is the official name of the municipality whose name in Spanish is Cripán? | CREATE TABLE table_300283_1 (official_name VARCHAR, name_in_spanish VARCHAR) |
SELECT MAX(left) FROM table_2419754_1 | In what year did the teams leave the conference? | CREATE TABLE table_2419754_1 (left INTEGER) |
SELECT current_club FROM table_12962773_13 WHERE no = 6 | Name the current club for number 6 | CREATE TABLE table_12962773_13 (current_club VARCHAR, no VARCHAR) |
SELECT to_par FROM table_name_18 WHERE place = "t8" AND player = "johnny miller" | What is the to par of player johnny miller, who has a t8 place? | CREATE TABLE table_name_18 (to_par VARCHAR, place VARCHAR, player VARCHAR) |
SELECT club FROM table_18967450_2 WHERE goals = 48 | Which team/s have 48 goals total? | CREATE TABLE table_18967450_2 (club VARCHAR, goals VARCHAR) |
SELECT COUNT(number) FROM table_name_99 WHERE name = "jamar jackson" | for the name of jamar jackson what is the total of Number? | CREATE TABLE table_name_99 (number VARCHAR, name VARCHAR) |
SELECT notes FROM table_name_62 WHERE rank = 2 | What notes have 2 as the rank? | CREATE TABLE table_name_62 (notes VARCHAR, rank VARCHAR) |
SELECT province FROM table_name_25 WHERE mountain_range = "axel heiberg island" | Which province includes Axel Heiberg Island? | CREATE TABLE table_name_25 (province VARCHAR, mountain_range VARCHAR) |
SELECT MIN(game) FROM table_name_76 WHERE score = "3–4" | Which Game has a Score of 3–4? | CREATE TABLE table_name_76 (game INTEGER, score VARCHAR) |
SELECT proto_oceanic FROM table_name_48 WHERE proto_polynesian = "*lima" | Which Proto-Oceanic has a Proto-Polynesian of *lima? | CREATE TABLE table_name_48 (proto_oceanic VARCHAR, proto_polynesian VARCHAR) |
SELECT COUNT(candidates) FROM table_19753079_12 WHERE first_elected = 1988 | How many different pairs of candidates were there for the district first elected in 1988? | CREATE TABLE table_19753079_12 (candidates VARCHAR, first_elected VARCHAR) |
SELECT manner_of_departure FROM table_name_56 WHERE replaced_by = "michael oenning" | How did the manager replaced by Michael Oenning depart? | CREATE TABLE table_name_56 (manner_of_departure VARCHAR, replaced_by VARCHAR) |
SELECT muzzle_velocity FROM table_16010376_1 WHERE cartridge = ".375 Remington Ultra Magnum" | When using a .375 Remington Ultra Magnum, what is the muzzle velocity? | CREATE TABLE table_16010376_1 (muzzle_velocity VARCHAR, cartridge VARCHAR) |
SELECT director_s_ FROM table_name_22 WHERE film = "the chapel" | Who directed the film 'The Chapel'? | CREATE TABLE table_name_22 (director_s_ VARCHAR, film VARCHAR) |
SELECT SUM(year) FROM table_name_7 WHERE location = "beijing" | For how many years was the location at Beijing? | CREATE TABLE table_name_7 (year INTEGER, location VARCHAR) |
SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind' | Find the names of all reviewers who rated Gone with the Wind. | CREATE TABLE Movie (mID VARCHAR, title VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR) |
SELECT to_par FROM table_name_2 WHERE player = "k. j. choi" | What's k. j. choi's to par? | CREATE TABLE table_name_2 (to_par VARCHAR, player VARCHAR) |
SELECT production_code FROM table_28967275_2 WHERE series__number = 8 | What is the production code of the episode with series #8? | CREATE TABLE table_28967275_2 (production_code VARCHAR, series__number VARCHAR) |
SELECT tries_against FROM table_name_72 WHERE losing_bonus = "9" | How many tries against have a losing bonus of 9? | CREATE TABLE table_name_72 (tries_against VARCHAR, losing_bonus VARCHAR) |
SELECT term_in_office FROM table_name_76 WHERE state = "qld" AND party = "labor" AND electorate = "fisher" | Which term in office has a qld state, a Party of labor, and an Electorate of fisher? | CREATE TABLE table_name_76 (term_in_office VARCHAR, electorate VARCHAR, state VARCHAR, party VARCHAR) |
SELECT withdrawal_rate__2010_11_ FROM table_21514460_1 WHERE headquarters = "Truro" | What is their withdrawal rate for the school district with headquarters located in Truro? | CREATE TABLE table_21514460_1 (withdrawal_rate__2010_11_ VARCHAR, headquarters VARCHAR) |
SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*) < 3 | Report all majors that have less than 3 students. | CREATE TABLE STUDENT (Major VARCHAR) |
SELECT structure FROM table_name_83 WHERE year < 2009 AND continent = "africa" | Listed with a continent of Africa and before 2009 this structure is called what? | CREATE TABLE table_name_83 (structure VARCHAR, year VARCHAR, continent VARCHAR) |
SELECT league FROM table_name_11 WHERE number < 1 | What league has a number less than 1? | CREATE TABLE table_name_11 (league VARCHAR, number INTEGER) |
SELECT MAX(races) FROM table_23128286_1 | What was the most races he had in a season? | CREATE TABLE table_23128286_1 (races INTEGER) |
SELECT AVG(to_par) FROM table_name_88 WHERE player = "robert allenby" | What is Robert Allenby's average to par score? | CREATE TABLE table_name_88 (to_par INTEGER, player VARCHAR) |
SELECT away_team AS score FROM table_name_30 WHERE venue = "junction oval" | What did the away team score at Junction oval? | CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR) |
SELECT MIN(entries) FROM table_name_87 WHERE front_row_starts < 15 AND driver = "michael schumacher" | What are the lowest entries for a front row smaller than 15 where Michael Schumacher was driving? | CREATE TABLE table_name_87 (entries INTEGER, front_row_starts VARCHAR, driver VARCHAR) |
SELECT census_division FROM table_21284653_1 WHERE name = "Kenora" | What is the census division for the city named Kenora? | CREATE TABLE table_21284653_1 (census_division VARCHAR, name VARCHAR) |
SELECT MIN(occ_championships) FROM table_17429402_7 WHERE last_outright_occ_championship = "2006" | What is the fewest number of occ championships for the team that last won an outright occ championship in 2006? | CREATE TABLE table_17429402_7 (occ_championships INTEGER, last_outright_occ_championship VARCHAR) |
SELECT MAX(points) FROM table_name_72 WHERE year > 1950 AND engine = "offenhauser l4" AND entrant = "brown motors" | What is Brown Motors best point total using the Offenhauser L4 engine since 1950? | CREATE TABLE table_name_72 (points INTEGER, entrant VARCHAR, year VARCHAR, engine VARCHAR) |
SELECT under_president FROM table_2861364_1 WHERE executed_person = "Gunther Volz" | under which president was gunther volz executed? | CREATE TABLE table_2861364_1 (under_president VARCHAR, executed_person VARCHAR) |
SELECT high_points FROM table_11963601_11 WHERE date = "May 3" | Who was the high scorer and how much did they score in the game on May 3? | CREATE TABLE table_11963601_11 (high_points VARCHAR, date VARCHAR) |
SELECT torque__nm__rpm FROM table_1212189_1 WHERE model_engine = "1.8 Duratec HE" | For the model/engine of 1.8 Duratec HE, what is the torque? | CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, model_engine VARCHAR) |
SELECT _percentage_20_39 FROM table_23606500_4 WHERE _percentage_0_19 = "21,11%" | What is every value for % 20-39 if % 0-19 is 21,11%? | CREATE TABLE table_23606500_4 (_percentage_20_39 VARCHAR, _percentage_0_19 VARCHAR) |
SELECT MIN(gold) FROM table_name_59 WHERE total = 3 AND silver < 2 | What is the fewest number of golds for teams with a total of 3 and fewer than 2 silvers? | CREATE TABLE table_name_59 (gold INTEGER, total VARCHAR, silver VARCHAR) |
SELECT date FROM table_name_89 WHERE winning_score = −9(72 - 68 - 64 - 67 = 271) | When was the winning score −9 (72-68-64-67=271)? | CREATE TABLE table_name_89 (date VARCHAR, winning_score VARCHAR) |
SELECT AVG(honorary_professors) FROM table_name_9 WHERE lecturers = 1 AND department = "economics" | What is the average number of honorary professors in the economics department with 1 lecturer? | CREATE TABLE table_name_9 (honorary_professors INTEGER, lecturers VARCHAR, department VARCHAR) |
SELECT AVG(seasons_completed) FROM table_name_97 WHERE division_titles < 1 AND playoff_appearances = 0 AND finals_appearances > 0 | What is the average number of seasons completed of the team with less than 1 division titles, 0 playoff appearances, and more than 0 finals appearances? | CREATE TABLE table_name_97 (seasons_completed INTEGER, finals_appearances VARCHAR, division_titles VARCHAR, playoff_appearances VARCHAR) |
SELECT notes FROM table_20174050_7 WHERE reader = "Briggs, Nicholas Nicholas Briggs" AND title = "Paradox Lost" | If the title is Paradox Lost and the reader is Briggs, Nicholas Nicholas Briggs, what are all of the notes? | CREATE TABLE table_20174050_7 (notes VARCHAR, reader VARCHAR, title VARCHAR) |
SELECT median_household_income FROM table_name_8 WHERE county = "valley" | What is the median household income in Valley County? | CREATE TABLE table_name_8 (median_household_income VARCHAR, county VARCHAR) |
SELECT gtype FROM Video_games GROUP BY gtype ORDER BY COUNT(*) LIMIT 1 | Which game type has least number of games? | CREATE TABLE Video_games (gtype VARCHAR) |
SELECT venue FROM table_name_22 WHERE balls = 148 | What is Venue, when Balls is "148"? | CREATE TABLE table_name_22 (venue VARCHAR, balls VARCHAR) |
SELECT partnering FROM table_name_29 WHERE tournament = "lyon, france" | Who was the partner for the tournament in Lyon, France? | CREATE TABLE table_name_29 (partnering VARCHAR, tournament VARCHAR) |
SELECT roomName, basePrice FROM Rooms ORDER BY basePrice LIMIT 1 | Which room has cheapest base price? List the room's name and the base price. | CREATE TABLE Rooms (roomName VARCHAR, basePrice VARCHAR) |
SELECT score FROM table_name_85 WHERE location = "mohegan sun arena" AND date = "june 25" | What is the score of the game on June 25 at the mohegan sun arena? | CREATE TABLE table_name_85 (score VARCHAR, location VARCHAR, date VARCHAR) |
SELECT SUM(pick) FROM table_name_25 WHERE player = "matt murton" | What's the total number of picks for the player Matt Murton? | CREATE TABLE table_name_25 (pick INTEGER, player VARCHAR) |
SELECT date FROM table_name_31 WHERE week < 8 AND opponent = "atlanta falcons" | Which Date has a Week smaller than 8, and an Opponent of atlanta falcons? | CREATE TABLE table_name_31 (date VARCHAR, week VARCHAR, opponent VARCHAR) |
SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.payment_method_code = 'Credit Card' GROUP BY T1.customer_id HAVING COUNT(*) > 2 | Show the names of customers who use Credit Card payment method and have more than 2 orders. | CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR, payment_method_code VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR) |
SELECT winners FROM table_name_92 WHERE season = 2010 | Who is the winner in 2010? | CREATE TABLE table_name_92 (winners VARCHAR, season VARCHAR) |
SELECT location FROM table_name_36 WHERE home_rink = "triangle sports plex/greensboro ice house" | Where is the location for the home rink Triangle sports plex/Greensboro ice house? | CREATE TABLE table_name_36 (location VARCHAR, home_rink VARCHAR) |
SELECT date FROM table_name_95 WHERE opponent = "patty fendick" | On what date was Patty Fendick an opponent? | CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR) |
SELECT city_location FROM table_name_70 WHERE pole_position = "rick mears" AND winning_driver = "rick mears" | Where did Rick Mears win, after starting in Pole Position? | CREATE TABLE table_name_70 (city_location VARCHAR, pole_position VARCHAR, winning_driver VARCHAR) |
SELECT catalogno FROM table_name_31 WHERE remark = "#160 us" | Which Catalogno was #160 us? | CREATE TABLE table_name_31 (catalogno VARCHAR, remark VARCHAR) |
SELECT MIN(_number) FROM table_22496344_1 WHERE home_town = "Conroe, TX" | What is the # when conroe, tx is the hometown? | CREATE TABLE table_22496344_1 (_number INTEGER, home_town VARCHAR) |
SELECT SUM(weight) FROM table_name_78 WHERE year = "senior" AND height = "6–10" | What is the Weight of the Senior Player with a Height of 6–10? | CREATE TABLE table_name_78 (weight INTEGER, year VARCHAR, height VARCHAR) |
SELECT MAX(wins) FROM table_18703133_1 WHERE team = "Sport Colombia" | Name the most wins for sport colombia | CREATE TABLE table_18703133_1 (wins INTEGER, team VARCHAR) |
SELECT away_team FROM table_name_95 WHERE home_team = "colchester united" | Waht was the away team when the home team is colchester united? | CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR) |
SELECT MAX(year_s_) FROM table_17766232_7 WHERE final_television_commentator = "David Jacobs" | What is the latest year that the final television commentator was David Jacobs? | CREATE TABLE table_17766232_7 (year_s_ INTEGER, final_television_commentator VARCHAR) |
SELECT part_1 FROM table_name_83 WHERE part_3 = "heldu" | What is Part 1, when Part 3 is "heldu"? | CREATE TABLE table_name_83 (part_1 VARCHAR, part_3 VARCHAR) |
SELECT college FROM table_name_2 WHERE name = "ray graves" | What college did Ray Graves attend? | CREATE TABLE table_name_2 (college VARCHAR, name VARCHAR) |
SELECT MIN(year) FROM table_name_73 WHERE chassis = "lotus 49b" | What is the earliest year that had a Lotus 49B chassis? | CREATE TABLE table_name_73 (year INTEGER, chassis VARCHAR) |
SELECT country FROM table_name_53 WHERE winter_olympics = "1960" | With the Winter Olympics was 1960, what was the country? | CREATE TABLE table_name_53 (country VARCHAR, winter_olympics VARCHAR) |
SELECT notes FROM table_name_98 WHERE built = "1917" | What is the notes for the vehicle built in 1917? | CREATE TABLE table_name_98 (notes VARCHAR, built VARCHAR) |
SELECT MAX(crowd) FROM table_name_87 WHERE venue = "arden street oval" | What is the largest crowd at arden street oval? | CREATE TABLE table_name_87 (crowd INTEGER, venue VARCHAR) |
SELECT rank FROM table_24489942_10 WHERE name = "Thomas Morgenstern" | Name the rank for thomas morgenstern | CREATE TABLE table_24489942_10 (rank VARCHAR, name VARCHAR) |
SELECT AVG(crowd) FROM table_name_77 WHERE home_team = "gold coast blaze" | What was the average crowd size for the game when the Gold Coast Blaze was the home team? | CREATE TABLE table_name_77 (crowd INTEGER, home_team VARCHAR) |
SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed | Show the ids of all employees who have either destroyed a document or made an authorization to do this. | CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR) |
SELECT location FROM table_255188_3 WHERE institution = "University of North Carolina at Greensboro" | Where is the University of North Carolina at Greensboro located? | CREATE TABLE table_255188_3 (location VARCHAR, institution VARCHAR) |
SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin' | List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin. | CREATE TABLE Professionals (email_address VARCHAR, state VARCHAR) |
SELECT COUNT(avg_start) FROM table_1708050_3 WHERE year = 2000 | Name the total number when avg start is 2000 | CREATE TABLE table_1708050_3 (avg_start VARCHAR, year VARCHAR) |
SELECT national FROM table_20217811_1 WHERE electorate = "Rimutaka" | Name the national for rimutaka | CREATE TABLE table_20217811_1 (national VARCHAR, electorate VARCHAR) |
SELECT country FROM table_name_97 WHERE event = "half marathon" | What is the Country of the Half Marathon Event? | CREATE TABLE table_name_97 (country VARCHAR, event VARCHAR) |
SELECT COUNT(winning_driver) FROM table_15511178_3 WHERE rd = 8 | how many winners were in round 8 | CREATE TABLE table_15511178_3 (winning_driver VARCHAR, rd VARCHAR) |
SELECT 2008 AS _09 FROM table_name_58 WHERE event = "masters" | What is the 2008-09 result has Masters as the event? | CREATE TABLE table_name_58 (event VARCHAR) |
SELECT SUM(silver) FROM table_name_84 WHERE total < 1 | What is the sum of Silver, when Total is less than 1? | CREATE TABLE table_name_84 (silver INTEGER, total INTEGER) |
SELECT percentage__2006_ FROM table_2328113_1 WHERE mother_tongue = "Polish" | What was the percentage in 2006 whose natives is Polish? | CREATE TABLE table_2328113_1 (percentage__2006_ VARCHAR, mother_tongue VARCHAR) |
SELECT team FROM table_name_92 WHERE recopa_1994 = "n/a" AND conmebol_1994 = "1st round" | Which Team has a Recopa 1994 of n/a and a CONMEBOL 1994 of 1st round? | CREATE TABLE table_name_92 (team VARCHAR, recopa_1994 VARCHAR, conmebol_1994 VARCHAR) |
SELECT stadium FROM table_name_34 WHERE sport = "football" AND league = "china league one" | Which stadium is for football with the China League One? | CREATE TABLE table_name_34 (stadium VARCHAR, sport VARCHAR, league VARCHAR) |
SELECT COUNT(lifetime_india_distributor_share) FROM table_name_39 WHERE year < 2009 | What is the total number of Lifetime India Distributor share earlier than 2009? | CREATE TABLE table_name_39 (lifetime_india_distributor_share VARCHAR, year INTEGER) |
SELECT place FROM table_name_39 WHERE country = "united states" AND money___$__ > 0 AND player = "craig wood" | Which Place has a Country of united states, and a Money ($) larger than 0, and a Player of craig wood? | CREATE TABLE table_name_39 (place VARCHAR, player VARCHAR, country VARCHAR, money___$__ VARCHAR) |
SELECT away_team AS score FROM table_name_83 WHERE away_team = "richmond" | What was Richmond's score when it was the away team? | CREATE TABLE table_name_83 (away_team VARCHAR) |
SELECT frequency FROM table_name_50 WHERE model_number = "core i7-3610qe" | What was the frequency of the Core i7-3610QE? | CREATE TABLE table_name_50 (frequency VARCHAR, model_number VARCHAR) |
SELECT AVG(erp_w) FROM table_name_76 WHERE call_sign = "k216fo" | Call sign k216fo has what average ERP W? | CREATE TABLE table_name_76 (erp_w INTEGER, call_sign VARCHAR) |
SELECT format FROM table_name_12 WHERE catalog = "alca-487" | What is the Format for the alca-487 catalog? | CREATE TABLE table_name_12 (format VARCHAR, catalog VARCHAR) |
SELECT COUNT(*) FROM authors | How many authors are there? | CREATE TABLE authors (Id VARCHAR) |
SELECT MIN(series__number) FROM table_15824796_4 | What is the lowest number of series? | CREATE TABLE table_15824796_4 (series__number INTEGER) |
SELECT week_4 FROM table_name_62 WHERE week_2 = "samantha speer" | What Week 4 has a Week 2 of samantha speer? | CREATE TABLE table_name_62 (week_4 VARCHAR, week_2 VARCHAR) |
SELECT COUNT(points) FROM table_name_77 WHERE time_retired = "+10.131 secs" | How many points are associated with a Time/Retired of +10.131 secs? | CREATE TABLE table_name_77 (points VARCHAR, time_retired VARCHAR) |
SELECT date_of_return FROM table_19114172_11 WHERE new_channel_s_ = "BBC Two" | When bbc two is the new channel what is the date of return? | CREATE TABLE table_19114172_11 (date_of_return VARCHAR, new_channel_s_ VARCHAR) |
SELECT score FROM table_name_7 WHERE to_par = "–1" AND player = "mick soli" | Which Score has a To par of –1, and a Player of mick soli? | CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR) |
SELECT MIN(top_5) FROM table_name_33 WHERE top_25 < 4 AND cuts_made < 7 | What is the lowest Top-5, when Top-25 is less than 4, and when Cuts made is less than 7? | CREATE TABLE table_name_33 (top_5 INTEGER, top_25 VARCHAR, cuts_made VARCHAR) |
SELECT player FROM table_name_1 WHERE country = "united states" AND score = 70 - 72 - 70 = 212 | What is Player, when Country is United States, and when Score is 70-72-70=212? | CREATE TABLE table_name_1 (player VARCHAR, country VARCHAR, score VARCHAR) |
SELECT surface FROM table_name_20 WHERE week = "august 10" | What surface was played on during the week of August 10? | CREATE TABLE table_name_20 (surface VARCHAR, week VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.