answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT birth FROM table_name_47 WHERE ceased_to_be_queen = "18 jun 1297" | What is the birth date of the woman who ceased to be Queen on 18 Jun 1297? | CREATE TABLE table_name_47 (birth VARCHAR, ceased_to_be_queen VARCHAR) |
SELECT COUNT(*) FROM useracct | How many users are there? | CREATE TABLE useracct (Id VARCHAR) |
SELECT AVG(attendance) FROM table_name_45 WHERE date = "october 26, 1947" | What is the avarage Attendance for the Date of october 26, 1947? | CREATE TABLE table_name_45 (attendance INTEGER, date VARCHAR) |
SELECT date FROM table_name_26 WHERE attendance = "58,025" | When was the game that had 58,025 people in attendance? | CREATE TABLE table_name_26 (date VARCHAR, attendance VARCHAR) |
SELECT Code FROM country WHERE GovernmentForm <> "Republic" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = "English" | What are the codes of the countries that do not speak English and whose government forms are not Republic? | CREATE TABLE countrylanguage (Code VARCHAR, CountryCode VARCHAR, GovernmentForm VARCHAR, LANGUAGE VARCHAR); CREATE TABLE country (Code VARCHAR, CountryCode VARCHAR, GovernmentForm VARCHAR, LANGUAGE VARCHAR) |
SELECT date FROM table_name_93 WHERE game = 75 | What was the date of game 75? | CREATE TABLE table_name_93 (date VARCHAR, game VARCHAR) |
SELECT tournament FROM table_name_79 WHERE date = "nov. 21, 1999" | What tournament has nov. 21, 1999 as the date? | CREATE TABLE table_name_79 (tournament VARCHAR, date VARCHAR) |
SELECT power_provided FROM table_174151_5 WHERE transfer_speed__mb_s_ = "300" AND max_cable_length__m_ = "10" | Name the power provided where transfer speed mb/s is 300 and max cable length of 10 | CREATE TABLE table_174151_5 (power_provided VARCHAR, transfer_speed__mb_s_ VARCHAR, max_cable_length__m_ VARCHAR) |
SELECT COUNT(bronze) FROM table_name_43 WHERE total < 4 AND rank = "10" | What is the total number of bronzes with totals under 4 and ranks of 10? | CREATE TABLE table_name_43 (bronze VARCHAR, total VARCHAR, rank VARCHAR) |
SELECT team FROM table_name_1 WHERE car__number < 99 AND make = "toyota" AND driver = "mike skinner" | Which team has a car # before 99, a Toyota, and is driven by Mike Skinner? | CREATE TABLE table_name_1 (team VARCHAR, driver VARCHAR, car__number VARCHAR, make VARCHAR) |
SELECT player FROM table_name_18 WHERE jersey_number_s_ = "2" | Which player wears the number 2 on his jersey? | CREATE TABLE table_name_18 (player VARCHAR, jersey_number_s_ VARCHAR) |
SELECT MIN(frequency_mhz) FROM table_name_24 WHERE call_sign = "k202ag" | Name the least frequency Mhz with call sign of k202ag | CREATE TABLE table_name_24 (frequency_mhz INTEGER, call_sign VARCHAR) |
SELECT COUNT(week) FROM table_name_38 WHERE opponent = "chicago bears" | What is the total for the week in the game against the Chicago Bears | CREATE TABLE table_name_38 (week VARCHAR, opponent VARCHAR) |
SELECT status FROM table_1341568_6 WHERE party = "Democratic" AND elected = "1989" | What is the elected status of the Democratic party in 1989? | CREATE TABLE table_1341568_6 (status VARCHAR, party VARCHAR, elected VARCHAR) |
SELECT AVG(draws) FROM table_name_28 WHERE wins = 10 AND peel = "south mandurah" AND byes > 0 | Which Draws has a Wins of 10, and a Peel of south mandurah, and a Byes larger than 0? | CREATE TABLE table_name_28 (draws INTEGER, byes VARCHAR, wins VARCHAR, peel VARCHAR) |
SELECT MIN(attendance) FROM table_name_29 WHERE score = "5-4" AND loss = "williams (2-4)" | What was the lowest attendance at a game that had a score of 5-4 and a loss of Williams (2-4)? | CREATE TABLE table_name_29 (attendance INTEGER, score VARCHAR, loss VARCHAR) |
SELECT score FROM table_27733909_5 WHERE date = "November 21" | What was the score in the game on November 21? | CREATE TABLE table_27733909_5 (score VARCHAR, date VARCHAR) |
SELECT nat FROM table_name_9 WHERE name = "acquafresca" | What is the nationality of Acquafresca? | CREATE TABLE table_name_9 (nat VARCHAR, name VARCHAR) |
SELECT AVG(react) FROM table_name_91 WHERE name = "candice davis" AND lane < 3 | What is the average React, when Name is "Candice Davis", and when Lane is less than 3? | CREATE TABLE table_name_91 (react INTEGER, name VARCHAR, lane VARCHAR) |
SELECT residence_hall FROM table_15873547_1 WHERE mascot = "Vermin" | What residence hall has the vermin mascot? | CREATE TABLE table_15873547_1 (residence_hall VARCHAR, mascot VARCHAR) |
SELECT MIN(rank) FROM table_name_91 WHERE name = "maxim podoprigora" | What was Maxim Podoprigora's lowest rank? | CREATE TABLE table_name_91 (rank INTEGER, name VARCHAR) |
SELECT wrestler FROM table_name_41 WHERE date = "october 11, 2008" | Who has a date of october 11, 2008? | CREATE TABLE table_name_41 (wrestler VARCHAR, date VARCHAR) |
SELECT venue FROM table_name_83 WHERE year < 2008 AND position = "2nd" | Name the venue for 2nd position of year before 2008 | CREATE TABLE table_name_83 (venue VARCHAR, year VARCHAR, position VARCHAR) |
SELECT margin FROM table_name_4 WHERE venue = "bellerive oval , hobart" AND season = "2002/03" | What is the Margin that has a Venue of bellerive oval , hobart, and a Season of 2002/03? | CREATE TABLE table_name_4 (margin VARCHAR, venue VARCHAR, season VARCHAR) |
SELECT COUNT(published) FROM table_name_86 WHERE in_order_of_publication = "first" | How many total publications were the first of the series? | CREATE TABLE table_name_86 (published VARCHAR, in_order_of_publication VARCHAR) |
SELECT COUNT(episode) FROM table_24725951_1 WHERE celebrities = "Frank Skinner and Lee Mack" | How many episodes had celebrity guest stars Frank Skinner and Lee Mack? | CREATE TABLE table_24725951_1 (episode VARCHAR, celebrities VARCHAR) |
SELECT score_in_final FROM table_20986710_1 WHERE runner_up = "Tracy Austin" | What was the final score when tracy austin was runner up? | CREATE TABLE table_20986710_1 (score_in_final VARCHAR, runner_up VARCHAR) |
SELECT official_or_native_language_s___alphabet_script_ FROM table_1008653_1 WHERE capital___exonym__ = "Canberra" | What official or native languages are spoken in the country whose capital city is Canberra? | CREATE TABLE table_1008653_1 (official_or_native_language_s___alphabet_script_ VARCHAR, capital___exonym__ VARCHAR) |
SELECT fat32 FROM table_name_54 WHERE hpfs = "no" AND refs = "no" AND ntfs = "yes v3.0" | Which FAT32 has a no for HPFS, a no for ReFS, and a yes v3.0 fir NTFS? | CREATE TABLE table_name_54 (fat32 VARCHAR, ntfs VARCHAR, hpfs VARCHAR, refs VARCHAR) |
SELECT first_elected FROM table_name_45 WHERE result = "re-elected" AND district = "south carolina 1" | What is the first date of election for the incumbent that was re-elected in the South Carolina 1 district? | CREATE TABLE table_name_45 (first_elected VARCHAR, result VARCHAR, district VARCHAR) |
SELECT code__iata_ FROM table_name_20 WHERE total_cargo__metric_tonnes_ = "1,838,894" | What is the IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes? | CREATE TABLE table_name_20 (code__iata_ VARCHAR, total_cargo__metric_tonnes_ VARCHAR) |
SELECT session FROM table_name_95 WHERE circuit = "autodrom most" | What was the session at the circuit of autodrom most? | CREATE TABLE table_name_95 (session VARCHAR, circuit VARCHAR) |
SELECT incumbent FROM table_26416704_1 WHERE elected = "2004" AND status = "Re-elected" AND party = "Republican" | Who is the incumbent when the elected year is 2004, the status is re-elected and the party is republican? | CREATE TABLE table_26416704_1 (incumbent VARCHAR, party VARCHAR, elected VARCHAR, status VARCHAR) |
SELECT name FROM table_name_38 WHERE constituency_number = "48" | What is the name for the constituency at number 48? | CREATE TABLE table_name_38 (name VARCHAR, constituency_number VARCHAR) |
SELECT award FROM table_name_77 WHERE result = "won" AND nomination = "senses around" | Which award was won when the nomination was Senses Around? | CREATE TABLE table_name_77 (award VARCHAR, result VARCHAR, nomination VARCHAR) |
SELECT english_spelling FROM table_name_24 WHERE hebrew_word = "יְהוֹשָפָט" | How do you spell the Hebrew word יְהוֹשָפָט in English? | CREATE TABLE table_name_24 (english_spelling VARCHAR, hebrew_word VARCHAR) |
SELECT runner_s__up FROM table_name_93 WHERE date = "may 26, 1996" | Who were the runners-up in the tournament on May 26, 1996? | CREATE TABLE table_name_93 (runner_s__up VARCHAR, date VARCHAR) |
SELECT relegated FROM table_name_48 WHERE season = "2006" | What was relegated in the 2006 season? | CREATE TABLE table_name_48 (relegated VARCHAR, season VARCHAR) |
SELECT partnering FROM table_18042031_16 WHERE date = "10–12 July 2009" | Who was Gil's partner on 10–12 july 2009 | CREATE TABLE table_18042031_16 (partnering VARCHAR, date VARCHAR) |
SELECT candidates FROM table_1342256_32 WHERE district = "New York 19" | Who are the contenders In the New York 19 polling area race? | CREATE TABLE table_1342256_32 (candidates VARCHAR, district VARCHAR) |
SELECT record FROM table_name_44 WHERE date = "july 3" | What was the record of the game on July 3? | CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR) |
SELECT AVG(december) FROM table_name_84 WHERE record = "16-3-4" AND game < 23 | What is the average day in December with a Record of 16-3-4 and a Game smaller than 23? | CREATE TABLE table_name_84 (december INTEGER, record VARCHAR, game VARCHAR) |
SELECT period FROM table_name_52 WHERE team = "det" AND time = "11:27" | What is the period for the DET Team with a time of 11:27? | CREATE TABLE table_name_52 (period VARCHAR, team VARCHAR, time VARCHAR) |
SELECT SUM(position) FROM table_name_43 WHERE lost > 16 AND against > 74 | What is the position of the team with more than 16 losses and an against greater than 74? | CREATE TABLE table_name_43 (position INTEGER, lost VARCHAR, against VARCHAR) |
SELECT 1 AS st_round FROM table_name_56 WHERE team_1 = "stade lavallois (d2)" | what is the 1st round when team 1 is stade lavallois (d2)? | CREATE TABLE table_name_56 (team_1 VARCHAR) |
SELECT visitor FROM table_name_67 WHERE home = "minnesota" | Who is the visiting team when Minnesota is the home team? | CREATE TABLE table_name_67 (visitor VARCHAR, home VARCHAR) |
SELECT college_junior_club_team FROM table_1965650_3 WHERE player = "John Campbell" | Name the college/junior club team for john campbell | CREATE TABLE table_1965650_3 (college_junior_club_team VARCHAR, player VARCHAR) |
SELECT date FROM table_name_94 WHERE opponent_in_final = "john mcenroe" | What date has the opponent competing in the final of john mcenroe? | CREATE TABLE table_name_94 (date VARCHAR, opponent_in_final VARCHAR) |
SELECT jewel AS Power FROM table_26615633_1 WHERE media_debut = "EP 17" | what is the jewel power when the media debut is ep 17? | CREATE TABLE table_26615633_1 (jewel VARCHAR, media_debut VARCHAR) |
SELECT incumbent FROM table_1341690_9 WHERE first_elected = 1940 | Who was the incumbent in 1940? | CREATE TABLE table_1341690_9 (incumbent VARCHAR, first_elected VARCHAR) |
SELECT COUNT(blocks) FROM table_25016555_5 WHERE assists = 21 | When 21 is the number of assists how many sets of blocks are there? | CREATE TABLE table_25016555_5 (blocks VARCHAR, assists VARCHAR) |
SELECT high_points FROM table_22871316_6 WHERE date = "December 18" | Who did the high points in the game played on December 18? | CREATE TABLE table_22871316_6 (high_points VARCHAR, date VARCHAR) |
SELECT location FROM table_name_98 WHERE county = "rockingham" | Where was the county of rockingham? | CREATE TABLE table_name_98 (location VARCHAR, county VARCHAR) |
SELECT date FROM table_name_78 WHERE home___away = "away" AND location_attendance = "blue cross arena" | What is the date of the away game at the Blue Cross Arena? | CREATE TABLE table_name_78 (date VARCHAR, home___away VARCHAR, location_attendance VARCHAR) |
SELECT external_weapon FROM table_name_17 WHERE shield_animal = "falcon" | What is the external weapon with the falcon shield animal? | CREATE TABLE table_name_17 (external_weapon VARCHAR, shield_animal VARCHAR) |
SELECT player FROM table_name_72 WHERE score < 66 AND place = "t2" AND country = "united states" | What player has a score less than 66, and a Place of t2, in the United States? | CREATE TABLE table_name_72 (player VARCHAR, country VARCHAR, score VARCHAR, place VARCHAR) |
SELECT attendance FROM table_name_6 WHERE opponent = "houston oilers" | What is the attendance of the game against the houston oilers? | CREATE TABLE table_name_6 (attendance VARCHAR, opponent VARCHAR) |
SELECT event FROM table_name_18 WHERE record = "18–5 (1)" | Which event had the record of 18–5 (1)? | CREATE TABLE table_name_18 (event VARCHAR, record VARCHAR) |
SELECT AVG(events) FROM table_name_50 WHERE rank = 1 AND wins > 3 | What is the mean number of events where the rank is 1 and there are more than 3 wins? | CREATE TABLE table_name_50 (events INTEGER, rank VARCHAR, wins VARCHAR) |
SELECT motorcycle FROM table_name_23 WHERE rider = "anthony west" | Anthony West ride which Motorcyle? | CREATE TABLE table_name_23 (motorcycle VARCHAR, rider VARCHAR) |
SELECT MIN(total_seasons) FROM table_name_58 WHERE team = "vancouver 86ers" | What is the least total seasons of the Vancouver 86ers? | CREATE TABLE table_name_58 (total_seasons INTEGER, team VARCHAR) |
SELECT attendance FROM table_name_48 WHERE date = "october 2, 1977" | What was the Attendance on october 2, 1977? | CREATE TABLE table_name_48 (attendance VARCHAR, date VARCHAR) |
SELECT opponent FROM table_name_24 WHERE date = "september 8" | Who was the opponent on September 8? | CREATE TABLE table_name_24 (opponent VARCHAR, date VARCHAR) |
SELECT model FROM table_name_68 WHERE fuel_or_propulsion = "diesel" AND manufacturer = "orion" AND year = 2005 | Tell me the model with fuel or propulsion of diesel and orion manufacturer in 2005 | CREATE TABLE table_name_68 (model VARCHAR, year VARCHAR, fuel_or_propulsion VARCHAR, manufacturer VARCHAR) |
SELECT league_apps FROM table_27170987_5 WHERE total_goals = 11 | How many league apps did the player with 11 team goals have? | CREATE TABLE table_27170987_5 (league_apps VARCHAR, total_goals VARCHAR) |
SELECT english_translation FROM table_name_10 WHERE artist = "ann christine" | what is the english translation when the artist is ann christine? | CREATE TABLE table_name_10 (english_translation VARCHAR, artist VARCHAR) |
SELECT MAX(col__m_) FROM table_18946749_2 WHERE peak = "Barurumea Ridge" | What is the col (m) of the Barurumea Ridge peak? | CREATE TABLE table_18946749_2 (col__m_ INTEGER, peak VARCHAR) |
SELECT constancy FROM table_11609814_1 WHERE permanence_of_the_body = "meditation" | what's the constancy where permanence of the body is meditation | CREATE TABLE table_11609814_1 (constancy VARCHAR, permanence_of_the_body VARCHAR) |
SELECT incumbent FROM table_28188239_1 WHERE district = "PA-8" | Who is the incumbent of district pa-8? | CREATE TABLE table_28188239_1 (incumbent VARCHAR, district VARCHAR) |
SELECT general_classification FROM table_name_37 WHERE young_rider_classification = "riccardo riccò" | What is the general classification with riccardo riccò as the young rider classification? | CREATE TABLE table_name_37 (general_classification VARCHAR, young_rider_classification VARCHAR) |
SELECT area FROM table_name_11 WHERE authority = "state" AND roll > 157 | Where is the school with state authority that has a roll of more than 157 students? | CREATE TABLE table_name_11 (area VARCHAR, authority VARCHAR, roll VARCHAR) |
SELECT withdrawn FROM table_name_49 WHERE name = "lundy" | When was the Lundy withdrawn? | CREATE TABLE table_name_49 (withdrawn VARCHAR, name VARCHAR) |
SELECT points FROM table_17282875_2 WHERE team__number2 = "Deportivo Anzoátegui" | What was the game's points against Team 2 Deportivo Anzoátegui? | CREATE TABLE table_17282875_2 (points VARCHAR, team__number2 VARCHAR) |
SELECT date FROM table_name_78 WHERE opponent = "bye" | Which date has an Opponent of bye? | CREATE TABLE table_name_78 (date VARCHAR, opponent VARCHAR) |
SELECT laps FROM table_2175858_1 WHERE year = 2009 | How many laps were driven in 2009? | CREATE TABLE table_2175858_1 (laps VARCHAR, year VARCHAR) |
SELECT AVG(points) FROM table_name_3 WHERE played > 126 | What is the average Points, when Played is greater than 126? | CREATE TABLE table_name_3 (points INTEGER, played INTEGER) |
SELECT date FROM table_name_63 WHERE score = "5-4" | What date had a game with a score of 5-4? | CREATE TABLE table_name_63 (date VARCHAR, score VARCHAR) |
SELECT ε__m_−1_cm_−1__ FROM table_26428602_1 WHERE color = "red" | What is the ε (m −1 cm −1 ) of the red dye? | CREATE TABLE table_26428602_1 (ε__m_−1_cm_−1__ VARCHAR, color VARCHAR) |
SELECT MAX(bush_number) FROM table_name_85 WHERE others_percentage = "1.7%" AND others_number < 75 AND kerry_number > 1 OFFSET 524 | What is the highest Bush#, when Others% is "1.7%", when Others# is less than 75, and when Kerry# is greater than 1,524? | CREATE TABLE table_name_85 (bush_number INTEGER, kerry_number VARCHAR, others_percentage VARCHAR, others_number VARCHAR) |
SELECT SUM(laps) FROM table_name_69 WHERE driver = "gunnar nilsson" | How many laps did gunnar nilsson drive? | CREATE TABLE table_name_69 (laps INTEGER, driver VARCHAR) |
SELECT MIN(rank) FROM table_name_81 WHERE lane = 7 | The swimmer in lane 7 has what as the smallest rank? | CREATE TABLE table_name_81 (rank INTEGER, lane VARCHAR) |
SELECT date FROM table_name_75 WHERE event = "team pursuit (8 laps)" | On what date was a record set in the team pursuit (8 laps) event? | CREATE TABLE table_name_75 (date VARCHAR, event VARCHAR) |
SELECT estimated_function__percentage FROM table_name_43 WHERE measurement = "8/8" | What is the estimated function % when the measurement is 8/8? | CREATE TABLE table_name_43 (estimated_function__percentage VARCHAR, measurement VARCHAR) |
SELECT MAX(pick__number) FROM table_2850912_6 WHERE player = "Greg Strome" | What pick was Greg Strome? | CREATE TABLE table_2850912_6 (pick__number INTEGER, player VARCHAR) |
SELECT MIN(first_elected) FROM table_1341663_26 | When was the earliest first election? | CREATE TABLE table_1341663_26 (first_elected INTEGER) |
SELECT COUNT(date) FROM table_1566848_7 WHERE pictorials = "Female s disk jockey" | What is the date of the issue where the pictorials is of Female s disk jockey? | CREATE TABLE table_1566848_7 (date VARCHAR, pictorials VARCHAR) |
SELECT country FROM table_name_93 WHERE player = "ian woosnam" | What is the country of player ian woosnam? | CREATE TABLE table_name_93 (country VARCHAR, player VARCHAR) |
SELECT opponent FROM table_name_32 WHERE box_scores = "bye" | Which of the opponents has bye as their box score? | CREATE TABLE table_name_32 (opponent VARCHAR, box_scores VARCHAR) |
SELECT sspec_number FROM table_name_75 WHERE socket = "standard power" | what is the sspec number when the socket is standard power? | CREATE TABLE table_name_75 (sspec_number VARCHAR, socket VARCHAR) |
SELECT site FROM table_name_51 WHERE date = "september 29, 2013" | I want the site for september 29, 2013 | CREATE TABLE table_name_51 (site VARCHAR, date VARCHAR) |
SELECT MIN(draws) FROM table_name_83 WHERE goal_difference = "0:2" AND wins > 0 | What is the lowest number of draws that have a goal difference of 0:2 and wins greater than 0? | CREATE TABLE table_name_83 (draws INTEGER, goal_difference VARCHAR, wins VARCHAR) |
SELECT location_attendance FROM table_name_30 WHERE game = 42 | How many people attended game 42? | CREATE TABLE table_name_30 (location_attendance VARCHAR, game VARCHAR) |
SELECT AVG(against) FROM table_name_64 WHERE status = "test match" | What is the average against for a test match? | CREATE TABLE table_name_64 (against INTEGER, status VARCHAR) |
SELECT MIN(points) FROM table_name_5 WHERE february < 1 | How many Points a February smaller than 1 have? | CREATE TABLE table_name_5 (points INTEGER, february INTEGER) |
SELECT COUNT(winner) FROM table_25938117_1 WHERE tournament = "Allianz Championship" | Name the total number of winners for allianz championship | CREATE TABLE table_25938117_1 (winner VARCHAR, tournament VARCHAR) |
SELECT MIN(year_completed) FROM table_name_31 WHERE dam_type = "concrete gravity" AND impounded_body_of_water = "deep creek reservoir" | Which Year completed has a Dam type of concrete gravity, and an Impounded body of water of deep creek reservoir? | CREATE TABLE table_name_31 (year_completed INTEGER, dam_type VARCHAR, impounded_body_of_water VARCHAR) |
SELECT report FROM table_name_59 WHERE away_team = "new zealand breakers" | What was the away team for the New Zealand breakers? | CREATE TABLE table_name_59 (report VARCHAR, away_team VARCHAR) |
SELECT qual FROM table_name_64 WHERE finish = "16" AND year = "1968" | What qual had a finish of 16 in 1968? | CREATE TABLE table_name_64 (qual VARCHAR, finish VARCHAR, year VARCHAR) |
SELECT MIN(year) FROM table_name_41 WHERE seat_factor = "68%" AND flying_hours > 105 OFFSET 579 | What was the earliest year that had more than 105,579 flying hours and a seat factor of 68%? | CREATE TABLE table_name_41 (year INTEGER, seat_factor VARCHAR, flying_hours VARCHAR) |
SELECT bus_power FROM table_name_5 WHERE fieldbus = "controlnet" | What is the bus power for the Controlnet Fieldbus? | CREATE TABLE table_name_5 (bus_power VARCHAR, fieldbus VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.