instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: Which Venue has a Date of 1 march 2006? ### Response:
SELECT "Venue" FROM table_10049 WHERE "Date" = '1 march 2006'
### Instruction: what are the total number of bronze medals sri lanka have earned ? ### Response:
SELECT "bronze" FROM table_203_497 WHERE "nation" = 'sri lanka'
### Instruction: What was the highest points where there were less than 2 drawn and the games were less than 6? ### Response:
SELECT MAX(points) FROM table_name_26 WHERE drawn < 2 AND games < 6
### Instruction: What is the Alpha 2 code for the area also known as TCA? ### Response:
SELECT "Alpha-2 code" FROM table_24888 WHERE "Alpha-3 code" = 'TCA'
### Instruction: What day was the visitor Cleveland when the record was 34-26? ### Response:
SELECT date FROM table_name_43 WHERE visitor = "cleveland" AND record = "34-26"
### Instruction: What is the diameter in km of the feature named Colette Patera? ### Response:
SELECT diameter__km_ FROM table_16799784_8 WHERE name = "Colette Patera"
### Instruction: Which Kickoff (ET) has a Result of w 34 23? ### Response:
SELECT kickoff__et_ FROM table_name_67 WHERE result = "w 34–23"
### Instruction: Which engine has a Chassis of lotus 44 f2? ### Response:
SELECT "Engine" FROM table_70232 WHERE "Chassis" = 'lotus 44 f2'
### Instruction: What day does the away side score 7.16 (58)? ### Response:
SELECT "Date" FROM table_4883 WHERE "Away team score" = '7.16 (58)'
### Instruction: What is the reserved for value for constituency number 132? ### Response:
SELECT reserved_for___sc___st__none_ FROM table_name_76 WHERE constituency_number = "132"
### Instruction: On what date was the 4th round, with home team Itabuna, played? ### Response:
SELECT date FROM table_name_4 WHERE round = "4th" AND home_team = "itabuna"
### Instruction: How many golds were there for Iceland with more than 15 silver? ### Response:
SELECT COUNT(gold) FROM table_name_71 WHERE silver > 15 AND nation = "iceland"
### Instruction: Who had a score of 69-70=139? ### Response:
SELECT "Player" FROM table_67528 WHERE "Score" = '69-70=139'
### Instruction: In which game number was Chris Andersen (12) the high rebounds scorer? ### Response:
SELECT game FROM table_name_48 WHERE high_rebounds = "chris andersen (12)"
### Instruction: What is the time for qual 2 that has the best time of 59.266? ### Response:
SELECT qual_2 FROM table_name_45 WHERE best = "59.266"
### Instruction: How many cities are in Australia? ### Response:
SELECT COUNT(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia'
### Instruction: What home team scored 10.14 (74)? ### Response:
SELECT "Home team" FROM table_52814 WHERE "Home team score" = '10.14 (74)'
### Instruction: what was the first year the event was held at the pick congress hotel in chicago ? ### Response:
SELECT MIN("dates") FROM table_204_823 WHERE "location" = 'chicago'
### Instruction: Name the opponent in the final for year of 1888 ### Response:
SELECT "Opponent in the final" FROM table_11688 WHERE "Year" = '1888'
### Instruction: What is the school with the nickname Tornadoes Lady Tornadoes? ### Response:
SELECT school FROM table_name_65 WHERE nickname_s_ = "tornadoes lady tornadoes"
### Instruction: Tell me the 1st leg for team being budoni (Sardinia) ### Response:
SELECT 1 AS st_leg FROM table_name_55 WHERE team_1 = "budoni (sardinia)"
### Instruction: What was the location of the game with a score of 113-106? ### Response:
SELECT location_attendance FROM table_name_13 WHERE score = "113-106"
### Instruction: When the Away team is essendon, what's the Home team score? ### Response:
SELECT "Home team score" FROM table_57277 WHERE "Away team" = 'essendon'
### Instruction: Name the AEDT Time which has an Away team of collingwood? ### Response:
SELECT "AEDT Time" FROM table_77281 WHERE "Away team" = 'collingwood'
### Instruction: How many winners scored exactly 202 (-11)? ### Response:
SELECT COUNT(winner) FROM table_21260421_1 WHERE score = "202 (-11)"
### Instruction: Just show employees' salaries by their first name in a bar chart, sort in descending by the bar please. ### Response:
SELECT FIRST_NAME, SALARY FROM employees ORDER BY FIRST_NAME DESC
### Instruction: What is the Location when France was the runner-up at club de campo? ### Response:
SELECT location FROM table_name_41 WHERE runners_up = "france" AND venue = "club de campo"
### Instruction: what was the engine when ken downing drove an entrant from connaught engineering? ### Response:
SELECT engine FROM table_name_37 WHERE driver = "ken downing" AND entrant = "connaught engineering"
### Instruction: Visualize a bar chart for how many authors submit to the workshop, and rank in desc by the Y-axis. ### Response:
SELECT Author, COUNT(Author) FROM submission GROUP BY Author ORDER BY COUNT(Author) DESC
### Instruction: If the headquarters is Bharatpur, what is the maximum area? ### Response:
SELECT MAX(area__km²_) FROM table_2168295_1 WHERE headquarters = "Bharatpur"
### Instruction: Who was the husband of marie of baden-sponheim? ### Response:
SELECT "Husband" FROM table_6082 WHERE "Image" = 'marie of baden-sponheim'
### Instruction: Who was the owner in 1996 of trainer Nick Zito? ### Response:
SELECT owner FROM table_name_10 WHERE trainer = "nick zito" AND year = "1996"
### Instruction: What is the date of the Cleveland home game with a 20-8 record? ### Response:
SELECT date FROM table_name_74 WHERE home = "cleveland" AND record = "20-8"
### Instruction: What was the score when the loss was hideo nomo (3 5)? ### Response:
SELECT "Score" FROM table_6614 WHERE "Loss" = 'hideo nomo (3–5)'
### Instruction: Physical deletion of posts from the site. ### Response:
SELECT Id / 1000, COUNT(*) AS Count FROM Posts GROUP BY Id / 1000 ORDER BY Id / 1000
### Instruction: Tell me the lowest week for attendance of 60,894 ### Response:
SELECT MIN("Week") FROM table_74563 WHERE "Attendance" = '60,894'
### Instruction: What are the Baronies when the area (in acres) is 276? ### Response:
SELECT "Barony" FROM table_74475 WHERE "Area( acres )" = '276'
### Instruction: Which Opponent has a Rockets score of 107? ### Response:
SELECT "Opponent" FROM table_46833 WHERE "Rockets score" = '107'
### Instruction: When did an away team score 15.7 (97)? ### Response:
SELECT "Date" FROM table_77545 WHERE "Away team score" = '15.7 (97)'
### Instruction: What is the name of the first appearance when Chad Williams is a portrayal? ### Response:
SELECT "First appearance" FROM table_58198 WHERE "Portrayed by" = 'chad williams'
### Instruction: Who was the Team 1 for a 2nd leg of 1-4? ### Response:
SELECT "Team 1" FROM table_71486 WHERE "2nd leg" = '1-4'
### Instruction: what is the accompaniment when the title is stormy seas blues? ### Response:
SELECT "Accompaniment" FROM table_9902 WHERE "Title" = 'stormy seas blues'
### Instruction: which administrative area has the least square mileage and lowest population ? ### Response:
SELECT "administrative\narea" FROM table_204_332 ORDER BY "area\nsq mi" LIMIT 1
### Instruction: What is the name of the video game magazine that was issued bimonthly? ### Response:
SELECT title FROM table_name_36 WHERE magazine_type = "video game" AND frequency = "bimonthly"
### Instruction: Visualize a pie chart with what are the different card types, and how many cards are there of each? ### Response:
SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code
### Instruction: Name the 2011 when 2010 is 2r ### Response:
SELECT "2011" FROM table_80361 WHERE "2010" = '2r'
### Instruction: What is the Place when Fuzzy Zoeller plated in the United States? ### Response:
SELECT place FROM table_name_78 WHERE country = "united states" AND player = "fuzzy zoeller"
### Instruction: If unknown is larger than 1.0, what is the maximum two year amount? ### Response:
SELECT MAX(two_years) FROM table_174266_6 WHERE unknown > 1.0
### Instruction: What's the source of wealth of the person worth $17 billion? ### Response:
SELECT "Source" FROM table_79744 WHERE "Net worth US$ (billions)" = '17'
### Instruction: Return the id of the customer who has the most cards, as well as the number of cards. ### Response:
SELECT customer_id, COUNT(*) FROM customers_cards GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: What is the hometown of the players for de la salle high school ### Response:
SELECT "Hometown" FROM table_17092 WHERE "School" = 'De La Salle High School'
### Instruction: Find the ids and names of members who are under age 30 or with black membership card. ### Response:
SELECT name, member_id FROM member WHERE Membership_card = 'Black' OR age < 30
### Instruction: Return the account details with the greatest value, as well as those that include the character 5. ### Response:
SELECT MAX(account_details) FROM accounts UNION SELECT account_details FROM accounts WHERE account_details LIKE "%5%"
### Instruction: Which Bronze has a Nation of canada, and a Rank smaller than 6? ### Response:
SELECT AVG(bronze) FROM table_name_5 WHERE nation = "canada" AND rank < 6
### Instruction: In what year did Easton LL Easton play in Maryland? ### Response:
SELECT COUNT(year) FROM table_13012165_1 WHERE maryland = "Easton LL Easton"
### Instruction: What is the exited day where the celebrity is vic reeves? ### Response:
SELECT "Exited" FROM table_19299 WHERE "Celebrity" = 'Vic Reeves'
### Instruction: What is the lowest draw that is greater than 0 and byes greater than 0? ### Response:
SELECT MIN(losses) FROM table_name_8 WHERE draws > 0 AND byes > 0
### Instruction: What is the number of played when points against 645? ### Response:
SELECT COUNT(played) FROM table_13018116_1 WHERE pts_agst = 645
### Instruction: How many states-first place are there for the office of Governor? ### Response:
SELECT COUNT(states___first_place) FROM table_20246201_9 WHERE office = "Governor"
### Instruction: How many Pick has a Round smaller than 13, and a Position of fullback? ### Response:
SELECT COUNT(pick) FROM table_name_64 WHERE round < 13 AND position = "fullback"
### Instruction: Who had the most rebounds and how many did they have on October 16? ### Response:
SELECT "High rebounds" FROM table_74176 WHERE "Date" = 'October 16'
### Instruction: What was the 1st Year Al Harrington (9) the leader in Rebounds? ### Response:
SELECT MIN(year) FROM table_name_22 WHERE rebounds = "al harrington (9)"
### Instruction: Who directed the episode with production code ip03010? ### Response:
SELECT directed_by FROM table_29273182_1 WHERE production_code = "IP03010"
### Instruction: Bar chart x axis customer status code y axis the total number, list total number in ascending order. ### Response:
SELECT customer_status_code, COUNT(*) FROM Customers GROUP BY customer_status_code ORDER BY COUNT(*)
### Instruction: What is the position number when there were 29 points, and less than 2 is lost? ### Response:
SELECT COUNT(position) FROM table_name_86 WHERE points = 29 AND lost < 2
### Instruction: What would be the traditional Chinese name tat is simplified as ? ### Response:
SELECT chinese__traditional_ FROM table_name_66 WHERE chinese__simplified_ = "崇拜"
### Instruction: Name the saka era for malayalam ### Response:
SELECT saka_era FROM table_169955_1 WHERE in_malayalam = "മിഥുനം"
### Instruction: What is the largest amount of assists that Nicole Levandusky made? ### Response:
SELECT MAX("Assists") FROM table_23192 WHERE "Player" = 'Nicole Levandusky'
### Instruction: What's the original airdate of the episode directed by Pete Travis? ### Response:
SELECT original_airdate FROM table_12919003_3 WHERE director = "Pete Travis"
### Instruction: Query answers by PostTypeId, Score and Subject Areas. ### Response:
SELECT * FROM Posts WHERE PostTypeId = 1 AND Score >= 25 AND Tags LIKE ('%##param##%')
### Instruction: Who was the home team at the game with a decision of Mason and a visiting team of Dallas? ### Response:
SELECT home FROM table_name_96 WHERE decision = "mason" AND visitor = "dallas"
### Instruction: How many different people wrote the episode 'Beautifully Broken'? ### Response:
SELECT COUNT("Written by") FROM table_28755 WHERE "Title" = 'Beautifully Broken'
### Instruction: What is the nor 2 that has nor 1 as nor 1? ### Response:
SELECT "NOR 2" FROM table_41638 WHERE "NOR 1" = 'nor 1'
### Instruction: What was the final score of the game with 7523 in attendance? ### Response:
SELECT final_score FROM table_25331766_3 WHERE attendance = 7523
### Instruction: What is the Date of Birth with a Block that is larger than 342? ### Response:
SELECT "Date of Birth" FROM table_42115 WHERE "Block" > '342'
### Instruction: What is the average number of cuts made in the Top 25 smaller than 5? ### Response:
SELECT AVG(cuts_made) FROM table_name_63 WHERE top_25 < 5
### Instruction: Which of the top-10s has a starts value of 14? ### Response:
SELECT MAX("Top-10s") FROM table_52722 WHERE "Starts" = '14'
### Instruction: What is the sum of gold values that have bronze values over 0 and totals under 2? ### Response:
SELECT SUM(gold) FROM table_name_34 WHERE bronze > 0 AND total < 2
### Instruction: What is the avererage decile of Francis Douglas Memorial College? ### Response:
SELECT AVG("Decile") FROM table_15246 WHERE "Name" = 'francis douglas memorial college'
### Instruction: What was the date with a resulted score of 130-100? ### Response:
SELECT "Date" FROM table_33958 WHERE "Score" = '130-100'
### Instruction: how many video out connections does the sounddock portable have? ### Response:
SELECT COUNT(video_out) FROM table_24384861_1 WHERE version = "SoundDock Portable"
### Instruction: Return a bar chart about the distribution of name and meter_100 , and order by the total number in desc. ### Response:
SELECT name, meter_100 FROM swimmer ORDER BY meter_100 DESC
### Instruction: What is the postal code when the administrative capital in Bori? ### Response:
SELECT MAX(postal_code) FROM table_28891101_3 WHERE administrative_capital = "Bori"
### Instruction: What is the Original Canadian air-date that was directed by Michael Tolkin? ### Response:
SELECT original_canadian_air_date FROM table_name_98 WHERE director = "michael tolkin"
### Instruction: what was the only year that division 4 qualified 2nd round of the open cup ? ### Response:
SELECT "year" FROM table_204_463 WHERE "open cup" = '2nd round'
### Instruction: What is the combined consumption of 1.6 16v? ### Response:
SELECT "Combined consumption" FROM table_51820 WHERE "Name" = '1.6 16v'
### Instruction: what is the game when the opponent is new york knickerbockers? ### Response:
SELECT SUM(game) FROM table_name_96 WHERE opponent = "new york knickerbockers"
### Instruction: What is the result of districk georgia's 1st? ### Response:
SELECT result FROM table_27021001_1 WHERE district = "Georgia's 1st"
### Instruction: What is the association agreement for bosnia and herzegovina? ### Response:
SELECT "Association Agreement" FROM table_12598 WHERE "State" = 'bosnia and herzegovina'
### Instruction: What is the 1989 value with F in 1990? ### Response:
SELECT "1989" FROM table_46450 WHERE "1990" = 'f'
### Instruction: What was the score when the Blue Jays had an attendance larger than 9,430? ### Response:
SELECT score FROM table_name_25 WHERE attendance > 9 OFFSET 430
### Instruction: What is the order # for the original artist sarah mclachlan? ### Response:
SELECT "Order #" FROM table_28485 WHERE "Original artist" = 'Sarah McLachlan'
### Instruction: Who has a reported death of 6 march 1998? ### Response:
SELECT "Name" FROM table_44414 WHERE "Reported death date" = '6 march 1998'
### Instruction: where cfl team is edmonton (2) what are all the position ### Response:
SELECT position FROM table_26996293_2 WHERE cfl_team = "Edmonton (2)"
### Instruction: What is name of the drive with a Time of +13.315? ### Response:
SELECT "Driver" FROM table_34923 WHERE "Time" = '+13.315'
### Instruction: How many members were added at the nchc (men only) conference? ### Response:
SELECT "Members added" FROM table_29711 WHERE "Conference" = 'NCHC (men only)'
### Instruction: What is TV Time, when Opponent is At Cincinnati Bengals? ### Response:
SELECT tv_time FROM table_name_89 WHERE opponent = "at cincinnati bengals"
### Instruction: Which Rank is the lowest one that has a Name of maribor cathedral? ### Response:
SELECT MIN("Rank") FROM table_74821 WHERE "Name" = 'maribor cathedral'
### Instruction: What is the total rank of team roanne, which has less than 14 games? ### Response:
SELECT COUNT(rank) FROM table_name_58 WHERE team = "roanne" AND games < 14
### Instruction: How did the jab tak hai jaan movie gross worldwide? ### Response:
SELECT "Worldwide Gross" FROM table_58225 WHERE "Movie" = 'jab tak hai jaan'