question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
How many games has each stadium held? | CREATE TABLE stadium (id VARCHAR); CREATE TABLE game (stadium_id VARCHAR) | SELECT T1.id, COUNT(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id |
Which highest Overall has a Pick # of 4, and a Round larger than 7? | CREATE TABLE table_name_65 (overall INTEGER, pick__number VARCHAR, round VARCHAR) | SELECT MAX(overall) FROM table_name_65 WHERE pick__number = 4 AND round > 7 |
What is year that has points larger than 46, and a rank of 6th? | CREATE TABLE table_name_45 (year INTEGER, points VARCHAR, rank VARCHAR) | SELECT SUM(year) FROM table_name_45 WHERE points > 46 AND rank = "6th" |
What is the value of the points column when the value of the column lost is "lost" | CREATE TABLE table_13564702_4 (points VARCHAR) | SELECT points FROM table_13564702_4 WHERE "lost" = "lost" |
What is the license plate code for the country with an area of 784? | CREATE TABLE table_name_52 (license_plate_code VARCHAR, area__sqmi_ VARCHAR) | SELECT license_plate_code FROM table_name_52 WHERE area__sqmi_ = 784 |
What was the date of the Mariners game that had an attendance of 6,707? | CREATE TABLE table_name_8 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_8 WHERE attendance = "6,707" |
What year had a score of 9? | CREATE TABLE table_10748727_1 (season VARCHAR, points VARCHAR) | SELECT season FROM table_10748727_1 WHERE points = "9" |
How many episodes with different series numbers were seen by 8.69 people in the US? | CREATE TABLE table_19995378_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR) | SELECT COUNT(no_in_season) FROM table_19995378_1 WHERE us_viewers__millions_ = "8.69" |
What's the change over same quarter the previous year in the period when the 89.6% of the trains arrive within 5 minutes of scheduled time (over three months)? | CREATE TABLE table_171748_3 (change_over_same_quarter_the_previous_year VARCHAR, _percentage_trains_arriving_within_5_mins_of_scheduled_time__over_three_months_ VARCHAR) | SELECT change_over_same_quarter_the_previous_year FROM table_171748_3 WHERE _percentage_trains_arriving_within_5_mins_of_scheduled_time__over_three_months_ = "89.6%" |
Name the name for desha | CREATE TABLE table_25794010_1 (name VARCHAR, county VARCHAR) | SELECT name FROM table_25794010_1 WHERE county = "Desha" |
What is the sum of Total, when Nation is West Germany, and when Gold is greater than 2? | CREATE TABLE table_name_45 (total INTEGER, nation VARCHAR, gold VARCHAR) | SELECT SUM(total) FROM table_name_45 WHERE nation = "west germany" AND gold > 2 |
What game number was on January 14? | CREATE TABLE table_27713583_8 (game VARCHAR, date VARCHAR) | SELECT game FROM table_27713583_8 WHERE date = "January 14" |
What player scored 71-69-71=211? | CREATE TABLE table_name_68 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_68 WHERE score = 71 - 69 - 71 = 211 |
Find the department name that is in Building "Mergenthaler". | CREATE TABLE DEPARTMENT (DName VARCHAR, Building VARCHAR) | SELECT DName FROM DEPARTMENT WHERE Building = "Mergenthaler" |
What's the school of the player with a hometown of little rock, arkansas? | CREATE TABLE table_name_94 (school VARCHAR, hometown VARCHAR) | SELECT school FROM table_name_94 WHERE hometown = "little rock, arkansas" |
When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.? | CREATE TABLE table_name_9 (sno INTEGER, state VARCHAR, completion_schedule VARCHAR) | SELECT MIN(sno) FROM table_name_9 WHERE state = "jammu & kashmir" AND completion_schedule = "2016" |
What is the pick number in a year earlier than 2009, with a round higher than 1? | CREATE TABLE table_name_60 (pick VARCHAR, year VARCHAR, round VARCHAR) | SELECT COUNT(pick) FROM table_name_60 WHERE year < 2009 AND round > 1 |
What is the opponent from April 19? | CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_35 WHERE date = "april 19" |
What away team plays at Victoria Park? | CREATE TABLE table_name_60 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_60 WHERE venue = "victoria park" |
What are the first names of all the students? | CREATE TABLE student (fname VARCHAR) | SELECT DISTINCT fname FROM student |
What is the average Year during which the Driver Adrian Quaife-Hobbs has fewer than 2 Poles, and 0 Fast laps? | CREATE TABLE table_name_98 (year INTEGER, drivers VARCHAR, poles VARCHAR, fast_laps VARCHAR) | SELECT AVG(year) FROM table_name_98 WHERE poles < 2 AND fast_laps = 0 AND drivers = "adrian quaife-hobbs" |
What is the census ranking for the Perth parish? | CREATE TABLE table_176524_2 (census_ranking VARCHAR, official_name VARCHAR) | SELECT census_ranking FROM table_176524_2 WHERE official_name = "Perth" |
What record label corresponds to the single "I can't stay"? | CREATE TABLE table_18710512_3 (record_label VARCHAR, single VARCHAR) | SELECT record_label FROM table_18710512_3 WHERE single = "I Can't Stay" |
how many district with candidates being eliot l. engel (d) 85.2% martin richman (r) 14.8% | CREATE TABLE table_1341549_33 (district VARCHAR, candidates VARCHAR) | SELECT COUNT(district) FROM table_1341549_33 WHERE candidates = "Eliot L. Engel (D) 85.2% Martin Richman (R) 14.8%" |
What is the lowest Draws, when Alianza Goals is less than 317, when U Goals is less than 3, and when Alianza Wins is less than 2? | CREATE TABLE table_name_3 (draws INTEGER, alianza_wins VARCHAR, alianza_goals VARCHAR, u_goals VARCHAR) | SELECT MIN(draws) FROM table_name_3 WHERE alianza_goals < 317 AND u_goals < 3 AND alianza_wins < 2 |
What denomination is mt lawley? | CREATE TABLE table_name_5 (denomination VARCHAR, location VARCHAR) | SELECT denomination FROM table_name_5 WHERE location = "mt lawley" |
Show the players and years played for players from team "Columbus Crew". | CREATE TABLE player (Player VARCHAR, Years_Played VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR) | SELECT T1.Player, T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew" |
How many floors does the Custom House Tower have? | CREATE TABLE table_name_95 (floors VARCHAR, name VARCHAR) | SELECT COUNT(floors) FROM table_name_95 WHERE name = "custom house tower" |
What is the record when the score was l 84–96 (ot)? | CREATE TABLE table_27723228_8 (record VARCHAR, score VARCHAR) | SELECT record FROM table_27723228_8 WHERE score = "L 84–96 (OT)" |
Who was the opponent in week 13? | CREATE TABLE table_name_25 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_25 WHERE week = 13 |
What club/province has 41 caps? | CREATE TABLE table_name_66 (club_province VARCHAR, caps VARCHAR) | SELECT club_province FROM table_name_66 WHERE caps = 41 |
What is the population for the Irish Name Leitir mealláin? | CREATE TABLE table_101196_1 (population VARCHAR, irish_name VARCHAR) | SELECT population FROM table_101196_1 WHERE irish_name = "Leitir Mealláin" |
What teams has a home of 5-0? | CREATE TABLE table_name_58 (teams VARCHAR, home VARCHAR) | SELECT teams FROM table_name_58 WHERE home = "5-0" |
What is the name of member in charge of greatest number of events? | CREATE TABLE party_events (member_in_charge_id VARCHAR); CREATE TABLE member (member_name VARCHAR, member_id VARCHAR) | SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY COUNT(*) DESC LIMIT 1 |
WHich Usual translation is on sep 23? | CREATE TABLE table_name_80 (usual_translation VARCHAR, date_³ VARCHAR) | SELECT usual_translation FROM table_name_80 WHERE date_³ = "sep 23" |
What was the date of game 81? | CREATE TABLE table_name_40 (date VARCHAR, game VARCHAR) | SELECT date FROM table_name_40 WHERE game = 81 |
Name the nationality for d | CREATE TABLE table_name_19 (nationality VARCHAR, position VARCHAR) | SELECT nationality FROM table_name_19 WHERE position = "d" |
Name the tries against for played 22 and points against of 183 | CREATE TABLE table_13564702_3 (tries_against VARCHAR, played VARCHAR, points_against VARCHAR) | SELECT tries_against FROM table_13564702_3 WHERE played = "22" AND points_against = "183" |
For the team with a class of gt2 and 3:59.820 on day 2, what was the behind? | CREATE TABLE table_name_26 (behind VARCHAR, class VARCHAR, day_2 VARCHAR) | SELECT behind FROM table_name_26 WHERE class = "gt2" AND day_2 = "3:59.820" |
How many seasons have motopark team? | CREATE TABLE table_23338693_1 (season VARCHAR, team VARCHAR) | SELECT COUNT(season) FROM table_23338693_1 WHERE team = "Motopark" |
Which time has a local/networked value of Local, ad frequency of every 20 minutes, and news frequency of n/a after 7PM news? | CREATE TABLE table_name_24 (time VARCHAR, news_freq VARCHAR, local_networked VARCHAR, ad_freq VARCHAR) | SELECT time FROM table_name_24 WHERE local_networked = "local" AND ad_freq = "20 minutes" AND news_freq = "n/a after 7pm news" |
What was the title for the episode with the production code 404a? | CREATE TABLE table_2701851_5 (title VARCHAR, production_code VARCHAR) | SELECT title FROM table_2701851_5 WHERE production_code = "404a" |
Which away team was at windy hill? | CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_30 WHERE venue = "windy hill" |
What is the weight of John-Michael Liles? | CREATE TABLE table_name_44 (weight__kg_ VARCHAR, name VARCHAR) | SELECT weight__kg_ FROM table_name_44 WHERE name = "john-michael liles" |
Tell me the eastern #2 for western #2 of oakland | CREATE TABLE table_name_23 (eastern__number2 VARCHAR, western__number2 VARCHAR) | SELECT eastern__number2 FROM table_name_23 WHERE western__number2 = "oakland" |
What is the 1st leg result when team 1 is Gambia? | CREATE TABLE table_name_10 (team_1 VARCHAR) | SELECT 1 AS st_leg FROM table_name_10 WHERE team_1 = "gambia" |
What is the ICAO for Denmark, and the IATA is bll? | CREATE TABLE table_name_7 (icao VARCHAR, country VARCHAR, iata VARCHAR) | SELECT icao FROM table_name_7 WHERE country = "denmark" AND iata = "bll" |
What is the weight(lbs) when born is april 6, 1954 detroit, mi? | CREATE TABLE table_1198175_1 (weight_lbs_ VARCHAR, born VARCHAR) | SELECT weight_lbs_ FROM table_1198175_1 WHERE born = "April 6, 1954 Detroit, MI" |
What party is Frank Lobiondo a member of? | CREATE TABLE table_1341453_32 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_1341453_32 WHERE incumbent = "Frank LoBiondo" |
What CFL team did Darcy Brown play for? | CREATE TABLE table_20170644_1 (cfl_team VARCHAR, player VARCHAR) | SELECT cfl_team FROM table_20170644_1 WHERE player = "Darcy Brown" |
Which party has a voting total greater than 4,478? | CREATE TABLE table_name_51 (party VARCHAR, votes INTEGER) | SELECT party FROM table_name_51 WHERE votes > 4 OFFSET 478 |
What was the outcome for Newcombe in the matches he played against Jan Kodeš? | CREATE TABLE table_23259077_1 (outcome VARCHAR, opponent_in_the_final VARCHAR) | SELECT outcome FROM table_23259077_1 WHERE opponent_in_the_final = "Jan Kodeš" |
Natural change of 42 689 has which lowest Crude birth rate (per 1000)? | CREATE TABLE table_name_49 (crude_birth_rate__per_1000_ INTEGER, natural_change VARCHAR) | SELECT MIN(crude_birth_rate__per_1000_) FROM table_name_49 WHERE natural_change = "42 689" |
Name the website for car number of 92 | CREATE TABLE table_1688640_4 (website VARCHAR, car__number VARCHAR) | SELECT website FROM table_1688640_4 WHERE car__number = "92" |
Name the Qual 2 of a Team of american spirit team johansson and a Best of 59.073? | CREATE TABLE table_name_15 (qual_2 VARCHAR, team VARCHAR, best VARCHAR) | SELECT qual_2 FROM table_name_15 WHERE team = "american spirit team johansson" AND best = "59.073" |
Which round was Robert Deciantis taken in? | CREATE TABLE table_name_43 (round VARCHAR, player VARCHAR) | SELECT round FROM table_name_43 WHERE player = "robert deciantis" |
Who did Clinton appoint as a Chief Judge? | CREATE TABLE table_name_2 (chief_judge VARCHAR, appointed_by VARCHAR) | SELECT chief_judge FROM table_name_2 WHERE appointed_by = "clinton" |
What position does the player from the Miami University (CCHA) club team play? | CREATE TABLE table_name_20 (position VARCHAR, club_team VARCHAR) | SELECT position FROM table_name_20 WHERE club_team = "miami university (ccha)" |
Name the course for 24 july | CREATE TABLE table_name_29 (course VARCHAR, date VARCHAR) | SELECT course FROM table_name_29 WHERE date = "24 july" |
What is the Outcome in the Malaysia Open with Partner Yoo Sang-Hee? | CREATE TABLE table_name_81 (outcome VARCHAR, partner VARCHAR, venue VARCHAR) | SELECT outcome FROM table_name_81 WHERE partner = "yoo sang-hee" AND venue = "malaysia open" |
What was the date of the match played at MCG? | CREATE TABLE table_name_86 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_86 WHERE venue = "mcg" |
Which Average is the lowest one that has a Total smaller than 134, and a Number of dances smaller than 3, and a Rank by average smaller than 12? | CREATE TABLE table_name_38 (average INTEGER, rank_by_average VARCHAR, total VARCHAR, number_of_dances VARCHAR) | SELECT MIN(average) FROM table_name_38 WHERE total < 134 AND number_of_dances < 3 AND rank_by_average < 12 |
What is every record for the team Boston? | CREATE TABLE table_23248869_10 (record VARCHAR, team VARCHAR) | SELECT record FROM table_23248869_10 WHERE team = "Boston" |
What is the Pressure in hPa (mbar), when Vacuum Range is "medium vacuum"? | CREATE TABLE table_name_69 (pressure_in_hpa__mbar_ VARCHAR, vacuum_range VARCHAR) | SELECT pressure_in_hpa__mbar_ FROM table_name_69 WHERE vacuum_range = "medium vacuum" |
What's the Serie A when the coppa italia was 5? | CREATE TABLE table_name_79 (serie_a INTEGER, coppa_italia VARCHAR) | SELECT AVG(serie_a) FROM table_name_79 WHERE coppa_italia = 5 |
What is the group name when 3yo hcp restricted maiden was raced? | CREATE TABLE table_14981555_1 (group VARCHAR, race VARCHAR) | SELECT group FROM table_14981555_1 WHERE race = "3yo Hcp Restricted Maiden" |
Which League has a Venue of martin luther king, jr. recreation center? | CREATE TABLE table_name_95 (league VARCHAR, venue VARCHAR) | SELECT league FROM table_name_95 WHERE venue = "martin luther king, jr. recreation center" |
What team was the winner when the runner-up shows both teams awarded championship after a draw.? | CREATE TABLE table_name_26 (winner VARCHAR, runner_up VARCHAR) | SELECT winner FROM table_name_26 WHERE runner_up = "both teams awarded championship after a draw." |
What was the issued serial for yellow on blue design issued in 1955? | CREATE TABLE table_name_39 (serials_issued VARCHAR, design VARCHAR, issued VARCHAR) | SELECT serials_issued FROM table_name_39 WHERE design = "yellow on blue" AND issued = 1955 |
Which Throws have a Position of 3b/rhp? | CREATE TABLE table_name_1 (throws VARCHAR, position VARCHAR) | SELECT throws FROM table_name_1 WHERE position = "3b/rhp" |
What is the size of the biggest crowd for a game where Fitzroy was the away team? | CREATE TABLE table_name_29 (crowd INTEGER, away_team VARCHAR) | SELECT MAX(crowd) FROM table_name_29 WHERE away_team = "fitzroy" |
How many entries for district home are listed for the 87th congress? | CREATE TABLE table_2841865_2 (district_home VARCHAR, congress VARCHAR) | SELECT COUNT(district_home) FROM table_2841865_2 WHERE congress = "87th" |
What is the record of the game on February 21, 2008? | CREATE TABLE table_name_60 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_60 WHERE date = "february 21, 2008" |
What is the normal 2002 that has a Country of Peru, and 2007 bigger than 1,200? | CREATE TABLE table_name_88 (country VARCHAR) | SELECT AVG(2002) FROM table_name_88 WHERE country = "peru" AND 2007 > 1 OFFSET 200 |
What is the total of Frequency MHz with a Class of b1? | CREATE TABLE table_name_99 (frequency_mhz INTEGER, class VARCHAR) | SELECT SUM(frequency_mhz) FROM table_name_99 WHERE class = "b1" |
In district North Carolina 10, what are the candidates? | CREATE TABLE table_2668336_17 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_2668336_17 WHERE district = "North Carolina 10" |
How many reserves are in Herzogtum Lauenburg with an area of 123,14? | CREATE TABLE table_26013618_1 (nsg_nr VARCHAR, district___town VARCHAR, area__ha_ VARCHAR) | SELECT COUNT(nsg_nr) FROM table_26013618_1 WHERE district___town = "Herzogtum Lauenburg" AND area__ha_ = "123,14" |
What is the nhl team for the position centre and nationality united states? | CREATE TABLE table_2679061_6 (nhl_team VARCHAR, position VARCHAR, nationality VARCHAR) | SELECT nhl_team FROM table_2679061_6 WHERE position = "Centre" AND nationality = "United States" |
Which district had Paul B. Dague as the incumbent? | CREATE TABLE table_1342149_38 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1342149_38 WHERE incumbent = "Paul B. Dague" |
When 24:31 is the run time how many measurements of viewers (in millions) are there? | CREATE TABLE table_2102945_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR) | SELECT COUNT(viewers__in_millions_) FROM table_2102945_1 WHERE run_time = "24:31" |
What were the records when the opponents had 50 points? | CREATE TABLE table_22862203_2 (record VARCHAR, opp_points VARCHAR) | SELECT record FROM table_22862203_2 WHERE opp_points = 50 |
What rank did rower have with the time of 6:52.74? | CREATE TABLE table_name_70 (rank INTEGER, time VARCHAR) | SELECT SUM(rank) FROM table_name_70 WHERE time = "6:52.74" |
What's the sum of the Pick that has the Position of Tackle, the Player Woody Adams, and a Round that's larger than 22? | CREATE TABLE table_name_69 (pick VARCHAR, round VARCHAR, position VARCHAR, player VARCHAR) | SELECT COUNT(pick) FROM table_name_69 WHERE position = "tackle" AND player = "woody adams" AND round > 22 |
What was the score of the golfer from the united states who had a To par of e? | CREATE TABLE table_name_96 (score INTEGER, to_par VARCHAR, country VARCHAR) | SELECT SUM(score) FROM table_name_96 WHERE to_par = "e" AND country = "united states" |
What are Andrew McNamara's colors? | CREATE TABLE table_20095300_1 (colours VARCHAR, jockey VARCHAR) | SELECT colours FROM table_20095300_1 WHERE jockey = "Andrew McNamara" |
There were 68 worcs f-c matches played on Chester Road North Ground. | CREATE TABLE table_1156428_2 (worcs_f_c_matches VARCHAR, name_of_ground VARCHAR) | SELECT worcs_f_c_matches FROM table_1156428_2 WHERE name_of_ground = "Chester Road North Ground" |
Which bubbles has an atribute of onlostpointercapture? | CREATE TABLE table_name_87 (bubbles VARCHAR, attribute VARCHAR) | SELECT bubbles FROM table_name_87 WHERE attribute = "onlostpointercapture" |
In what week was the away team Auckland? | CREATE TABLE table_name_92 (week VARCHAR, away_team VARCHAR) | SELECT week FROM table_name_92 WHERE away_team = "auckland" |
What location did Anke Huber win the championship? | CREATE TABLE table_name_68 (location VARCHAR, champion VARCHAR) | SELECT location FROM table_name_68 WHERE champion = "anke huber" |
What's the class of the HMS Heartsease? | CREATE TABLE table_name_75 (class VARCHAR, name VARCHAR) | SELECT class FROM table_name_75 WHERE name = "hms heartsease" |
What is the smallest number of seats in a vehicle currently retired and in quantities less than 8? | CREATE TABLE table_name_21 (number_of_seats INTEGER, current_status VARCHAR, quantity VARCHAR) | SELECT MIN(number_of_seats) FROM table_name_21 WHERE current_status = "retired" AND quantity < 8 |
What nation had a moving from of espanyol? | CREATE TABLE table_name_97 (nat VARCHAR, moving_from VARCHAR) | SELECT nat FROM table_name_97 WHERE moving_from = "espanyol" |
What was the pick number for Deji Karim, in a round lower than 6? | CREATE TABLE table_name_66 (pick__number INTEGER, name VARCHAR, round VARCHAR) | SELECT AVG(pick__number) FROM table_name_66 WHERE name = "deji karim" AND round < 6 |
In what year had the oldest winner? | CREATE TABLE table_name_13 (year VARCHAR, superlative VARCHAR) | SELECT year FROM table_name_13 WHERE superlative = "oldest winner" |
What was built in a class with less than 10, and the Downer Rail owner? | CREATE TABLE table_name_58 (built VARCHAR, number_in_class VARCHAR, owner VARCHAR) | SELECT built FROM table_name_58 WHERE number_in_class < 10 AND owner = "downer rail" |
Which season has the Werder Bremen Club and is in Round 2r? | CREATE TABLE table_name_50 (season VARCHAR, club VARCHAR, round VARCHAR) | SELECT season FROM table_name_50 WHERE club = "werder bremen" AND round = "2r" |
Can you tell me the total number of Season that has the Team 2 of chonburi, and the Score of 0:1? | CREATE TABLE table_name_27 (season VARCHAR, team_2 VARCHAR, score VARCHAR) | SELECT COUNT(season) FROM table_name_27 WHERE team_2 = "chonburi" AND score = "0:1" |
How many players came from college team reipas lahti (finland)? | CREATE TABLE table_2840500_4 (player VARCHAR, college_junior_club_team VARCHAR) | SELECT COUNT(player) FROM table_2840500_4 WHERE college_junior_club_team = "Reipas Lahti (Finland)" |
Which company was based in London, United Kingdom? | CREATE TABLE table_15438337_1 (institution VARCHAR, country VARCHAR) | SELECT institution FROM table_15438337_1 WHERE country = "London, United Kingdom" |
What's the score of Game 5? | CREATE TABLE table_name_79 (score VARCHAR, game VARCHAR) | SELECT score FROM table_name_79 WHERE game = "5" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.