instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What kind of locomotive is Winston Churchill? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (locomotive_type VARCHAR, name VARCHAR) | SELECT locomotive_type FROM table_name_93 WHERE name = "winston churchill" |
Write a SQL query that answers the following question: How many draws were there when there were points less than 23, 6 losses, and more than 21 against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (drawn VARCHAR, against VARCHAR, points VARCHAR, lost VARCHAR) | SELECT COUNT(drawn) FROM table_name_49 WHERE points < 23 AND lost = 6 AND against > 21 |
Write a SQL query that answers the following question: What is the smallest amount of draws when the position is less than 7 and the against is 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (drawn INTEGER, position VARCHAR, against VARCHAR) | SELECT MIN(drawn) FROM table_name_38 WHERE position < 7 AND against = 19 |
Write a SQL query that answers the following question: What is the highest amount of plays for fluminense? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (played INTEGER, team VARCHAR) | SELECT MAX(played) FROM table_name_97 WHERE team = "fluminense" |
Write a SQL query that answers the following question: What is the least amount of points when there were less than 4 losses and less than 16 against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (points INTEGER, lost VARCHAR, against VARCHAR) | SELECT MIN(points) FROM table_name_43 WHERE lost < 4 AND against < 16 |
Write a SQL query that answers the following question: Who does Rockstar Games use as a developer? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (developer VARCHAR, publisher VARCHAR) | SELECT developer FROM table_name_97 WHERE publisher = "rockstar games" |
Write a SQL query that answers the following question: When Did Microsoft Game Studios release Amped: Freestyle Snowboarding? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (release_date VARCHAR, publisher VARCHAR, title VARCHAR) | SELECT release_date FROM table_name_18 WHERE publisher = "microsoft game studios" AND title = "amped: freestyle snowboarding" |
Write a SQL query that answers the following question: Which Score has a Home of quebec nordiques, and a Visitor of vancouver blazers on february 28? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR) | SELECT score FROM table_name_52 WHERE home = "quebec nordiques" AND visitor = "vancouver blazers" AND date = "february 28" |
Write a SQL query that answers the following question: When has a Visitor of new england whalers, and a Record of 9β9β1? Question 2 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (date VARCHAR, visitor VARCHAR, record VARCHAR) | SELECT date FROM table_name_5 WHERE visitor = "new england whalers" AND record = "9β9β1" |
Write a SQL query that answers the following question: Which Home has a Visitor of quebec nordiques, and a Score of 3β4, and a Record of 8β8β1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (home VARCHAR, record VARCHAR, visitor VARCHAR, score VARCHAR) | SELECT home FROM table_name_62 WHERE visitor = "quebec nordiques" AND score = "3β4" AND record = "8β8β1" |
Write a SQL query that answers the following question: WHich Score has a Record of 31β28β3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_16 WHERE record = "31β28β3" |
Write a SQL query that answers the following question: When has Score of 4β5, and a Record of 21β21β3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (date VARCHAR, score VARCHAR, record VARCHAR) | SELECT date FROM table_name_94 WHERE score = "4β5" AND record = "21β21β3" |
Write a SQL query that answers the following question: What is the Score of a Record 24β23β3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_69 WHERE record = "24β23β3" |
Write a SQL query that answers the following question: During which games did Tunisia win gold in the men's 5000 m? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (games VARCHAR, event VARCHAR, medal VARCHAR) | SELECT games FROM table_name_24 WHERE event = "men's 5000 m" AND medal = "gold" |
Write a SQL query that answers the following question: What medal was won in the men's light welterweight event at the 1996 Atlanta games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (medal VARCHAR, event VARCHAR, games VARCHAR) | SELECT medal FROM table_name_68 WHERE event = "men's light welterweight" AND games = "1996 atlanta" |
Write a SQL query that answers the following question: At which games did Tunisia win a bronze in the men's 1500 m freestyle? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (games VARCHAR, medal VARCHAR, event VARCHAR) | SELECT games FROM table_name_59 WHERE medal = "bronze" AND event = "men's 1500 m freestyle" |
Write a SQL query that answers the following question: What medal was won in the men's 5000 m event? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (medal VARCHAR, event VARCHAR) | SELECT medal FROM table_name_53 WHERE event = "men's 5000 m" |
Write a SQL query that answers the following question: What is the draw with less than 107 points by the artist Jan Johansen? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (draw VARCHAR, artist VARCHAR, points VARCHAR) | SELECT COUNT(draw) FROM table_name_9 WHERE artist = "jan johansen" AND points < 107 |
Write a SQL query that answers the following question: In what Year did the Norton Team have 0 Points and 350cc Class? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (year INTEGER, points VARCHAR, class VARCHAR, team VARCHAR) | SELECT AVG(year) FROM table_name_81 WHERE class = "350cc" AND team = "norton" AND points < 0 |
Write a SQL query that answers the following question: What is the Wins before 1960 with less than 2 Points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (wins INTEGER, year VARCHAR, points VARCHAR) | SELECT SUM(wins) FROM table_name_47 WHERE year < 1960 AND points < 2 |
Write a SQL query that answers the following question: What was the earliest Year the Linto Team had less than 15 Points with more than 0 Wins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (year INTEGER, points VARCHAR, wins VARCHAR, team VARCHAR) | SELECT MIN(year) FROM table_name_86 WHERE wins > 0 AND team = "linto" AND points < 15 |
Write a SQL query that answers the following question: What were the points for a team that 414 points against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (points_for VARCHAR, points_against VARCHAR) | SELECT points_for FROM table_name_52 WHERE points_against = "414" |
Write a SQL query that answers the following question: Who was the player that had drawn 1 and tried for 20? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (played VARCHAR, drawn VARCHAR, tries_for VARCHAR) | SELECT played FROM table_name_76 WHERE drawn = "1" AND tries_for = "20" |
Write a SQL query that answers the following question: What were the points for that had a game where there was 678 against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (points_for VARCHAR, points_against VARCHAR) | SELECT points_for FROM table_name_78 WHERE points_against = "678" |
Write a SQL query that answers the following question: What were the points against in a game that was played correct as of 2009-05-16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (points_against VARCHAR, played VARCHAR) | SELECT points_against FROM table_name_99 WHERE played = "correct as of 2009-05-16" |
Write a SQL query that answers the following question: What was the tries again llanishen rfc? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (tries_against VARCHAR, club VARCHAR) | SELECT tries_against FROM table_name_35 WHERE club = "llanishen rfc" |
Write a SQL query that answers the following question: What was drawn for llanishen rfc? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (drawn VARCHAR, club VARCHAR) | SELECT drawn FROM table_name_56 WHERE club = "llanishen rfc" |
Write a SQL query that answers the following question: Which District has a Republican of dan mansell? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (district INTEGER, republican VARCHAR) | SELECT AVG(district) FROM table_name_25 WHERE republican = "dan mansell" |
Write a SQL query that answers the following question: Which Republican has a District of 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (republican VARCHAR, district VARCHAR) | SELECT republican FROM table_name_26 WHERE district = 10 |
Write a SQL query that answers the following question: Which Incumbent has a Republican of dan mansell? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (incumbent VARCHAR, republican VARCHAR) | SELECT incumbent FROM table_name_73 WHERE republican = "dan mansell" |
Write a SQL query that answers the following question: Which Democratic has a District smaller than 7, and a Republican of dan mansell? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (democratic VARCHAR, district VARCHAR, republican VARCHAR) | SELECT democratic FROM table_name_99 WHERE district < 7 AND republican = "dan mansell" |
Write a SQL query that answers the following question: Which record has a score of 135β134? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (record VARCHAR, score VARCHAR) | SELECT record FROM table_name_7 WHERE score = "135β134" |
Write a SQL query that answers the following question: Name the position for the player born 2 november 1987 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (position VARCHAR, date_of_birth__age_ VARCHAR) | SELECT position FROM table_name_80 WHERE date_of_birth__age_ = "2 november 1987" |
Write a SQL query that answers the following question: Name the club/province for steve borthwick | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (club_province VARCHAR, player VARCHAR) | SELECT club_province FROM table_name_51 WHERE player = "steve borthwick" |
Write a SQL query that answers the following question: What is the largest ration with an ordinary value of 84 zolotnik? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (ratio INTEGER, ordinary_value VARCHAR) | SELECT MAX(ratio) FROM table_name_85 WHERE ordinary_value = "84 zolotnik" |
Write a SQL query that answers the following question: What unit has an Avoirdupois value of 57.602 gr.? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (unit VARCHAR, avoirdupois_value VARCHAR) | SELECT unit FROM table_name_9 WHERE avoirdupois_value = "57.602 gr." |
Write a SQL query that answers the following question: Which translation had a unit of Uncia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (translation VARCHAR, unit VARCHAR) | SELECT translation FROM table_name_10 WHERE unit = "uncia" |
Write a SQL query that answers the following question: What ordinary value has a metric value of 29.861 g? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (ordinary_value VARCHAR, metric_value VARCHAR) | SELECT ordinary_value FROM table_name_56 WHERE metric_value = "29.861 g" |
Write a SQL query that answers the following question: Which ordinary value has a Russian value of ΡΠ½ΡΠΈΡ? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (ordinary_value VARCHAR, russian VARCHAR) | SELECT ordinary_value FROM table_name_64 WHERE russian = "ΡΠ½ΡΠΈΡ" |
Write a SQL query that answers the following question: Which Avoirdupois value is translated to grain? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (avoirdupois_value VARCHAR, translation VARCHAR) | SELECT avoirdupois_value FROM table_name_76 WHERE translation = "grain" |
Write a SQL query that answers the following question: What is the number of turns for the City of san antonio? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (turns VARCHAR, city VARCHAR) | SELECT turns FROM table_name_35 WHERE city = "san antonio" |
Write a SQL query that answers the following question: What is the State with the imsa gt as the Major Series and a track in new orleans? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (state VARCHAR, major_series VARCHAR, track VARCHAR) | SELECT state FROM table_name_23 WHERE major_series = "imsa gt" AND track = "new orleans" |
Write a SQL query that answers the following question: Where is the track located with 18 turns? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (track VARCHAR, turns VARCHAR) | SELECT track FROM table_name_34 WHERE turns = "18" |
Write a SQL query that answers the following question: What is the State with the trans-am Major Series in Grand Rapids? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (state VARCHAR, major_series VARCHAR, city VARCHAR) | SELECT state FROM table_name_38 WHERE major_series = "trans-am" AND city = "grand rapids" |
Write a SQL query that answers the following question: Where is the track located that opened in 1992? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (track VARCHAR, opened VARCHAR) | SELECT track FROM table_name_34 WHERE opened = "1992" |
Write a SQL query that answers the following question: What shows for opened for the Nascar Major Series? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (opened VARCHAR, major_series VARCHAR) | SELECT opened FROM table_name_84 WHERE major_series = "nascar" |
Write a SQL query that answers the following question: What is the lowest number of FA cups associated with 0 malaysia cups? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (fa_cup INTEGER, malaysia_cup INTEGER) | SELECT MIN(fa_cup) FROM table_name_69 WHERE malaysia_cup < 0 |
Write a SQL query that answers the following question: How many league cups for m patrick maria with 0 total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (league INTEGER, player VARCHAR, total VARCHAR) | SELECT SUM(league) FROM table_name_96 WHERE player = "m patrick maria" AND total < 0 |
Write a SQL query that answers the following question: What is the highest number of Malaysia Cups for a player with over 0 leagues and under 0 FA cups? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (malaysia_cup INTEGER, league VARCHAR, fa_cup VARCHAR) | SELECT MAX(malaysia_cup) FROM table_name_16 WHERE league > 0 AND fa_cup < 0 |
Write a SQL query that answers the following question: What is the tournament on July 29 hosted by SK Brann? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (tournament VARCHAR, host VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_5 WHERE host = "sk brann" AND date = "july 29" |
Write a SQL query that answers the following question: Who is the visitor of the match on July 29? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_13 WHERE date = "july 29" |
Write a SQL query that answers the following question: What is the game that has the phoenix suns as the opponent played against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (result VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_72 WHERE opponent = "phoenix suns" |
Write a SQL query that answers the following question: What is the attendance of the game on 2007-04-07 with the Warriors as the visitor team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (attendance VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_4 WHERE visitor = "warriors" AND date = "2007-04-07" |
Write a SQL query that answers the following question: What day is their record 13-15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_14 WHERE record = "13-15" |
Write a SQL query that answers the following question: Who did they play when dickey (0-1) recorded the loss? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (opponent VARCHAR, loss VARCHAR) | SELECT opponent FROM table_name_83 WHERE loss = "dickey (0-1)" |
Write a SQL query that answers the following question: What is the result of the game of heinz field with a record of 2-5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (result VARCHAR, game_site VARCHAR, record VARCHAR) | SELECT result FROM table_name_14 WHERE game_site = "heinz field" AND record = "2-5" |
Write a SQL query that answers the following question: What opponent has a record of 6-9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_27 WHERE record = "6-9" |
Write a SQL query that answers the following question: What is the week with a record of 2-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (week VARCHAR, record VARCHAR) | SELECT COUNT(week) FROM table_name_56 WHERE record = "2-1" |
Write a SQL query that answers the following question: What City of license has a Frequency MHz smaller than 95.9 with w223au as the call sign? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR) | SELECT city_of_license FROM table_name_43 WHERE frequency_mhz < 95.9 AND call_sign = "w223au" |
Write a SQL query that answers the following question: What is the Call sign for the ERP W 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (call_sign VARCHAR, erp_w VARCHAR) | SELECT call_sign FROM table_name_75 WHERE erp_w = 19 |
Write a SQL query that answers the following question: What FCC info is listed for the ERP W of 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (fcc_info VARCHAR, erp_w VARCHAR) | SELECT fcc_info FROM table_name_96 WHERE erp_w = 2 |
Write a SQL query that answers the following question: What Call sign shows an ERP W of 80? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (call_sign VARCHAR, erp_w VARCHAR) | SELECT call_sign FROM table_name_93 WHERE erp_w = 80 |
Write a SQL query that answers the following question: What is the Class for the ERP W of more than 2 and the call sign of w223au? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (class VARCHAR, erp_w VARCHAR, call_sign VARCHAR) | SELECT class FROM table_name_50 WHERE erp_w > 2 AND call_sign = "w223au" |
Write a SQL query that answers the following question: what team lost on july 30 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_23 WHERE date = "july 30" |
Write a SQL query that answers the following question: What sport was played on February 25, 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (sport VARCHAR, date VARCHAR) | SELECT sport FROM table_name_21 WHERE date = "february 25, 2011" |
Write a SQL query that answers the following question: Where was the sport played on September 10, 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (site VARCHAR, date VARCHAR) | SELECT site FROM table_name_55 WHERE date = "september 10, 2010" |
Write a SQL query that answers the following question: What type of surface was played on when julie halard-decugis was the partner on October 8, 2000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (surface VARCHAR, partner VARCHAR, date VARCHAR) | SELECT surface FROM table_name_88 WHERE partner = "julie halard-decugis" AND date = "october 8, 2000" |
Write a SQL query that answers the following question: How many Played has a % Win of 50.00%, and Losses of 1, and Wins smaller than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (played VARCHAR, wins VARCHAR, _percentage_win VARCHAR, losses VARCHAR) | SELECT COUNT(played) FROM table_name_84 WHERE _percentage_win = "50.00%" AND losses = 1 AND wins < 1 |
Write a SQL query that answers the following question: WHAT kind of No Result has Wins smaller than 2, and Losses larger than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (no_result VARCHAR, wins VARCHAR, losses VARCHAR) | SELECT no_result FROM table_name_2 WHERE wins < 2 AND losses > 1 |
Write a SQL query that answers the following question: How many Played that has Losses of 6, and Wins larger than 33? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (played INTEGER, losses VARCHAR, wins VARCHAR) | SELECT AVG(played) FROM table_name_61 WHERE losses = 6 AND wins > 33 |
Write a SQL query that answers the following question: What kind of No Result has a % Win of 100.00% and a Played larger than 4 in 2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (no_result INTEGER, year VARCHAR, _percentage_win VARCHAR, played VARCHAR) | SELECT MIN(no_result) FROM table_name_50 WHERE _percentage_win = "100.00%" AND played > 4 AND year = "2012" |
Write a SQL query that answers the following question: Which Loss has a Score of 6β5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (loss VARCHAR, score VARCHAR) | SELECT loss FROM table_name_20 WHERE score = "6β5" |
Write a SQL query that answers the following question: Date of wed. nov. 13 had how many number of games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (game VARCHAR, date VARCHAR) | SELECT COUNT(game) FROM table_name_1 WHERE date = "wed. nov. 13" |
Write a SQL query that answers the following question: Record of 6β1 had what score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_16 WHERE record = "6β1" |
Write a SQL query that answers the following question: Score of 118β114, and a Record of 8β1 is what lowest game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (game INTEGER, score VARCHAR, record VARCHAR) | SELECT MIN(game) FROM table_name_64 WHERE score = "118β114" AND record = "8β1" |
Write a SQL query that answers the following question: Which circuit was in Great Britain with Ireland as the winner? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (circuit VARCHAR, feature_winner VARCHAR, country VARCHAR) | SELECT circuit FROM table_name_85 WHERE feature_winner = "ireland" AND country = "great britain" |
Write a SQL query that answers the following question: How many were in attendance when the league position was 16th and the score was FβA of 0β3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (attendance VARCHAR, league_position VARCHAR, score_f_a VARCHAR) | SELECT COUNT(attendance) FROM table_name_43 WHERE league_position = "16th" AND score_f_a = "0β3" |
Write a SQL query that answers the following question: How many were in attendance for a result of D, at H venue, and Arsenal as an opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (attendance VARCHAR, opponents VARCHAR, result VARCHAR, venue VARCHAR) | SELECT attendance FROM table_name_40 WHERE result = "d" AND venue = "h" AND opponents = "arsenal" |
Write a SQL query that answers the following question: What is the largest number in attendance at H venue opposing Liverpool with a result of D? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (attendance INTEGER, opponents VARCHAR, venue VARCHAR, result VARCHAR) | SELECT MAX(attendance) FROM table_name_40 WHERE venue = "h" AND result = "d" AND opponents = "liverpool" |
Write a SQL query that answers the following question: What is the number of Justin Jeffries? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (number VARCHAR, name VARCHAR) | SELECT COUNT(number) FROM table_name_31 WHERE name = "justin jeffries" |
Write a SQL query that answers the following question: How many games has number 61 played in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (games INTEGER, number VARCHAR) | SELECT MIN(games) AS β FROM table_name_29 WHERE number = 61 |
Write a SQL query that answers the following question: What is the name of the player who is a wr and has a weight of 197? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (name VARCHAR, position VARCHAR, weight VARCHAR) | SELECT name FROM table_name_83 WHERE position = "wr" AND weight = 197 |
Write a SQL query that answers the following question: What is the hometown of number 40? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (hometown VARCHAR, number VARCHAR) | SELECT hometown FROM table_name_44 WHERE number = 40 |
Write a SQL query that answers the following question: What date is the visitor Ottawa? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (date VARCHAR, visitor VARCHAR) | SELECT date FROM table_name_91 WHERE visitor = "ottawa" |
Write a SQL query that answers the following question: what is the sum of the year in rhode island | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (year INTEGER, state VARCHAR) | SELECT SUM(year) FROM table_name_99 WHERE state = "rhode island" |
Write a SQL query that answers the following question: what is the senator in kentucky | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (senator VARCHAR, state VARCHAR) | SELECT senator FROM table_name_72 WHERE state = "kentucky" |
Write a SQL query that answers the following question: What is the destination of the rail with Dhanbad as the origin? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (destination VARCHAR, origin VARCHAR) | SELECT destination FROM table_name_76 WHERE origin = "dhanbad" |
Write a SQL query that answers the following question: What is the destination of the Garib nwaz exp train? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (destination VARCHAR, train_name VARCHAR) | SELECT destination FROM table_name_87 WHERE train_name = "garib nwaz exp" |
Write a SQL query that answers the following question: What is the train name of the rail with a daily frequency and a destination of Rajgir? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (train_name VARCHAR, frequency__inbound_outbound_ VARCHAR, destination VARCHAR) | SELECT train_name FROM table_name_44 WHERE frequency__inbound_outbound_ = "daily" AND destination = "rajgir" |
Write a SQL query that answers the following question: What is the train name of the rail with a daily frequency and Jammutawi as the destination? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (train_name VARCHAR, frequency__inbound_outbound_ VARCHAR, destination VARCHAR) | SELECT train_name FROM table_name_61 WHERE frequency__inbound_outbound_ = "daily" AND destination = "jammutawi" |
Write a SQL query that answers the following question: What is the frequency of the rail with an origin of Ranchi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (frequency__inbound_outbound_ VARCHAR, origin VARCHAR) | SELECT frequency__inbound_outbound_ FROM table_name_72 WHERE origin = "ranchi" |
Write a SQL query that answers the following question: What is the frequency of the train named Garib nwaz exp? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (frequency__inbound_outbound_ VARCHAR, train_name VARCHAR) | SELECT frequency__inbound_outbound_ FROM table_name_10 WHERE train_name = "garib nwaz exp" |
Write a SQL query that answers the following question: Name the segment c with episode less than 179 and segment b of s sticker | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (segment_c VARCHAR, episode VARCHAR, segment_b VARCHAR) | SELECT segment_c FROM table_name_63 WHERE episode < 179 AND segment_b = "s sticker" |
Write a SQL query that answers the following question: Name the segment c for ski goggles | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (segment_c VARCHAR, segment_a VARCHAR) | SELECT segment_c FROM table_name_78 WHERE segment_a = "ski goggles" |
Write a SQL query that answers the following question: In which position did Steve play first? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (position VARCHAR, first VARCHAR) | SELECT position FROM table_name_26 WHERE first = "steve" |
Write a SQL query that answers the following question: Which bats did mitchell play first? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (bats VARCHAR, first VARCHAR) | SELECT bats FROM table_name_23 WHERE first = "mitchell" |
Write a SQL query that answers the following question: When is mr. ryan's DOB? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (dob VARCHAR, surname VARCHAR) | SELECT dob FROM table_name_19 WHERE surname = "ryan" |
Write a SQL query that answers the following question: Which Throws have a Position of 3b/rhp? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (throws VARCHAR, position VARCHAR) | SELECT throws FROM table_name_1 WHERE position = "3b/rhp" |
Write a SQL query that answers the following question: When is Collins' DOB? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (dob VARCHAR, surname VARCHAR) | SELECT dob FROM table_name_22 WHERE surname = "collins" |
Write a SQL query that answers the following question: Which Position has a D.O.B. of 3 june 1989? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (position VARCHAR, dob VARCHAR) | SELECT position FROM table_name_78 WHERE dob = "3 june 1989" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.