question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
What's the CR number that has an LMS number less than 14761 and works of Hawthorn Leslie 3100? | CREATE TABLE table_name_23 (cr_no INTEGER, works VARCHAR, lms_no VARCHAR) | SELECT AVG(cr_no) FROM table_name_23 WHERE works = "hawthorn leslie 3100" AND lms_no < 14761 |
How many holes did Mike Reid from United States have? | CREATE TABLE table_name_75 (hole VARCHAR, country VARCHAR, player VARCHAR) | SELECT hole FROM table_name_75 WHERE country = "united states" AND player = "mike reid" |
What Reimboldsh has Willingshain of 268 and Gersdorf 194? | CREATE TABLE table_name_24 (reimboldsh VARCHAR, willingshain VARCHAR, gersdorf VARCHAR) | SELECT reimboldsh FROM table_name_24 WHERE willingshain = "268" AND gersdorf = "194" |
What is the value in 2008-09 for the Autumn Gold event? | CREATE TABLE table_name_9 (event VARCHAR) | SELECT 2008 AS _09 FROM table_name_9 WHERE event = "autumn gold" |
What Player has a To par less than 15 and a Total of 149? | CREATE TABLE table_name_21 (player VARCHAR, to_par VARCHAR, total VARCHAR) | SELECT player FROM table_name_21 WHERE to_par < 15 AND total = 149 |
Find the name of physicians who are in charge of more than one patient. | CREATE TABLE patient (PCP VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR) | SELECT T1.name FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid HAVING COUNT(*) > 1 |
What is the highest overall number one(s)? | CREATE TABLE table_19542477_8 (number_one_s_ INTEGER) | SELECT MAX(number_one_s_) FROM table_19542477_8 |
How many values of hosted have a highest value of 42659? | CREATE TABLE table_2472711_32 (hosted VARCHAR, highest VARCHAR) | SELECT COUNT(hosted) FROM table_2472711_32 WHERE highest = 42659 |
What is the lost number for the team with 2 drawn games, and 572 points against? | CREATE TABLE table_name_58 (lost VARCHAR, drawn VARCHAR, points_against VARCHAR) | SELECT lost FROM table_name_58 WHERE drawn = "2" AND points_against = "572" |
How many entries are listed for party during the 69th congress? | CREATE TABLE table_2841865_2 (party VARCHAR, congress VARCHAR) | SELECT COUNT(party) FROM table_2841865_2 WHERE congress = "69th" |
What is the size of the smallest crowd that watched a game at Arden Street Oval? | CREATE TABLE table_name_32 (crowd INTEGER, venue VARCHAR) | SELECT MIN(crowd) FROM table_name_32 WHERE venue = "arden street oval" |
What is the epa highway fuel economy for an electric suv? | CREATE TABLE table_20549371_3 (epa_rated_highway_fuel_economy VARCHAR, type_of_powertrain VARCHAR) | SELECT epa_rated_highway_fuel_economy FROM table_20549371_3 WHERE type_of_powertrain = "Electric SUV" |
What is the depth at the UTC time of 12:19:36? | CREATE TABLE table_26950408_1 (depth VARCHAR, time___utc__ VARCHAR) | SELECT depth FROM table_26950408_1 WHERE time___utc__ = "12:19:36" |
Find the number of projects which each scientist is working on and scientist's name. | CREATE TABLE scientists (name VARCHAR, ssn VARCHAR); CREATE TABLE assignedto (scientist VARCHAR) | SELECT COUNT(*), T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn = T2.scientist GROUP BY T1.name |
what is the location attendance when the series is 4-3? | CREATE TABLE table_name_38 (location_attendance VARCHAR, series VARCHAR) | SELECT location_attendance FROM table_name_38 WHERE series = "4-3" |
Which forward player has the number 22? | CREATE TABLE table_11545282_10 (player VARCHAR, no VARCHAR, position VARCHAR) | SELECT player FROM table_11545282_10 WHERE no = "22" AND position = "Forward" |
Name the least podiums for 9th position | CREATE TABLE table_25375093_1 (podiums INTEGER, position VARCHAR) | SELECT MIN(podiums) FROM table_25375093_1 WHERE position = "9th" |
How many laps did John Love have on a grid less than 11? | CREATE TABLE table_name_18 (laps VARCHAR, grid VARCHAR, driver VARCHAR) | SELECT laps FROM table_name_18 WHERE grid < 11 AND driver = "john love" |
How many customers do we have? | CREATE TABLE CUSTOMERS (Id VARCHAR) | SELECT COUNT(*) FROM CUSTOMERS |
The Eyserweg race was which race #? | CREATE TABLE table_1749567_2 (number INTEGER, name VARCHAR) | SELECT MAX(number) FROM table_1749567_2 WHERE name = "Eyserweg" |
How many totals have a Premier League smaller than 6, and a League Cup larger than 0? | CREATE TABLE table_name_9 (total INTEGER, premier_league VARCHAR, league_cup VARCHAR) | SELECT SUM(total) FROM table_name_9 WHERE premier_league < 6 AND league_cup > 0 |
Which award took place after 2009? | CREATE TABLE table_name_88 (award VARCHAR, year INTEGER) | SELECT award FROM table_name_88 WHERE year > 2009 |
What is the largest attendance at Memorial Stadium on December 12, 1965? | CREATE TABLE table_name_51 (attendance INTEGER, game_site VARCHAR, date VARCHAR) | SELECT MAX(attendance) FROM table_name_51 WHERE game_site = "memorial stadium" AND date = "december 12, 1965" |
What is Outgoing Manager, when Date of Vacancy is "25 September 2008"? | CREATE TABLE table_name_77 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR) | SELECT outgoing_manager FROM table_name_77 WHERE date_of_vacancy = "25 september 2008" |
Which country is the nnamdi azikiwe international airport in? | CREATE TABLE table_name_73 (country VARCHAR, airport VARCHAR) | SELECT country FROM table_name_73 WHERE airport = "nnamdi azikiwe international airport" |
Who is the player from the 1971 draft with a pick greater than 7? | CREATE TABLE table_name_15 (player VARCHAR, draft VARCHAR, pick VARCHAR) | SELECT player FROM table_name_15 WHERE draft = 1971 AND pick > 7 |
How much Ekstraklasa has a Total smaller than 3? | CREATE TABLE table_name_98 (ekstraklasa INTEGER, total INTEGER) | SELECT SUM(ekstraklasa) FROM table_name_98 WHERE total < 3 |
What is the smallest amount of matches? | CREATE TABLE table_27268238_4 (matches INTEGER) | SELECT MIN(matches) FROM table_27268238_4 |
Which serials were issued with a design of black on yellow? | CREATE TABLE table_name_78 (serials_issued VARCHAR, design VARCHAR) | SELECT serials_issued FROM table_name_78 WHERE design = "black on yellow" |
Which Points have a Game smaller than 70, and a Score of 4–8? | CREATE TABLE table_name_85 (points INTEGER, game VARCHAR, score VARCHAR) | SELECT MIN(points) FROM table_name_85 WHERE game < 70 AND score = "4–8" |
Find the id and surname of the driver who participated the most number of races? | CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR) | SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1 |
What is the goal difference where the goals against is less than 54, goals for is greater than 51 and points 1 is 63? | CREATE TABLE table_name_29 (goal_difference VARCHAR, points_1 VARCHAR, goals_against VARCHAR, goals_for VARCHAR) | SELECT goal_difference FROM table_name_29 WHERE goals_against < 54 AND goals_for > 51 AND points_1 = "63" |
Where was the Singapore Charity Shield tournament played? | CREATE TABLE table_name_8 (location VARCHAR, tournament VARCHAR) | SELECT location FROM table_name_8 WHERE tournament = "singapore charity shield" |
List all club names in ascending order of start year. | CREATE TABLE club (name VARCHAR, Start_year VARCHAR) | SELECT name FROM club ORDER BY Start_year |
What is the extortion and theft rates where the United Nations Observer Mission Uganda-Rwanda is active? | CREATE TABLE table_15652027_1 (extortion_theft_3 VARCHAR, united_nations_mission VARCHAR) | SELECT extortion_theft_3 FROM table_15652027_1 WHERE united_nations_mission = "United Nations Observer Mission Uganda-Rwanda" |
Which Competition has a Score of 2-0? | CREATE TABLE table_name_7 (competition VARCHAR, score VARCHAR) | SELECT competition FROM table_name_7 WHERE score = "2-0" |
What is the name/designation for the 1200kg payload? | CREATE TABLE table_name_81 (name_designation VARCHAR, payload VARCHAR) | SELECT name_designation FROM table_name_81 WHERE payload = "1200kg" |
Which date has an Opera usage percentage of 5.1% and Internet Explorer usage of 59.5%? | CREATE TABLE table_name_64 (date VARCHAR, opera VARCHAR, internet_explorer VARCHAR) | SELECT date FROM table_name_64 WHERE opera = "5.1%" AND internet_explorer = "59.5%" |
What is the lowest number of cuts made when her best finish is t4? | CREATE TABLE table_14853156_2 (cuts_made INTEGER, best_finish VARCHAR) | SELECT MIN(cuts_made) FROM table_14853156_2 WHERE best_finish = "T4" |
How many seats does the BTC-5 model have? | CREATE TABLE table_name_57 (seats INTEGER, model VARCHAR) | SELECT SUM(seats) FROM table_name_57 WHERE model = "btc-5" |
How many Liquidat (c) have a purpose of dual (machine & hand composition)? | CREATE TABLE table_name_94 (liquidat__ VARCHAR, purpose VARCHAR) | SELECT COUNT(liquidat__) AS °c_ FROM table_name_94 WHERE purpose = "dual (machine & hand composition)" |
How many rounds were won with James Hunt as pole position and John Watson as fastest lap? | CREATE TABLE table_1140083_2 (rnd VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR) | SELECT COUNT(rnd) FROM table_1140083_2 WHERE pole_position = "James Hunt" AND fastest_lap = "John Watson" |
Name the most 10 3 bbl/d (2008) for present share being 1.7% | CREATE TABLE table_23195_5 (present_share VARCHAR) | SELECT MAX(10 AS _3_bbl_d__2008_) FROM table_23195_5 WHERE present_share = "1.7%" |
When did Masthead Studios release their game? | CREATE TABLE table_name_98 (release_date VARCHAR, developer_s_ VARCHAR) | SELECT release_date FROM table_name_98 WHERE developer_s_ = "masthead studios" |
What country was Jay Haas representing? | CREATE TABLE table_name_77 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_77 WHERE player = "jay haas" |
What is Club, when Drawn is "0", and when Try Bonus is "5"? | CREATE TABLE table_name_9 (club VARCHAR, drawn VARCHAR, try_bonus VARCHAR) | SELECT club FROM table_name_9 WHERE drawn = "0" AND try_bonus = "5" |
Name the candidates for pennsylvania 14 | CREATE TABLE table_2668347_17 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_2668347_17 WHERE district = "Pennsylvania 14" |
What was Freddie Starr, who entered on Day 1, known for? | CREATE TABLE table_name_67 (known_for VARCHAR, entered VARCHAR, celebrity VARCHAR) | SELECT known_for FROM table_name_67 WHERE entered = "day 1" AND celebrity = "freddie starr" |
What is the total number of Wins, when Losses is "6", and when Draws is greater than "0"? | CREATE TABLE table_name_70 (wins VARCHAR, losses VARCHAR, draws VARCHAR) | SELECT COUNT(wins) FROM table_name_70 WHERE losses = 6 AND draws > 0 |
What was the location and attendance when the team's record was 16-44? | CREATE TABLE table_13464416_8 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_13464416_8 WHERE record = "16-44" |
Which Venue has a Club of west bromwich albion? | CREATE TABLE table_name_99 (venue VARCHAR, club VARCHAR) | SELECT venue FROM table_name_99 WHERE club = "west bromwich albion" |
How many wins had 58 goals scored? | CREATE TABLE table_18018248_2 (wins VARCHAR, goals_scored VARCHAR) | SELECT wins FROM table_18018248_2 WHERE goals_scored = 58 |
What is the highest salary among each team? List the team name, id and maximum salary. | CREATE TABLE salary (salary INTEGER, team_id VARCHAR); CREATE TABLE team (name VARCHAR, team_id VARCHAR) | SELECT T1.name, T1.team_id, MAX(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id |
What are the title and director of the films without any schedule? | CREATE TABLE schedule (title VARCHAR, directed_by VARCHAR, film_id VARCHAR); CREATE TABLE film (title VARCHAR, directed_by VARCHAR, film_id VARCHAR) | SELECT title, directed_by FROM film WHERE NOT film_id IN (SELECT film_id FROM schedule) |
How many draft picks are there at the Defensive End position? | CREATE TABLE table_16729063_1 (pick__number VARCHAR, position VARCHAR) | SELECT COUNT(pick__number) FROM table_16729063_1 WHERE position = "Defensive End" |
What is the series number for the episode written by Kristen Dunphy and David Ogilvy? | CREATE TABLE table_19517621_3 (series__number INTEGER, written_by VARCHAR) | SELECT MAX(series__number) FROM table_19517621_3 WHERE written_by = "Kristen Dunphy and David Ogilvy" |
What was the latest year that the Atlanta Braves won and the St. Louis Cardinals lost? | CREATE TABLE table_name_70 (year INTEGER, winning_team VARCHAR, losing_team VARCHAR) | SELECT MAX(year) FROM table_name_70 WHERE winning_team = "atlanta braves" AND losing_team = "st. louis cardinals" |
what's the game with date being march 7 | CREATE TABLE table_13557843_7 (game VARCHAR, date VARCHAR) | SELECT game FROM table_13557843_7 WHERE date = "March 7" |
Name the record for august 31 | CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_65 WHERE date = "august 31" |
Who was the opponent when they played at the legion field • birmingham, al site? | CREATE TABLE table_name_7 (opponent VARCHAR, site VARCHAR) | SELECT opponent FROM table_name_7 WHERE site = "legion field • birmingham, al" |
In which venue did he place 3rd in the World Race Walking Cup? | CREATE TABLE table_name_7 (venue VARCHAR, competition VARCHAR, position VARCHAR) | SELECT venue FROM table_name_7 WHERE competition = "world race walking cup" AND position = "3rd" |
what is the minimum pos with clubs being 16 | CREATE TABLE table_14460937_2 (pos INTEGER, clubs VARCHAR) | SELECT MIN(pos) FROM table_14460937_2 WHERE clubs = "16" |
What is the stadium for the city of Braga? | CREATE TABLE table_name_88 (stadium VARCHAR, city VARCHAR) | SELECT stadium FROM table_name_88 WHERE city = "braga" |
what is the position when the round is higher than 3, the nationality is united states and the player is nick pryor? | CREATE TABLE table_name_13 (position VARCHAR, player VARCHAR, round VARCHAR, nationality VARCHAR) | SELECT position FROM table_name_13 WHERE round > 3 AND nationality = "united states" AND player = "nick pryor" |
What is the nationality of the Team Georgia Tech? | CREATE TABLE table_name_47 (nationality VARCHAR, school_club_team VARCHAR) | SELECT nationality FROM table_name_47 WHERE school_club_team = "georgia tech" |
Which Lost has Drawn larger than 1, and a Played larger than 14? | CREATE TABLE table_name_30 (lost INTEGER, drawn VARCHAR, played VARCHAR) | SELECT MIN(lost) FROM table_name_30 WHERE drawn > 1 AND played > 14 |
What is the average number of people injured by all perpetrators? | CREATE TABLE perpetrator (Injured INTEGER) | SELECT AVG(Injured) FROM perpetrator |
What country did ekaterina karsten row for with fa listed under notes? | CREATE TABLE table_name_70 (country VARCHAR, notes VARCHAR, athlete VARCHAR) | SELECT country FROM table_name_70 WHERE notes = "fa" AND athlete = "ekaterina karsten" |
What is the name before 1954 with more than 15 floors? | CREATE TABLE table_name_61 (name VARCHAR, year VARCHAR, floors VARCHAR) | SELECT name FROM table_name_61 WHERE year < 1954 AND floors > 15 |
Name the starts for 2009 | CREATE TABLE table_2725949_6 (starts VARCHAR, season VARCHAR) | SELECT starts FROM table_2725949_6 WHERE season = 2009 |
How many stadiums does each country have? | CREATE TABLE stadium (country VARCHAR) | SELECT country, COUNT(*) FROM stadium GROUP BY country |
How many games did they play when their record 0-2-0? | CREATE TABLE table_21058823_1 (date VARCHAR, record VARCHAR) | SELECT COUNT(date) FROM table_21058823_1 WHERE record = "0-2-0" |
Which Right ascension (J2000) has a Constellation of mensa, and an NGC number larger than 2171? | CREATE TABLE table_name_98 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR) | SELECT right_ascension___j2000__ FROM table_name_98 WHERE constellation = "mensa" AND ngc_number > 2171 |
What was the sail number of Two True? | CREATE TABLE table_25561560_3 (sail_number VARCHAR, yacht VARCHAR) | SELECT sail_number FROM table_25561560_3 WHERE yacht = "Two True" |
I want the condition that has a partial thromboplastin time of prolonged and unaffected bleeding time | CREATE TABLE table_name_41 (condition VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR) | SELECT condition FROM table_name_41 WHERE partial_thromboplastin_time = "prolonged" AND bleeding_time = "unaffected" |
Who was the runner-up in the Michelob Light Open at Kingsmill? | CREATE TABLE table_name_93 (runner_s__up VARCHAR, tournament VARCHAR) | SELECT runner_s__up FROM table_name_93 WHERE tournament = "michelob light open at kingsmill" |
what is the average starts when the podiums is more than 0, stage wins is more than 39 and points is more than 456? | CREATE TABLE table_name_35 (starts INTEGER, points VARCHAR, podiums VARCHAR, stage_wins VARCHAR) | SELECT AVG(starts) FROM table_name_35 WHERE podiums > 0 AND stage_wins > 39 AND points > 456 |
What is the mountains classification when stage is 17? | CREATE TABLE table_name_60 (mountains_classification VARCHAR, stage VARCHAR) | SELECT mountains_classification FROM table_name_60 WHERE stage = "17" |
What year did the term end for those elected in 1990 | CREATE TABLE table_1602620_1 (term_ended VARCHAR, elected VARCHAR) | SELECT term_ended FROM table_1602620_1 WHERE elected = 1990 |
How many players are listed for the school/club team Washington? | CREATE TABLE table_15463188_17 (name VARCHAR, school_club_team VARCHAR) | SELECT COUNT(name) FROM table_15463188_17 WHERE school_club_team = "Washington" |
What show was played on ABC laster after 2002? | CREATE TABLE table_name_15 (show VARCHAR, network__last_aired_ VARCHAR, last_aired VARCHAR) | SELECT show FROM table_name_15 WHERE network__last_aired_ = "abc" AND last_aired > 2002 |
What is the highest rank in Uzbekistan with a time larger than 11.44? | CREATE TABLE table_name_38 (rank INTEGER, country VARCHAR, time VARCHAR) | SELECT MAX(rank) FROM table_name_38 WHERE country = "uzbekistan" AND time > 11.44 |
What is the engine configuration of the 1.2 mpi engine? | CREATE TABLE table_name_80 (engine_configuration VARCHAR, engine_name VARCHAR) | SELECT engine_configuration FROM table_name_80 WHERE engine_name = "1.2 mpi" |
Find the country that has the most stadiums. | CREATE TABLE stadium (country VARCHAR) | SELECT country FROM stadium GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1 |
On what date was game 2 played? | CREATE TABLE table_name_98 (date VARCHAR, game VARCHAR) | SELECT date FROM table_name_98 WHERE game = "game 2" |
What is the number of silver when bronze is less than 0? | CREATE TABLE table_name_10 (silver VARCHAR, bronze INTEGER) | SELECT COUNT(silver) FROM table_name_10 WHERE bronze < 0 |
Which Rank has a Country of costa rica, and a Losing Semi- finalist larger than 1? | CREATE TABLE table_name_78 (rank INTEGER, country VARCHAR, losing_semi__finalist VARCHAR) | SELECT AVG(rank) FROM table_name_78 WHERE country = "costa rica" AND losing_semi__finalist > 1 |
What year was there a nomination for Best Actress at the Kids' Choice Awards Argentina? | CREATE TABLE table_name_36 (year VARCHAR, award VARCHAR, category VARCHAR) | SELECT year FROM table_name_36 WHERE award = "kids' choice awards argentina" AND category = "best actress" |
What is the home team score where the home team is Fremantle? | CREATE TABLE table_16388478_4 (home_team VARCHAR) | SELECT home_team AS score FROM table_16388478_4 WHERE home_team = "Fremantle" |
Show all company names and headquarters in the descending order of market value. | CREATE TABLE company (company VARCHAR, headquarters VARCHAR, market_value VARCHAR) | SELECT company, headquarters FROM company ORDER BY market_value DESC |
What is the total time of the vehicle having a navigator of Vandenberg? | CREATE TABLE table_name_79 (total_time VARCHAR, navigator VARCHAR) | SELECT total_time FROM table_name_79 WHERE navigator = "vandenberg" |
Show all distinct product categories along with the number of mailshots in each category. | CREATE TABLE mailshot_campaigns (product_category VARCHAR) | SELECT product_category, COUNT(*) FROM mailshot_campaigns GROUP BY product_category |
If the Position is Running Back what is the Total number of Pick #? | CREATE TABLE table_name_84 (pick__number VARCHAR, position VARCHAR) | SELECT COUNT(pick__number) FROM table_name_84 WHERE position = "running back" |
What date did they play agains the New York Rangers? | CREATE TABLE table_23308178_4 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_23308178_4 WHERE opponent = "New York Rangers" |
where is the private/presbyterian institute | CREATE TABLE table_1974632_1 (location VARCHAR, type VARCHAR) | SELECT location FROM table_1974632_1 WHERE type = "Private/Presbyterian" |
Who is h.t. brewer when je armstrong is c.p. greeks? | CREATE TABLE table_1320857_1 (ht_brewer VARCHAR, je_armstrong VARCHAR) | SELECT ht_brewer FROM table_1320857_1 WHERE je_armstrong = "C.P. Greeks" |
How many times was performer 3 Kate Robbins? | CREATE TABLE table_14934885_1 (date VARCHAR, performer_3 VARCHAR) | SELECT COUNT(date) FROM table_14934885_1 WHERE performer_3 = "Kate Robbins" |
What is the score for the November 3 game? | CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_10 WHERE date = "november 3" |
What was the flyers' record when the visitors were florida? | CREATE TABLE table_name_63 (record VARCHAR, visitor VARCHAR) | SELECT record FROM table_name_63 WHERE visitor = "florida" |
Which Pick has a Player of renaldo wynn, and a Round smaller than 1? | CREATE TABLE table_name_17 (pick VARCHAR, player VARCHAR, round VARCHAR) | SELECT COUNT(pick) FROM table_name_17 WHERE player = "renaldo wynn" AND round < 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.